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 pipe"
3568 gl_func_list="$gl_func_list iswcntrl"
3569 # Check that the precious variables saved in the cache have kept the same
3571 ac_cache_corrupted=false
3572 for ac_var in $ac_precious_vars; do
3573 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3574 eval ac_new_set=\$ac_env_${ac_var}_set
3575 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3576 eval ac_new_val=\$ac_env_${ac_var}_value
3577 case $ac_old_set,$ac_new_set in
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3580 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3581 ac_cache_corrupted=: ;;
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3584 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3585 ac_cache_corrupted=: ;;
3588 if test "x$ac_old_val" != "x$ac_new_val"; then
3589 # differences in whitespace do not lead to failure.
3590 ac_old_val_w=`echo x
$ac_old_val`
3591 ac_new_val_w=`echo x
$ac_new_val`
3592 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3594 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3595 ac_cache_corrupted=:
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3598 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3599 eval $ac_var=\$ac_old_val
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3602 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3604 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3607 # Pass precious variables to config.status.
3608 if test "$ac_new_set" = set; then
3610 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3611 *) ac_arg=$ac_var=$ac_new_val ;;
3613 case " $ac_configure_args " in
3614 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3615 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3619 if $ac_cache_corrupted; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3623 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3624 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3626 ## -------------------- ##
3627 ## Main body of script. ##
3628 ## -------------------- ##
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641 ac_config_headers="$ac_config_headers config.h:config.in"
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3647 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3648 # Check whether --enable-maintainer-mode was given.
3649 if test "${enable_maintainer_mode+set}" = set; then :
3650 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3652 USE_MAINTAINER_MODE=no
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3656 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3657 if test $USE_MAINTAINER_MODE = yes; then
3658 MAINTAINER_MODE_TRUE=
3659 MAINTAINER_MODE_FALSE='#'
3661 MAINTAINER_MODE_TRUE='#'
3662 MAINTAINER_MODE_FALSE=
3665 MAINT=$MAINTAINER_MODE_TRUE
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674 if test -n "$ac_tool_prefix"; then
3675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3676 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_CC+:} false; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3713 if test -z "$ac_cv_prog_CC"; then
3715 # Extract the first word of "gcc", so it can be a program name with args.
3716 set dummy gcc; ac_word=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3720 $as_echo_n "(cached) " >&6
3722 if test -n "$ac_ct_CC"; then
3723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_ac_ct_CC="gcc"
3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743 if test -n "$ac_ct_CC"; then
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3745 $as_echo "$ac_ct_CC" >&6; }
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3751 if test "x$ac_ct_CC" = x; then
3754 case $cross_compiling:$ac_tool_warned in
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3758 ac_tool_warned=yes ;;
3766 if test -z "$CC"; then
3767 if test -n "$ac_tool_prefix"; then
3768 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3769 set dummy ${ac_tool_prefix}cc; ac_word=$2
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 $as_echo_n "checking for $ac_word... " >&6; }
3772 if ${ac_cv_prog_CC+:} false; then :
3773 $as_echo_n "(cached) " >&6
3775 if test -n "$CC"; then
3776 ac_cv_prog_CC="$CC" # Let the user override the test.
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785 ac_cv_prog_CC="${ac_tool_prefix}cc"
3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 if test -n "$CC"; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3798 $as_echo "$CC" >&6; }
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3807 if test -z "$CC"; then
3808 # Extract the first word of "cc", so it can be a program name with args.
3809 set dummy cc; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if ${ac_cv_prog_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3827 ac_prog_rejected=yes
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 if test $ac_prog_rejected = yes; then
3839 # We found a bogon in the path, so make sure we never use it.
3840 set dummy $ac_cv_prog_CC
3842 if test $# != 0; then
3843 # We chose a different compiler from the bogus one.
3844 # However, it has the same basename, so the bogon will be chosen
3845 # first if we set CC to just the basename; use the full file name.
3847 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3853 if test -n "$CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855 $as_echo "$CC" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3863 if test -z "$CC"; then
3864 if test -n "$ac_tool_prefix"; then
3865 for ac_prog in cl.exe
3867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if ${ac_cv_prog_CC+:} false; then :
3872 $as_echo_n "(cached) " >&6
3874 if test -n "$CC"; then
3875 ac_cv_prog_CC="$CC" # Let the user override the test.
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 if test -n "$CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 $as_echo "$CC" >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3904 test -n "$CC" && break
3907 if test -z "$CC"; then
3909 for ac_prog in cl.exe
3911 # Extract the first word of "$ac_prog", so it can be a program name with args.
3912 set dummy $ac_prog; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -n "$ac_ct_CC"; then
3919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_ac_ct_CC="$ac_prog"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3939 if test -n "$ac_ct_CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3941 $as_echo "$ac_ct_CC" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3948 test -n "$ac_ct_CC" && break
3951 if test "x$ac_ct_CC" = x; then
3954 case $cross_compiling:$ac_tool_warned in
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958 ac_tool_warned=yes ;;
3967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3970 See \
`config.log' for more details" "$LINENO" 5; }
3972 # Provide some information about the compiler.
3973 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3976 for ac_option in --version -v -V -qversion; do
3977 { { ac_try="$ac_compiler $ac_option >&5"
3979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3980 *) ac_try_echo
=$ac_try;;
3982 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3986 if test -s conftest.err
; then
3988 ... rest of stderr output deleted ...
3989 10q' conftest.err
>conftest.er1
3990 cat conftest.er1
>&5
3992 rm -f conftest.er1 conftest.err
3993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }
3997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4008 ac_clean_files_save
=$ac_clean_files
4009 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4010 # Try to create an executable without -o first, disregard a.out.
4011 # It will help us diagnose broken compilers, and finding out an intuition
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4014 $as_echo_n "checking whether the C compiler works... " >&6; }
4015 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4017 # The possible output files:
4018 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4021 for ac_file
in $ac_files
4024 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4025 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
4030 if { { ac_try
="$ac_link_default"
4032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_link_default") 2>&5
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; then :
4041 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4042 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4043 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4044 # so that the user can short-circuit this test for compilers unknown to
4046 for ac_file in $ac_files ''
4048 test -f "$ac_file" || continue
4050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4053 # We found the default executable, but exeext='' is most
4057 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4061 # We set ac_cv_exeext here because the later test for it is not
4062 # safe: cross compilers may not add the suffix if given an `-o'
4063 # argument, so we may need to know it at that point already.
4064 # Even if this section looks crufty: it has the advantage of
4071 test "$ac_cv_exeext" = no && ac_cv_exeext=
4076 if test -z "$ac_file"; then :
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4079 $as_echo "$as_me: failed program was:" >&5
4080 sed 's
/^
/|
/' conftest.$ac_ext >&5
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4084 as_fn_error 77 "C compiler cannot create executables
4085 See \`config.log
' for more details" "$LINENO" 5; }
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4088 $as_echo "yes" >&6; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4091 $as_echo_n "checking for C compiler default output file name... " >&6; }
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4093 $as_echo "$ac_file" >&6; }
4094 ac_exeext=$ac_cv_exeext
4096 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4097 ac_clean_files=$ac_clean_files_save
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4099 $as_echo_n "checking for suffix of executables... " >&6; }
4100 if { { ac_try="$ac_link"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_link") 2>&5
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }; then :
4111 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4112 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4113 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4115 for ac_file
in conftest.exe conftest conftest.
*; do
4116 test -f "$ac_file" ||
continue
4118 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4119 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4128 See \`config.log' for more details" "$LINENO" 5; }
4130 rm -f conftest conftest
$ac_cv_exeext
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4132 $as_echo "$ac_cv_exeext" >&6; }
4134 rm -f conftest.
$ac_ext
4135 EXEEXT
=$ac_cv_exeext
4137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4143 FILE *f = fopen ("conftest.out", "w");
4144 return ferror (f) || fclose (f) != 0;
4150 ac_clean_files
="$ac_clean_files conftest.out"
4151 # Check that the compiler produces executables we can run. If not, either
4152 # the compiler is broken, or we cross compile.
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4154 $as_echo_n "checking whether we are cross compiling... " >&6; }
4155 if test "$cross_compiling" != yes; then
4156 { { ac_try
="$ac_link"
4158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162 $as_echo "$ac_try_echo"; } >&5
4163 (eval "$ac_link") 2>&5
4165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166 test $ac_status = 0; }
4167 if { ac_try='./conftest$ac_cv_exeext'
4168 { { case "(($ac_try" in
4169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4170 *) ac_try_echo
=$ac_try;;
4172 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173 $as_echo "$ac_try_echo"; } >&5
4174 (eval "$ac_try") 2>&5
4176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }; }; then
4180 if test "$cross_compiling" = maybe
; then
4183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185 as_fn_error $?
"cannot run C compiled programs.
4186 If you meant to cross compile, use \`--host'.
4187 See \`config.log' for more details" "$LINENO" 5; }
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4192 $as_echo "$cross_compiling" >&6; }
4194 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4195 ac_clean_files
=$ac_clean_files_save
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4197 $as_echo_n "checking for suffix of object files... " >&6; }
4198 if ${ac_cv_objext+:} false
; then :
4199 $as_echo_n "(cached) " >&6
4201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4212 rm -f conftest.o conftest.obj
4213 if { { ac_try
="$ac_compile"
4215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_compile") 2>&5
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; then :
4224 for ac_file in conftest.o conftest.obj conftest.*; do
4225 test -f "$ac_file" || continue;
4227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4233 $as_echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4238 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4239 See \
`config.log' for more details" "$LINENO" 5; }
4241 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4244 $as_echo "$ac_cv_objext" >&6; }
4245 OBJEXT=$ac_cv_objext
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4248 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4249 if ${ac_cv_c_compiler_gnu+:} false; then :
4250 $as_echo_n "(cached) " >&6
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4266 if ac_fn_c_try_compile "$LINENO"; then :
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4276 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4277 if test $ac_compiler_gnu = yes; then
4282 ac_test_CFLAGS=${CFLAGS+set}
4283 ac_save_CFLAGS=$CFLAGS
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4285 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4286 if ${ac_cv_prog_cc_g+:} false; then :
4287 $as_echo_n "(cached) " >&6
4289 ac_save_c_werror_flag=$ac_c_werror_flag
4290 ac_c_werror_flag=yes
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4304 if ac_fn_c_try_compile "$LINENO"; then :
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4319 if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_c_werror_flag=$ac_save_c_werror_flag
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4335 if ac_fn_c_try_compile "$LINENO"; then :
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 ac_c_werror_flag=$ac_save_c_werror_flag
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4346 $as_echo "$ac_cv_prog_cc_g" >&6; }
4347 if test "$ac_test_CFLAGS" = set; then
4348 CFLAGS=$ac_save_CFLAGS
4349 elif test $ac_cv_prog_cc_g = yes; then
4350 if test "$GCC" = yes; then
4356 if test "$GCC" = yes; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4363 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4364 if ${ac_cv_prog_cc_c89+:} false; then :
4365 $as_echo_n "(cached) " >&6
4367 ac_cv_prog_cc_c89=no
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4374 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4375 struct buf { int x; };
4376 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4377 static char *e (p, i)
4383 static char *f (char * (*g) (char **, int), char **p, ...)
4388 s = g (p, va_arg (v,int));
4393 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4394 function prototypes and stuff, but not '\xHH' hex character constants.
4395 These don't provoke an error unfortunately, instead are silently treated
4396 as 'x'. The following induces an error, until -std is added to get
4397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4398 array size at least. It's necessary to write '\x00'==0 to get something
4399 that's true only with -std. */
4400 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4402 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4403 inside strings and character constants. */
4405 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4407 int test (int i, double x);
4408 struct s1 {int (*f) (int a);};
4409 struct s2 {int (*f) (double a);};
4410 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4416 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4421 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4422 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4424 CC="$ac_save_CC $ac_arg"
4425 if ac_fn_c_try_compile "$LINENO"; then :
4426 ac_cv_prog_cc_c89=$ac_arg
4428 rm -f core conftest.err conftest.$ac_objext
4429 test "x$ac_cv_prog_cc_c89" != "xno" && break
4431 rm -f conftest.$ac_ext
4436 case "x$ac_cv_prog_cc_c89" in
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4439 $as_echo "none needed" >&6; } ;;
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4442 $as_echo "unsupported" >&6; } ;;
4444 CC="$CC $ac_cv_prog_cc_c89"
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4446 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4448 if test "x$ac_cv_prog_cc_c89" != xno; then :
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4460 if test -f "$ac_dir/install-sh"; then
4462 ac_install_sh="$ac_aux_dir/install-sh -c"
4464 elif test -f "$ac_dir/install.sh"; then
4466 ac_install_sh="$ac_aux_dir/install.sh -c"
4468 elif test -f "$ac_dir/shtool"; then
4470 ac_install_sh="$ac_aux_dir/shtool install -c"
4474 if test -z "$ac_aux_dir"; then
4475 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4478 # These three variables are undocumented and unsupported,
4479 # and are intended to be withdrawn in a future Autoconf release.
4480 # They can cause serious problems if a builder's source tree is in a directory
4481 # whose full name contains unusual characters.
4482 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4483 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4484 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4487 # Expand $ac_aux_dir to an absolute path.
4488 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4491 ac_cpp='$CPP $CPPFLAGS'
4492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4496 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4497 if ${am_cv_prog_cc_c_o+:} false; then :
4498 $as_echo_n "(cached) " >&6
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4511 # Make sure it works both with $CC and with simple cc.
4512 # Following AC_PROG_CC_C_O, we do the test twice because some
4513 # compilers refuse to overwrite an existing .o file with -o,
4514 # though they will create one.
4515 am_cv_prog_cc_c_o=yes
4517 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4518 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } \
4522 && test -f conftest2.$ac_objext; then
4525 am_cv_prog_cc_c_o=no
4529 rm -f core conftest*
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4533 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4534 if test "$am_cv_prog_cc_c_o" != yes; then
4535 # Losing compiler, so override with the script.
4536 # FIXME: It is wrong to rewrite CC.
4537 # But if we don't then we get into trouble of one sort or another.
4538 # A longer-term fix would be to have automake use am__CC in this case,
4539 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4540 CC="$am_aux_dir/compile $CC"
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551 ac_cpp='$CPP $CPPFLAGS'
4552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4556 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4557 # On Suns, sometimes $CPP names a directory.
4558 if test -n "$CPP" && test -d "$CPP"; then
4561 if test -z "$CPP"; then
4562 if ${ac_cv_prog_CPP+:} false; then :
4563 $as_echo_n "(cached) " >&6
4565 # Double quotes because CPP needs to be expanded
4566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4569 for ac_c_preproc_warn_flag in '' yes
4571 # Use a header file that comes with gcc, so configuring glibc
4572 # with a fresh cross-compiler works.
4573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4574 # <limits.h> exists even on freestanding compilers.
4575 # On the NeXT, cc -E runs the code through the compiler's parser,
4576 # not just through cpp. "Syntax error" is here to catch this case.
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4580 # include <limits.h>
4582 # include <assert.h>
4586 if ac_fn_c_try_cpp "$LINENO"; then :
4589 # Broken: fails on valid input.
4592 rm -f conftest.err conftest.i conftest.$ac_ext
4594 # OK, works on sane cases. Now check whether nonexistent headers
4595 # can be detected and how.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <ac_nonexistent.h>
4600 if ac_fn_c_try_cpp "$LINENO"; then :
4601 # Broken: success on invalid input.
4604 # Passes both tests.
4608 rm -f conftest.err conftest.i conftest.$ac_ext
4611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4612 rm -f conftest.i conftest.err conftest.
$ac_ext
4613 if $ac_preproc_ok; then :
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4626 $as_echo "$CPP" >&6; }
4628 for ac_c_preproc_warn_flag
in '' yes
4630 # Use a header file that comes with gcc, so configuring glibc
4631 # with a fresh cross-compiler works.
4632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633 # <limits.h> exists even on freestanding compilers.
4634 # On the NeXT, cc -E runs the code through the compiler's parser,
4635 # not just through cpp. "Syntax error" is here to catch this case.
4636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4639 # include <limits.h>
4641 # include <assert.h>
4645 if ac_fn_c_try_cpp
"$LINENO"; then :
4648 # Broken: fails on valid input.
4651 rm -f conftest.err conftest.i conftest.
$ac_ext
4653 # OK, works on sane cases. Now check whether nonexistent headers
4654 # can be detected and how.
4655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 #include <ac_nonexistent.h>
4659 if ac_fn_c_try_cpp
"$LINENO"; then :
4660 # Broken: success on invalid input.
4663 # Passes both tests.
4667 rm -f conftest.err conftest.i conftest.
$ac_ext
4670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671 rm -f conftest.i conftest.err conftest.
$ac_ext
4672 if $ac_preproc_ok; then :
4675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4678 See \`config.log' for more details" "$LINENO" 5; }
4682 ac_cpp
='$CPP $CPPFLAGS'
4683 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4689 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4690 if ${ac_cv_path_GREP+:} false
; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -z "$GREP"; then
4694 ac_path_GREP_found
=false
4695 # Loop through the user's path and test for each of PROGNAME-LIST
4696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4697 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4700 test -z "$as_dir" && as_dir
=.
4701 for ac_prog
in grep ggrep
; do
4702 for ac_exec_ext
in '' $ac_executable_extensions; do
4703 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4704 as_fn_executable_p
"$ac_path_GREP" ||
continue
4705 # Check for GNU ac_path_GREP and select it if it is found.
4706 # Check for GNU $ac_path_GREP
4707 case `"$ac_path_GREP" --version 2>&1` in
4709 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4712 $as_echo_n 0123456789 >"conftest.in"
4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
4716 mv "conftest.tmp" "conftest.in"
4717 cp "conftest.in" "conftest.nl"
4718 $as_echo 'GREP' >> "conftest.nl"
4719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4720 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4721 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4723 # Best one so far, save it but keep looking for a better one
4724 ac_cv_path_GREP
="$ac_path_GREP"
4725 ac_path_GREP_max
=$ac_count
4727 # 10*(2^10) chars as input seems more than enough
4728 test $ac_count -gt 10 && break
4730 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4733 $ac_path_GREP_found && break 3
4738 if test -z "$ac_cv_path_GREP"; then
4739 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742 ac_cv_path_GREP
=$GREP
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4747 $as_echo "$ac_cv_path_GREP" >&6; }
4748 GREP
="$ac_cv_path_GREP"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4752 $as_echo_n "checking for egrep... " >&6; }
4753 if ${ac_cv_path_EGREP+:} false
; then :
4754 $as_echo_n "(cached) " >&6
4756 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4757 then ac_cv_path_EGREP
="$GREP -E"
4759 if test -z "$EGREP"; then
4760 ac_path_EGREP_found
=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4763 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4766 test -z "$as_dir" && as_dir
=.
4767 for ac_prog
in egrep; do
4768 for ac_exec_ext
in '' $ac_executable_extensions; do
4769 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4770 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4771 # Check for GNU ac_path_EGREP and select it if it is found.
4772 # Check for GNU $ac_path_EGREP
4773 case `"$ac_path_EGREP" --version 2>&1` in
4775 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4778 $as_echo_n 0123456789 >"conftest.in"
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
4784 $as_echo 'EGREP' >> "conftest.nl"
4785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4786 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4787 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_EGREP
="$ac_path_EGREP"
4791 ac_path_EGREP_max
=$ac_count
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4796 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4799 $ac_path_EGREP_found && break 3
4804 if test -z "$ac_cv_path_EGREP"; then
4805 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4808 ac_cv_path_EGREP
=$EGREP
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4814 $as_echo "$ac_cv_path_EGREP" >&6; }
4815 EGREP
="$ac_cv_path_EGREP"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4819 $as_echo_n "checking for ANSI C header files... " >&6; }
4820 if ${ac_cv_header_stdc+:} false
; then :
4821 $as_echo_n "(cached) " >&6
4823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4838 if ac_fn_c_try_compile
"$LINENO"; then :
4839 ac_cv_header_stdc
=yes
4841 ac_cv_header_stdc
=no
4843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4845 if test $ac_cv_header_stdc = yes; then
4846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4853 $EGREP "memchr" >/dev
/null
2>&1; then :
4856 ac_cv_header_stdc
=no
4862 if test $ac_cv_header_stdc = yes; then
4863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "free" >/dev
/null
2>&1; then :
4873 ac_cv_header_stdc
=no
4879 if test $ac_cv_header_stdc = yes; then
4880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4881 if test "$cross_compiling" = yes; then :
4884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4888 #if ((' ' & 0x0FF) == 0x020)
4889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4892 # define ISLOWER(c) \
4893 (('a' <= (c) && (c) <= 'i') \
4894 || ('j' <= (c) && (c) <= 'r') \
4895 || ('s' <= (c) && (c) <= 'z'))
4896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4904 for (i = 0; i < 256; i++)
4905 if (XOR (islower (i), ISLOWER (i))
4906 || toupper (i) != TOUPPER (i))
4911 if ac_fn_c_try_run
"$LINENO"; then :
4914 ac_cv_header_stdc
=no
4916 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4917 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4923 $as_echo "$ac_cv_header_stdc" >&6; }
4924 if test $ac_cv_header_stdc = yes; then
4926 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4930 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4931 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4932 inttypes.h stdint.h unistd.h
4934 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4935 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4937 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4938 cat >>confdefs.h
<<_ACEOF
4939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4948 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4949 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4956 if test "$MINIX" = yes; then
4958 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4961 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4964 $as_echo "#define _MINIX 1" >>confdefs.h
4967 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4973 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4974 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4975 $as_echo_n "(cached) " >&6
4977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4980 # define __EXTENSIONS__ 1
4981 $ac_includes_default
4990 if ac_fn_c_try_compile
"$LINENO"; then :
4991 ac_cv_safe_to_define___extensions__
=yes
4993 ac_cv_safe_to_define___extensions__
=no
4995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4998 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4999 test $ac_cv_safe_to_define___extensions__ = yes &&
5000 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5002 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5004 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5006 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5008 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5010 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5012 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5014 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5016 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5018 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5020 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5022 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5024 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5027 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5028 if ${ac_cv_should_define__xopen_source+:} false
; then :
5029 $as_echo_n "(cached) " >&6
5031 ac_cv_should_define__xopen_source
=no
5032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5045 if ac_fn_c_try_compile
"$LINENO"; then :
5048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5051 #define _XOPEN_SOURCE 500
5062 if ac_fn_c_try_compile
"$LINENO"; then :
5063 ac_cv_should_define__xopen_source
=yes
5065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5070 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5071 test $ac_cv_should_define__xopen_source = yes &&
5072 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5085 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5086 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
5087 $as_echo_n "(cached) " >&6
5090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5099 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5100 gl_cv_c_amsterdam_compiler
=yes
5102 gl_cv_c_amsterdam_compiler
=no
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5109 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5111 if test $gl_cv_c_amsterdam_compiler = yes; then
5112 if test -z "$AR"; then
5115 if test -z "$ARFLAGS"; then
5119 if test -n "$ac_tool_prefix"; then
5120 for ac_prog
in ar lib
"link -lib"
5122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5123 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_prog_AR+:} false
; then :
5127 $as_echo_n "(cached) " >&6
5129 if test -n "$AR"; then
5130 ac_cv_prog_AR
="$AR" # Let the user override the test.
5132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5136 test -z "$as_dir" && as_dir
=.
5137 for ac_exec_ext
in '' $ac_executable_extensions; do
5138 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5139 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 if test -n "$AR"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5152 $as_echo "$AR" >&6; }
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5159 test -n "$AR" && break
5162 if test -z "$AR"; then
5164 for ac_prog
in ar lib
"link -lib"
5166 # Extract the first word of "$ac_prog", so it can be a program name with args.
5167 set dummy
$ac_prog; ac_word
=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5171 $as_echo_n "(cached) " >&6
5173 if test -n "$ac_ct_AR"; then
5174 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir
=.
5181 for ac_exec_ext
in '' $ac_executable_extensions; do
5182 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_ac_ct_AR
="$ac_prog"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5194 if test -n "$ac_ct_AR"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5196 $as_echo "$ac_ct_AR" >&6; }
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 test -n "$ac_ct_AR" && break
5206 if test "x$ac_ct_AR" = x
; then
5209 case $cross_compiling:$ac_tool_warned in
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213 ac_tool_warned
=yes ;;
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5222 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5223 if ${am_cv_ar_interface+:} false
; then :
5224 $as_echo_n "(cached) " >&6
5227 ac_cpp
='$CPP $CPPFLAGS'
5228 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5232 am_cv_ar_interface
=ar
5233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 int some_variable = 0;
5237 if ac_fn_c_try_compile
"$LINENO"; then :
5238 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5240 (eval $am_ar_try) 2>&5
5242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5243 test $ac_status = 0; }
5244 if test "$ac_status" -eq 0; then
5245 am_cv_ar_interface
=ar
5247 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5249 (eval $am_ar_try) 2>&5
5251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5252 test $ac_status = 0; }
5253 if test "$ac_status" -eq 0; then
5254 am_cv_ar_interface
=lib
5256 am_cv_ar_interface
=unknown
5259 rm -f conftest.lib libconftest.a
5262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5264 ac_cpp
='$CPP $CPPFLAGS'
5265 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5271 $as_echo "$am_cv_ar_interface" >&6; }
5273 case $am_cv_ar_interface in
5277 # Microsoft lib, so override with the ar-lib wrapper script.
5278 # FIXME: It is wrong to rewrite AR.
5279 # But if we don't then we get into trouble of one sort or another.
5280 # A longer-term fix would be to have automake use am__AR in this case,
5281 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5283 AR
="$am_aux_dir/ar-lib $AR"
5286 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
5292 if test -n "$ac_tool_prefix"; then
5293 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5294 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_AR+:} false
; then :
5298 $as_echo_n "(cached) " >&6
5300 if test -n "$AR"; then
5301 ac_cv_prog_AR
="$AR" # Let the user override the test.
5303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir
=.
5308 for ac_exec_ext
in '' $ac_executable_extensions; do
5309 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 if test -n "$AR"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5323 $as_echo "$AR" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5331 if test -z "$ac_cv_prog_AR"; then
5333 # Extract the first word of "ar", so it can be a program name with args.
5334 set dummy
ar; ac_word
=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5338 $as_echo_n "(cached) " >&6
5340 if test -n "$ac_ct_AR"; then
5341 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir
=.
5348 for ac_exec_ext
in '' $ac_executable_extensions; do
5349 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_ac_ct_AR
="ar"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5361 if test -n "$ac_ct_AR"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5363 $as_echo "$ac_ct_AR" >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5369 if test "x$ac_ct_AR" = x
; then
5372 case $cross_compiling:$ac_tool_warned in
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5376 ac_tool_warned
=yes ;;
5384 if test -z "$ARFLAGS"; then
5390 if test -z "$RANLIB"; then
5391 if test $gl_cv_c_amsterdam_compiler = yes; then
5394 if test -n "$ac_tool_prefix"; then
5395 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5396 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if ${ac_cv_prog_RANLIB+:} false
; then :
5400 $as_echo_n "(cached) " >&6
5402 if test -n "$RANLIB"; then
5403 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir
=.
5410 for ac_exec_ext
in '' $ac_executable_extensions; do
5411 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 RANLIB
=$ac_cv_prog_RANLIB
5423 if test -n "$RANLIB"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5425 $as_echo "$RANLIB" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5433 if test -z "$ac_cv_prog_RANLIB"; then
5434 ac_ct_RANLIB
=$RANLIB
5435 # Extract the first word of "ranlib", so it can be a program name with args.
5436 set dummy ranlib
; ac_word
=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5440 $as_echo_n "(cached) " >&6
5442 if test -n "$ac_ct_RANLIB"; then
5443 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir
=.
5450 for ac_exec_ext
in '' $ac_executable_extensions; do
5451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5452 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5463 if test -n "$ac_ct_RANLIB"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5465 $as_echo "$ac_ct_RANLIB" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5471 if test "x$ac_ct_RANLIB" = x
; then
5474 case $cross_compiling:$ac_tool_warned in
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5478 ac_tool_warned
=yes ;;
5480 RANLIB
=$ac_ct_RANLIB
5483 RANLIB
="$ac_cv_prog_RANLIB"
5491 # Make sure we can run config.sub.
5492 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5493 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5496 $as_echo_n "checking build system type... " >&6; }
5497 if ${ac_cv_build+:} false
; then :
5498 $as_echo_n "(cached) " >&6
5500 ac_build_alias
=$build_alias
5501 test "x$ac_build_alias" = x
&&
5502 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5503 test "x$ac_build_alias" = x
&&
5504 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5505 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5506 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5510 $as_echo "$ac_cv_build" >&6; }
5511 case $ac_cv_build in
5513 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5516 ac_save_IFS
=$IFS; IFS
='-'
5522 # Remember, the first character of IFS is used to create $*,
5523 # except with old shells:
5526 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5530 $as_echo_n "checking host system type... " >&6; }
5531 if ${ac_cv_host+:} false
; then :
5532 $as_echo_n "(cached) " >&6
5534 if test "x$host_alias" = x
; then
5535 ac_cv_host
=$ac_cv_build
5537 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5538 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5543 $as_echo "$ac_cv_host" >&6; }
5546 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5549 ac_save_IFS
=$IFS; IFS
='-'
5555 # Remember, the first character of IFS is used to create $*,
5556 # except with old shells:
5559 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5565 # IEEE behaviour is the default on all CPUs except Alpha and SH
5566 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5567 # and the GCC 4.1.2 manual).
5570 # On Alpha systems, a compiler option provides the behaviour.
5571 # See the ieee(3) manual page, also available at
5572 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5573 if test -n "$GCC"; then
5574 # GCC has the option -mieee.
5575 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5576 CPPFLAGS
="$CPPFLAGS -mieee"
5578 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5579 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5580 CPPFLAGS
="$CPPFLAGS -ieee"
5584 if test -n "$GCC"; then
5585 # GCC has the option -mieee.
5586 CPPFLAGS
="$CPPFLAGS -mieee"
5591 # Check whether --enable-largefile was given.
5592 if test "${enable_largefile+set}" = set; then :
5593 enableval
=$enable_largefile;
5596 if test "$enable_largefile" != no
; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5599 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5600 if ${ac_cv_sys_largefile_CC+:} false
; then :
5601 $as_echo_n "(cached) " >&6
5603 ac_cv_sys_largefile_CC
=no
5604 if test "$GCC" != yes; then
5607 # IRIX 6.2 and later do not support large files by default,
5608 # so use the C compiler's -n32 option if that helps.
5609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611 #include <sys/types.h>
5612 /* Check that off_t can represent 2**63 - 1 correctly.
5613 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5614 since some C++ compilers masquerading as C compilers
5615 incorrectly reject 9223372036854775807. */
5616 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5617 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5618 && LARGE_OFF_T % 2147483647 == 1)
5628 if ac_fn_c_try_compile
"$LINENO"; then :
5631 rm -f core conftest.err conftest.
$ac_objext
5633 if ac_fn_c_try_compile
"$LINENO"; then :
5634 ac_cv_sys_largefile_CC
=' -n32'; break
5636 rm -f core conftest.err conftest.
$ac_objext
5640 rm -f conftest.
$ac_ext
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5644 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5645 if test "$ac_cv_sys_largefile_CC" != no
; then
5646 CC
=$CC$ac_cv_sys_largefile_CC
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5650 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5651 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5652 $as_echo_n "(cached) " >&6
5655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 #include <sys/types.h>
5658 /* Check that off_t can represent 2**63 - 1 correctly.
5659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5660 since some C++ compilers masquerading as C compilers
5661 incorrectly reject 9223372036854775807. */
5662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5664 && LARGE_OFF_T % 2147483647 == 1)
5674 if ac_fn_c_try_compile
"$LINENO"; then :
5675 ac_cv_sys_file_offset_bits
=no
; break
5677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 #define _FILE_OFFSET_BITS 64
5681 #include <sys/types.h>
5682 /* Check that off_t can represent 2**63 - 1 correctly.
5683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5684 since some C++ compilers masquerading as C compilers
5685 incorrectly reject 9223372036854775807. */
5686 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5688 && LARGE_OFF_T % 2147483647 == 1)
5698 if ac_fn_c_try_compile
"$LINENO"; then :
5699 ac_cv_sys_file_offset_bits
=64; break
5701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5702 ac_cv_sys_file_offset_bits
=unknown
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5707 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5708 case $ac_cv_sys_file_offset_bits in #(
5711 cat >>confdefs.h
<<_ACEOF
5712 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5717 if test $ac_cv_sys_file_offset_bits = unknown
; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5719 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5720 if ${ac_cv_sys_large_files+:} false
; then :
5721 $as_echo_n "(cached) " >&6
5724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726 #include <sys/types.h>
5727 /* Check that off_t can represent 2**63 - 1 correctly.
5728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5729 since some C++ compilers masquerading as C compilers
5730 incorrectly reject 9223372036854775807. */
5731 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5733 && LARGE_OFF_T % 2147483647 == 1)
5743 if ac_fn_c_try_compile
"$LINENO"; then :
5744 ac_cv_sys_large_files
=no
; break
5746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 #define _LARGE_FILES 1
5750 #include <sys/types.h>
5751 /* Check that off_t can represent 2**63 - 1 correctly.
5752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5753 since some C++ compilers masquerading as C compilers
5754 incorrectly reject 9223372036854775807. */
5755 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5757 && LARGE_OFF_T % 2147483647 == 1)
5767 if ac_fn_c_try_compile
"$LINENO"; then :
5768 ac_cv_sys_large_files
=1; break
5770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5771 ac_cv_sys_large_files
=unknown
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5776 $as_echo "$ac_cv_sys_large_files" >&6; }
5777 case $ac_cv_sys_large_files in #(
5780 cat >>confdefs.h
<<_ACEOF
5781 #define _LARGE_FILES $ac_cv_sys_large_files
5789 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5798 # Check whether --enable-threads was given.
5799 if test "${enable_threads+set}" = set; then :
5800 enableval
=$enable_threads; gl_use_threads
=$enableval
5802 if test -n "$gl_use_threads_default"; then
5803 gl_use_threads
="$gl_use_threads_default"
5806 osf
*) gl_use_threads
=no
;;
5809 1.
[0-5].
*) gl_use_threads
=no
;;
5810 *) gl_use_threads
=yes ;;
5813 *) gl_use_threads
=yes ;;
5819 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
5820 # For using <pthread.h>:
5823 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5824 # groks <pthread.h>. cc also understands the flag -pthread, but
5825 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5826 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5827 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
5828 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5829 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
5832 # Some systems optimize for single-threaded programs by default, and
5833 # need special flags to disable these optimizations. For example, the
5834 # definition of 'errno' in <errno.h>.
5836 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
5837 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
5843 # Pre-early section.
5848 # Code from module absolute-header:
5849 # Code from module alloca:
5850 # Code from module alloca-opt:
5851 # Code from module arpa_inet:
5852 # Code from module assure:
5853 # Code from module at-internal:
5854 # Code from module canonicalize-lgpl:
5855 # Code from module chdir:
5856 # Code from module chdir-long:
5857 # Code from module cloexec:
5858 # Code from module close:
5859 # Code from module closedir:
5860 # Code from module configmake:
5861 # Code from module d-ino:
5862 # Code from module d-type:
5863 # Code from module dirent:
5864 # Code from module dirfd:
5865 # Code from module dirname-lgpl:
5866 # Code from module dosname:
5867 # Code from module double-slash-root:
5868 # Code from module dup:
5869 # Code from module dup2:
5870 # Code from module environ:
5871 # Code from module errno:
5872 # Code from module error:
5873 # Code from module exitfail:
5874 # Code from module extensions:
5875 # Code from module extern-inline:
5876 # Code from module fchdir:
5877 # Code from module fcntl:
5878 # Code from module fcntl-h:
5879 # Code from module fd-hook:
5880 # Code from module fdopendir:
5881 # Code from module filename:
5882 # Code from module filenamecat-lgpl:
5883 # Code from module flexmember:
5884 # Code from module float:
5885 # Code from module fnmatch:
5886 # Code from module fnmatch-gnu:
5887 # Code from module fpieee:
5889 # Code from module fpucw:
5890 # Code from module frexp:
5891 # Code from module frexpl:
5892 # Code from module fstat:
5893 # Code from module fstatat:
5894 # Code from module getcwd:
5895 # Code from module getcwd-lgpl:
5896 # Code from module getdtablesize:
5897 # Code from module getlogin_r:
5898 # Code from module getprogname:
5899 # Code from module gettext-h:
5900 # Code from module gettimeofday:
5901 # Code from module glob:
5902 # Code from module hard-locale:
5903 # Code from module havelib:
5904 # Code from module include_next:
5905 # Code from module inet_ntop:
5906 # Code from module intprops:
5907 # Code from module inttypes:
5908 # Code from module inttypes-incomplete:
5909 # Code from module isnand-nolibm:
5910 # Code from module isnanl-nolibm:
5911 # Code from module largefile:
5913 # Code from module limits-h:
5914 # Code from module localcharset:
5915 # Code from module lock:
5916 # Code from module lstat:
5917 # Code from module malloc-posix:
5918 # Code from module malloca:
5919 # Code from module math:
5920 # Code from module mbrtowc:
5921 # Code from module mbsinit:
5922 # Code from module mbsrtowcs:
5923 # Code from module memchr:
5924 # Code from module memmem:
5925 # Code from module memmem-simple:
5926 # Code from module mempcpy:
5927 # Code from module memrchr:
5928 # Code from module mkdir:
5929 # Code from module mkdtemp:
5930 # Code from module mkostemp:
5931 # Code from module msvc-inval:
5932 # Code from module msvc-nothrow:
5933 # Code from module multiarch:
5934 # Code from module netinet_in:
5935 # Code from module nocrash:
5936 # Code from module open:
5937 # Code from module openat:
5938 # Code from module openat-die:
5939 # Code from module openat-h:
5940 # Code from module opendir:
5941 # Code from module pathmax:
5942 # Code from module rawmemchr:
5943 # Code from module readdir:
5944 # Code from module readlink:
5945 # Code from module realloc-posix:
5946 # Code from module rename:
5947 # Code from module rewinddir:
5948 # Code from module rmdir:
5949 # Code from module same-inode:
5950 # Code from module save-cwd:
5951 # Code from module secure_getenv:
5952 # Code from module setenv:
5953 # Code from module signal-h:
5954 # Code from module snippet/_Noreturn:
5955 # Code from module snippet/arg-nonnull:
5956 # Code from module snippet/c++defs:
5957 # Code from module snippet/warn-on-use:
5958 # Code from module socklen:
5959 # Code from module ssize_t:
5960 # Code from module stat:
5961 # Code from module stdalign:
5962 # Code from module stdbool:
5963 # Code from module stddef:
5964 # Code from module stdint:
5965 # Code from module stdio:
5966 # Code from module stdlib:
5967 # Code from module strchrnul:
5968 # Code from module strdup-posix:
5969 # Code from module streq:
5970 # Code from module strerror:
5971 # Code from module strerror-override:
5972 # Code from module strerror_r-posix:
5973 # Code from module string:
5974 # Code from module strnlen1:
5975 # Code from module strstr:
5976 # Code from module strstr-simple:
5977 # Code from module strtok_r:
5978 # Code from module sys_socket:
5979 # Code from module sys_stat:
5980 # Code from module sys_time:
5981 # Code from module sys_types:
5982 # Code from module sys_uio:
5983 # Code from module tempname:
5984 # Code from module threadlib:
5988 # Code from module time:
5989 # Code from module unistd:
5990 # Code from module unistd-safer:
5991 # Code from module unsetenv:
5992 # Code from module update-copyright:
5993 # Code from module verify:
5994 # Code from module wchar:
5995 # Code from module wctype-h:
5998 ac_cpp
='$CPP $CPPFLAGS'
5999 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6004 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_prog_CC+:} false
; then :
6008 $as_echo_n "(cached) " >&6
6010 if test -n "$CC"; then
6011 ac_cv_prog_CC
="$CC" # Let the user override the test.
6013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir
=.
6018 for ac_exec_ext
in '' $ac_executable_extensions; do
6019 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6020 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 if test -n "$CC"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6033 $as_echo "$CC" >&6; }
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6041 if test -z "$ac_cv_prog_CC"; then
6043 # Extract the first word of "gcc", so it can be a program name with args.
6044 set dummy gcc
; ac_word
=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6048 $as_echo_n "(cached) " >&6
6050 if test -n "$ac_ct_CC"; then
6051 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir
=.
6058 for ac_exec_ext
in '' $ac_executable_extensions; do
6059 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6060 ac_cv_prog_ac_ct_CC
="gcc"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6071 if test -n "$ac_ct_CC"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6073 $as_echo "$ac_ct_CC" >&6; }
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6079 if test "x$ac_ct_CC" = x
; then
6082 case $cross_compiling:$ac_tool_warned in
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned
=yes ;;
6094 if test -z "$CC"; then
6095 if test -n "$ac_tool_prefix"; then
6096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6097 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_prog_CC+:} false
; then :
6101 $as_echo_n "(cached) " >&6
6103 if test -n "$CC"; then
6104 ac_cv_prog_CC
="$CC" # Let the user override the test.
6106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6110 test -z "$as_dir" && as_dir
=.
6111 for ac_exec_ext
in '' $ac_executable_extensions; do
6112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 if test -n "$CC"; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6126 $as_echo "$CC" >&6; }
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6135 if test -z "$CC"; then
6136 # Extract the first word of "cc", so it can be a program name with args.
6137 set dummy cc
; ac_word
=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_CC+:} false
; then :
6141 $as_echo_n "(cached) " >&6
6143 if test -n "$CC"; then
6144 ac_cv_prog_CC
="$CC" # Let the user override the test.
6147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir
=.
6152 for ac_exec_ext
in '' $ac_executable_extensions; do
6153 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6155 ac_prog_rejected
=yes
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 if test $ac_prog_rejected = yes; then
6167 # We found a bogon in the path, so make sure we never use it.
6168 set dummy
$ac_cv_prog_CC
6170 if test $# != 0; then
6171 # We chose a different compiler from the bogus one.
6172 # However, it has the same basename, so the bogon will be chosen
6173 # first if we set CC to just the basename; use the full file name.
6175 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6181 if test -n "$CC"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6183 $as_echo "$CC" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6191 if test -z "$CC"; then
6192 if test -n "$ac_tool_prefix"; then
6193 for ac_prog
in cl.exe
6195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6196 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_CC+:} false
; then :
6200 $as_echo_n "(cached) " >&6
6202 if test -n "$CC"; then
6203 ac_cv_prog_CC
="$CC" # Let the user override the test.
6205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir
=.
6210 for ac_exec_ext
in '' $ac_executable_extensions; do
6211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 if test -n "$CC"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6225 $as_echo "$CC" >&6; }
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6232 test -n "$CC" && break
6235 if test -z "$CC"; then
6237 for ac_prog
in cl.exe
6239 # Extract the first word of "$ac_prog", so it can be a program name with args.
6240 set dummy
$ac_prog; ac_word
=$2
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6244 $as_echo_n "(cached) " >&6
6246 if test -n "$ac_ct_CC"; then
6247 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir
=.
6254 for ac_exec_ext
in '' $ac_executable_extensions; do
6255 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_ac_ct_CC
="$ac_prog"
6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6267 if test -n "$ac_ct_CC"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6269 $as_echo "$ac_ct_CC" >&6; }
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6276 test -n "$ac_ct_CC" && break
6279 if test "x$ac_ct_CC" = x
; then
6282 case $cross_compiling:$ac_tool_warned in
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6286 ac_tool_warned
=yes ;;
6295 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6297 as_fn_error $?
"no acceptable C compiler found in \$PATH
6298 See \`config.log' for more details" "$LINENO" 5; }
6300 # Provide some information about the compiler.
6301 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6304 for ac_option
in --version -v -V -qversion; do
6305 { { ac_try
="$ac_compiler $ac_option >&5"
6307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6311 $as_echo "$ac_try_echo"; } >&5
6312 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6314 if test -s conftest.err; then
6316 ... rest of stderr output deleted ...
6317 10q' conftest.err >conftest.er1
6318 cat conftest.er1 >&5
6320 rm -f conftest.er1 conftest.err
6321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322 test $ac_status = 0; }
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6326 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6327 if ${ac_cv_c_compiler_gnu+:} false; then :
6328 $as_echo_n "(cached) " >&6
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6344 if ac_fn_c_try_compile "$LINENO"; then :
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6354 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6355 if test $ac_compiler_gnu = yes; then
6360 ac_test_CFLAGS=${CFLAGS+set}
6361 ac_save_CFLAGS=$CFLAGS
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6363 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6364 if ${ac_cv_prog_cc_g+:} false; then :
6365 $as_echo_n "(cached) " >&6
6367 ac_save_c_werror_flag=$ac_c_werror_flag
6368 ac_c_werror_flag=yes
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6382 if ac_fn_c_try_compile "$LINENO"; then :
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6397 if ac_fn_c_try_compile "$LINENO"; then :
6400 ac_c_werror_flag=$ac_save_c_werror_flag
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6413 if ac_fn_c_try_compile "$LINENO"; then :
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 ac_c_werror_flag=$ac_save_c_werror_flag
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6424 $as_echo "$ac_cv_prog_cc_g" >&6; }
6425 if test "$ac_test_CFLAGS" = set; then
6426 CFLAGS=$ac_save_CFLAGS
6427 elif test $ac_cv_prog_cc_g = yes; then
6428 if test "$GCC" = yes; then
6434 if test "$GCC" = yes; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6441 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6442 if ${ac_cv_prog_cc_c89+:} false; then :
6443 $as_echo_n "(cached) " >&6
6445 ac_cv_prog_cc_c89=no
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6452 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6453 struct buf { int x; };
6454 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6455 static char *e (p, i)
6461 static char *f (char * (*g) (char **, int), char **p, ...)
6466 s = g (p, va_arg (v,int));
6471 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6472 function prototypes and stuff, but not '\xHH' hex character constants.
6473 These don't provoke an error unfortunately, instead are silently treated
6474 as 'x'. The following induces an error, until -std is added to get
6475 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6476 array size at least. It's necessary to write '\x00'==0 to get something
6477 that's true only with -std. */
6478 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6480 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6481 inside strings and character constants. */
6483 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6485 int test (int i, double x);
6486 struct s1 {int (*f) (int a);};
6487 struct s2 {int (*f) (double a);};
6488 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6494 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6499 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6500 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6502 CC="$ac_save_CC $ac_arg"
6503 if ac_fn_c_try_compile "$LINENO"; then :
6504 ac_cv_prog_cc_c89=$ac_arg
6506 rm -f core conftest.err conftest.$ac_objext
6507 test "x$ac_cv_prog_cc_c89" != "xno" && break
6509 rm -f conftest.$ac_ext
6514 case "x$ac_cv_prog_cc_c89" in
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6517 $as_echo "none needed" >&6; } ;;
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6520 $as_echo "unsupported" >&6; } ;;
6522 CC="$CC $ac_cv_prog_cc_c89"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6524 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6526 if test "x$ac_cv_prog_cc_c89" != xno; then :
6531 ac_cpp='$CPP $CPPFLAGS'
6532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6537 ac_cpp='$CPP $CPPFLAGS'
6538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6542 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6543 if ${am_cv_prog_cc_c_o+:} false; then :
6544 $as_echo_n "(cached) " >&6
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6557 # Make sure it works both with $CC and with simple cc.
6558 # Following AC_PROG_CC_C_O, we do the test twice because some
6559 # compilers refuse to overwrite an existing .o file with -o,
6560 # though they will create one.
6561 am_cv_prog_cc_c_o=yes
6563 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6564 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } \
6568 && test -f conftest2.$ac_objext; then
6571 am_cv_prog_cc_c_o=no
6575 rm -f core conftest*
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6579 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6580 if test "$am_cv_prog_cc_c_o" != yes; then
6581 # Losing compiler, so override with the script.
6582 # FIXME: It is wrong to rewrite CC.
6583 # But if we don't then we get into trouble of one sort or another.
6584 # A longer-term fix would be to have automake use am__CC in this case,
6585 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6586 CC="$am_aux_dir/compile $CC"
6589 ac_cpp='$CPP $CPPFLAGS'
6590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6599 $as_echo_n "checking target system type... " >&6; }
6600 if ${ac_cv_target+:} false; then :
6601 $as_echo_n "(cached) " >&6
6603 if test "x$target_alias" = x; then
6604 ac_cv_target=$ac_cv_host
6606 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6607 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6612 $as_echo "$ac_cv_target" >&6; }
6613 case $ac_cv_target in
6615 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6617 target=$ac_cv_target
6618 ac_save_IFS=$IFS; IFS='-'
6624 # Remember, the first character of IFS is used to create $*,
6625 # except with old shells:
6628 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
6631 # The aliases save the names the user supplied, while $host etc.
6632 # will get canonicalized.
6633 test -n "$target_alias" &&
6634 test "$program_prefix$program_suffix$program_transform_name" = \
6636 program_prefix=${target_alias}-
6638 # The tests for host and target for $enable_largefile require
6643 # As the $enable_largefile decision depends on --enable-plugins we must set it
6644 # even in directories otherwise not depending on the $plugins option.
6648 for ac_header in dlfcn.h
6650 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6652 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6653 cat >>confdefs.h <<_ACEOF
6654 #define HAVE_DLFCN_H 1
6661 for ac_header in windows.h
6663 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6665 if test "x$ac_cv_header_windows_h" = xyes; then :
6666 cat >>confdefs.h <<_ACEOF
6667 #define HAVE_WINDOWS_H 1
6675 # Check whether --enable-plugins was given.
6676 if test "${enable_plugins+set}" = set; then :
6677 enableval=$enable_plugins; case "${enableval}" in
6680 if test "$maybe_plugins" != "yes" ; then
6681 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6685 plugins=$maybe_plugins
6689 if test "$plugins" = "yes"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6691 $as_echo_n "checking for library containing dlsym... " >&6; }
6692 if ${ac_cv_search_dlsym+:} false; then :
6693 $as_echo_n "(cached) " >&6
6695 ac_func_search_save_LIBS=$LIBS
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6699 /* Override any GCC internal prototype to avoid an error.
6700 Use char because int might match the return type of a GCC
6701 builtin and then its argument prototype would still apply. */
6714 for ac_lib in '' dl; do
6715 if test -z "$ac_lib"; then
6716 ac_res="none required"
6719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6721 if ac_fn_c_try_link "$LINENO"; then :
6722 ac_cv_search_dlsym=$ac_res
6724 rm -f core conftest.err conftest.$ac_objext \
6726 if ${ac_cv_search_dlsym+:} false; then :
6730 if ${ac_cv_search_dlsym+:} false; then :
6733 ac_cv_search_dlsym=no
6736 LIBS=$ac_func_search_save_LIBS
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6739 $as_echo "$ac_cv_search_dlsym" >&6; }
6740 ac_res=$ac_cv_search_dlsym
6741 if test "$ac_res" != no; then :
6742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6750 sparc-*-solaris*|i[3-7]86-*-solaris*)
6751 # On native 32bit sparc and ia32 solaris, large-file and procfs support
6752 # are mutually exclusive; and without procfs support, the bfd/ elf module
6753 # cannot provide certain routines such as elfcore_write_prpsinfo
6754 # or elfcore_write_prstatus. So unless the user explicitly requested
6755 # large-file support through the --enable-largefile switch, disable
6756 # large-file support in favor of procfs support.
6757 test "${target}" = "${host}" -a "x$plugins" = xno \
6758 && : ${enable_largefile="no"}
6762 # Check whether --enable-largefile was given.
6763 if test "${enable_largefile+set}" = set; then :
6764 enableval=$enable_largefile;
6767 if test "$enable_largefile" != no; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6770 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6771 if ${ac_cv_sys_largefile_CC+:} false; then :
6772 $as_echo_n "(cached) " >&6
6774 ac_cv_sys_largefile_CC=no
6775 if test "$GCC" != yes; then
6778 # IRIX 6.2 and later do not support large files by default,
6779 # so use the C compiler's -n32 option if that helps.
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 /* Check that off_t can represent 2**63 - 1 correctly.
6784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6785 since some C++ compilers masquerading as C compilers
6786 incorrectly reject 9223372036854775807. */
6787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6789 && LARGE_OFF_T % 2147483647 == 1)
6799 if ac_fn_c_try_compile "$LINENO"; then :
6802 rm -f core conftest.err conftest.$ac_objext
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805 ac_cv_sys_largefile_CC=' -n32'; break
6807 rm -f core conftest.err conftest.$ac_objext
6811 rm -f conftest.$ac_ext
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6815 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6816 if test "$ac_cv_sys_largefile_CC" != no; then
6817 CC=$CC$ac_cv_sys_largefile_CC
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6821 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6822 if ${ac_cv_sys_file_offset_bits+:} false; then :
6823 $as_echo_n "(cached) " >&6
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #include <sys/types.h>
6829 /* Check that off_t can represent 2**63 - 1 correctly.
6830 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6831 since some C++ compilers masquerading as C compilers
6832 incorrectly reject 9223372036854775807. */
6833 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6835 && LARGE_OFF_T % 2147483647 == 1)
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846 ac_cv_sys_file_offset_bits=no; break
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #define _FILE_OFFSET_BITS 64
6852 #include <sys/types.h>
6853 /* Check that off_t can represent 2**63 - 1 correctly.
6854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6855 since some C++ compilers masquerading as C compilers
6856 incorrectly reject 9223372036854775807. */
6857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6859 && LARGE_OFF_T % 2147483647 == 1)
6869 if ac_fn_c_try_compile "$LINENO"; then :
6870 ac_cv_sys_file_offset_bits=64; break
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 ac_cv_sys_file_offset_bits=unknown
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6878 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6879 case $ac_cv_sys_file_offset_bits in #(
6882 cat >>confdefs.h <<_ACEOF
6883 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6888 if test $ac_cv_sys_file_offset_bits = unknown; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6890 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6891 if ${ac_cv_sys_large_files+:} false; then :
6892 $as_echo_n "(cached) " >&6
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 #include <sys/types.h>
6898 /* Check that off_t can represent 2**63 - 1 correctly.
6899 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6900 since some C++ compilers masquerading as C compilers
6901 incorrectly reject 9223372036854775807. */
6902 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6903 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6904 && LARGE_OFF_T % 2147483647 == 1)
6914 if ac_fn_c_try_compile "$LINENO"; then :
6915 ac_cv_sys_large_files=no; break
6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 #define _LARGE_FILES 1
6921 #include <sys/types.h>
6922 /* Check that off_t can represent 2**63 - 1 correctly.
6923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6924 since some C++ compilers masquerading as C compilers
6925 incorrectly reject 9223372036854775807. */
6926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6928 && LARGE_OFF_T % 2147483647 == 1)
6938 if ac_fn_c_try_compile "$LINENO"; then :
6939 ac_cv_sys_large_files=1; break
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 ac_cv_sys_large_files=unknown
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6947 $as_echo "$ac_cv_sys_large_files" >&6; }
6948 case $ac_cv_sys_large_files in #(
6951 cat >>confdefs.h <<_ACEOF
6952 #define _LARGE_FILES $ac_cv_sys_large_files
6960 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6967 for ac_dir in .. "$srcdir"/..; do
6968 if test -f "$ac_dir/install-sh"; then
6970 ac_install_sh="$ac_aux_dir/install-sh -c"
6972 elif test -f "$ac_dir/install.sh"; then
6974 ac_install_sh="$ac_aux_dir/install.sh -c"
6976 elif test -f "$ac_dir/shtool"; then
6978 ac_install_sh="$ac_aux_dir/shtool install -c"
6982 if test -z "$ac_aux_dir"; then
6983 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6986 # These three variables are undocumented and unsupported,
6987 # and are intended to be withdrawn in a future Autoconf release.
6988 # They can cause serious problems if a builder's source tree is in a directory
6989 # whose full name contains unusual characters.
6990 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6991 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6992 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
7002 LIBC_FATAL_STDERR_=1
7003 export LIBC_FATAL_STDERR_
7005 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7006 if test "x$ac_cv_type_size_t" = xyes; then :
7010 cat >>confdefs.h <<_ACEOF
7011 #define size_t unsigned int
7016 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7017 # for constant arguments. Useless!
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7019 $as_echo_n "checking for working alloca.h... " >&6; }
7020 if ${ac_cv_working_alloca_h+:} false; then :
7021 $as_echo_n "(cached) " >&6
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7029 char *p = (char *) alloca (2 * sizeof (int));
7035 if ac_fn_c_try_link "$LINENO"; then :
7036 ac_cv_working_alloca_h=yes
7038 ac_cv_working_alloca_h=no
7040 rm -f core conftest.err conftest.$ac_objext \
7041 conftest$ac_exeext conftest.$ac_ext
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7044 $as_echo "$ac_cv_working_alloca_h" >&6; }
7045 if test $ac_cv_working_alloca_h = yes; then
7047 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7052 $as_echo_n "checking for alloca... " >&6; }
7053 if ${ac_cv_func_alloca_works+:} false; then :
7054 $as_echo_n "(cached) " >&6
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7059 # define alloca __builtin_alloca
7062 # include <malloc.h>
7063 # define alloca _alloca
7065 # ifdef HAVE_ALLOCA_H
7066 # include <alloca.h>
7071 # ifndef alloca /* predefined by HP cc +Olibcalls */
7072 void *alloca (size_t);
7082 char *p = (char *) alloca (1);
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 ac_cv_func_alloca_works=yes
7091 ac_cv_func_alloca_works=no
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7097 $as_echo "$ac_cv_func_alloca_works" >&6; }
7099 if test $ac_cv_func_alloca_works = yes; then
7101 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7104 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7105 # that cause trouble. Some versions do not even contain alloca or
7106 # contain a buggy version. If you still want to use their alloca,
7107 # use ar to extract alloca.o from them instead of compiling alloca.c.
7113 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7115 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c
' needs Cray hooks" >&5
7119 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
7120 if ${ac_cv_os_cray+:} false; then :
7121 $as_echo_n "(cached
) " >&6
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 #if defined CRAY && ! defined CRAY2
7132 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7133 $EGREP "webecray
" >/dev/null 2>&1; then :
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_os_cray" >&5
7142 $as_echo "$ac_cv_os_cray" >&6; }
7143 if test $ac_cv_os_cray = yes; then
7144 for ac_func in _getb67 GETB67 getb67; do
7145 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
7146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7149 cat >>confdefs.h <<_ACEOF
7150 #define CRAY_STACKSEG_END $ac_func
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction
for C alloca
" >&5
7160 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
7161 if ${ac_cv_c_stack_direction+:} false; then :
7162 $as_echo_n "(cached
) " >&6
7164 if test "$cross_compiling" = yes; then :
7165 ac_cv_c_stack_direction=0
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 $ac_includes_default
7171 find_stack_direction (int *addr, int depth)
7176 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7177 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7182 main (int argc, char **argv)
7184 return find_stack_direction (0, argc + !argv + 20) < 0;
7187 if ac_fn_c_try_run "$LINENO"; then :
7188 ac_cv_c_stack_direction=1
7190 ac_cv_c_stack_direction=-1
7192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7193 conftest.$ac_objext conftest.beam conftest.$ac_ext
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_stack_direction" >&5
7198 $as_echo "$ac_cv_c_stack_direction" >&6; }
7199 cat >>confdefs.h <<_ACEOF
7200 #define STACK_DIRECTION $ac_cv_c_stack_direction
7209 HAVE_DECL_INET_NTOP=1;
7210 HAVE_DECL_INET_PTON=1;
7211 REPLACE_INET_NTOP=0;
7212 REPLACE_INET_PTON=0;
7218 for ac_header in $gl_header_list
7220 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7221 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7222 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7223 cat >>confdefs.h <<_ACEOF
7224 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next
" >&5
7238 $as_echo_n "checking whether the preprocessor supports include_next...
" >&6; }
7239 if ${gl_cv_have_include_next+:} false; then :
7240 $as_echo_n "(cached
) " >&6
7242 rm -rf conftestd1a conftestd1b conftestd2
7243 mkdir conftestd1a conftestd1b conftestd2
7244 cat <<EOF > conftestd1a/conftest.h
7245 #define DEFINED_IN_CONFTESTD1
7246 #include_next <conftest.h>
7247 #ifdef DEFINED_IN_CONFTESTD2
7250 #error "include_next doesn
't work"
7253 cat <<EOF > conftestd1b/conftest.h
7254 #define DEFINED_IN_CONFTESTD1
7256 #include_next <conftest.h>
7257 #ifdef DEFINED_IN_CONFTESTD2
7260 #error "include_next doesn't work
"
7263 cat <<EOF > conftestd2/conftest.h
7264 #ifndef DEFINED_IN_CONFTESTD1
7265 #error "include_next
test doesn
't work"
7267 #define DEFINED_IN_CONFTESTD2
7269 gl_save_CPPFLAGS="$CPPFLAGS"
7270 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7273 #include <conftest.h>
7275 if ac_fn_c_try_compile "$LINENO"; then :
7276 gl_cv_have_include_next=yes
7278 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 #include <conftest.h>
7283 if ac_fn_c_try_compile "$LINENO"; then :
7284 gl_cv_have_include_next=buggy
7286 gl_cv_have_include_next=no
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 CPPFLAGS="$gl_save_CPPFLAGS"
7293 rm -rf conftestd1a conftestd1b conftestd2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7297 $as_echo "$gl_cv_have_include_next" >&6; }
7298 PRAGMA_SYSTEM_HEADER=
7299 if test $gl_cv_have_include_next = yes; then
7300 INCLUDE_NEXT=include_next
7301 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7302 if test -n "$GCC"; then
7303 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7306 if test $gl_cv_have_include_next = buggy
; then
7307 INCLUDE_NEXT
=include
7308 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7310 INCLUDE_NEXT
=include
7311 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7318 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7319 if ${gl_cv_pragma_columns+:} false
; then :
7320 $as_echo_n "(cached) " >&6
7322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331 $EGREP "choke me" >/dev
/null
2>&1; then :
7332 gl_cv_pragma_columns
=yes
7334 gl_cv_pragma_columns
=no
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7341 $as_echo "$gl_cv_pragma_columns" >&6; }
7342 if test $gl_cv_pragma_columns = yes; then
7343 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7362 if test $ac_cv_header_features_h = yes; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7370 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7371 if test -z "$MKDIR_P"; then
7372 if ${ac_cv_path_mkdir+:} false
; then :
7373 $as_echo_n "(cached) " >&6
7375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7376 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7379 test -z "$as_dir" && as_dir
=.
7380 for ac_prog
in mkdir gmkdir
; do
7381 for ac_exec_ext
in '' $ac_executable_extensions; do
7382 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7383 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7384 'mkdir (GNU coreutils) '* | \
7385 'mkdir (coreutils) '* | \
7386 'mkdir (fileutils) '4.1*)
7387 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7397 test -d .
/--version && rmdir .
/--version
7398 if test "${ac_cv_path_mkdir+set}" = set; then
7399 MKDIR_P
="$ac_cv_path_mkdir -p"
7401 # As a last resort, use the slow shell script. Don't cache a
7402 # value for MKDIR_P within a source directory, because that will
7403 # break other packages using the cache if that directory is
7404 # removed, or if the value is a relative name.
7405 MKDIR_P
="$ac_install_sh -d"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7409 $as_echo "$MKDIR_P" >&6; }
7414 GNULIB_CALLOC_POSIX
=0;
7415 GNULIB_CANONICALIZE_FILE_NAME
=0;
7416 GNULIB_GETLOADAVG
=0;
7419 GNULIB_MALLOC_POSIX
=0;
7426 GNULIB_POSIX_OPENPT
=0;
7433 GNULIB_REALLOC_POSIX
=0;
7436 GNULIB_SECURE_GETENV
=0;
7441 GNULIB_SYSTEM_POSIX
=0;
7447 HAVE_CANONICALIZE_FILE_NAME
=1;
7448 HAVE_DECL_GETLOADAVG
=1;
7456 HAVE_POSIX_OPENPT
=1;
7465 HAVE_SECURE_GETENV
=1;
7471 HAVE_STRUCT_RANDOM_DATA
=1;
7472 HAVE_SYS_LOADAVG_H
=0;
7474 HAVE_DECL_UNSETENV
=1;
7476 REPLACE_CANONICALIZE_FILE_NAME
=0;
7481 REPLACE_PTSNAME_R
=0;
7496 for ac_func
in $gl_func_list
7498 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7499 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7500 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7501 cat >>confdefs.h
<<_ACEOF
7502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7525 $as_echo_n "checking whether // is distinct from /... " >&6; }
7526 if ${gl_cv_double_slash_root+:} false
; then :
7527 $as_echo_n "(cached) " >&6
7529 if test x
"$cross_compiling" = xyes
; then
7530 # When cross-compiling, there is no way to tell whether // is special
7531 # short of a list of hosts. However, the only known hosts to date
7532 # that have a distinct // are Apollo DomainOS (too old to port to),
7533 # Cygwin, and z/OS. If anyone knows of another system for which // has
7534 # special semantics and is distinct from /, please report it to
7535 # <bug-gnulib@gnu.org>.
7537 *-cygwin | i370-ibm-openedition
)
7538 gl_cv_double_slash_root
=yes ;;
7540 # Be optimistic and assume that / and // are the same when we
7542 gl_cv_double_slash_root
='unknown, assuming no' ;;
7545 set x
`ls -di / // 2>/dev/null`
7546 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7547 gl_cv_double_slash_root
=no
7549 gl_cv_double_slash_root
=yes
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7554 $as_echo "$gl_cv_double_slash_root" >&6; }
7555 if test "$gl_cv_double_slash_root" = yes; then
7557 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7575 $as_echo_n "checking whether realpath works... " >&6; }
7576 if ${gl_cv_func_realpath_works+:} false
; then :
7577 $as_echo_n "(cached) " >&6
7582 if test "$cross_compiling" = yes; then :
7584 # Guess yes on glibc systems.
7585 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7586 # If we don't know, assume the worst.
7587 *) gl_cv_func_realpath_works
="guessing no" ;;
7591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7597 #if defined __MACH__ && defined __APPLE__
7598 /* Avoid a crash on Mac OS X. */
7599 #include <mach/mach.h>
7600 #include <mach/mach_error.h>
7601 #include <mach/thread_status.h>
7602 #include <mach/exception.h>
7603 #include <mach/task.h>
7604 #include <pthread.h>
7605 /* The exception port on which our thread listens. */
7606 static mach_port_t our_exception_port;
7607 /* The main function of the thread listening for exceptions of type
7610 mach_exception_thread (void *arg)
7612 /* Buffer for a message to be received. */
7614 mach_msg_header_t head;
7615 mach_msg_body_t msgh_body;
7618 mach_msg_return_t retval;
7619 /* Wait for a message on the exception port. */
7620 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7621 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7622 if (retval != MACH_MSG_SUCCESS)
7629 mach_port_t self = mach_task_self ();
7630 /* Allocate a port on which the thread shall listen for exceptions. */
7631 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7633 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7634 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7635 MACH_MSG_TYPE_MAKE_SEND)
7637 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7639 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7640 /* Create the thread listening on the exception port. */
7641 pthread_attr_t attr;
7643 if (pthread_attr_init (&attr) == 0
7644 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7645 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7646 pthread_attr_destroy (&attr);
7647 /* Replace the exception port info for these exceptions with our own.
7648 Note that we replace the exception port for the entire task, not only
7649 for a particular thread. This has the effect that when our exception
7650 port gets the message, the thread specific exception port has already
7651 been asked, and we don't need to bother about it.
7652 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7653 task_set_exception_ports (self, mask, our_exception_port,
7654 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7659 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
7660 /* Avoid a crash on native Windows. */
7661 #define WIN32_LEAN_AND_MEAN
7662 #include <windows.h>
7663 #include <winerror.h>
7665 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7667 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7669 case EXCEPTION_ACCESS_VIOLATION:
7670 case EXCEPTION_IN_PAGE_ERROR:
7671 case EXCEPTION_STACK_OVERFLOW:
7672 case EXCEPTION_GUARD_PAGE:
7673 case EXCEPTION_PRIV_INSTRUCTION:
7674 case EXCEPTION_ILLEGAL_INSTRUCTION:
7675 case EXCEPTION_DATATYPE_MISALIGNMENT:
7676 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7677 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7680 return EXCEPTION_CONTINUE_SEARCH;
7685 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7688 /* Avoid a crash on POSIX systems. */
7691 /* A POSIX signal handler. */
7693 exception_handler (int sig)
7701 signal (SIGSEGV, exception_handler);
7704 signal (SIGBUS, exception_handler);
7718 char *name = realpath ("conftest.a", NULL);
7719 if (!(name && *name == '/'))
7724 char *name = realpath ("conftest.b/../conftest.a", NULL);
7730 char *name = realpath ("conftest.a/", NULL);
7736 char *name1 = realpath (".", NULL);
7737 char *name2 = realpath ("conftest.d//./..", NULL);
7738 if (! name1 || ! name2 || strcmp (name1, name2))
7750 if ac_fn_c_try_run
"$LINENO"; then :
7751 gl_cv_func_realpath_works
=yes
7753 gl_cv_func_realpath_works
=no
7755 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7756 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7759 rm -rf conftest.a conftest.d
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7763 $as_echo "$gl_cv_func_realpath_works" >&6; }
7764 case "$gl_cv_func_realpath_works" in
7767 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7810 GNULIB_EUIDACCESS
=0;
7818 GNULIB_GETDOMAINNAME
=0;
7819 GNULIB_GETDTABLESIZE
=0;
7821 GNULIB_GETHOSTNAME
=0;
7823 GNULIB_GETLOGIN_R
=0;
7824 GNULIB_GETPAGESIZE
=0;
7825 GNULIB_GETUSERSHELL
=0;
7826 GNULIB_GROUP_MEMBER
=0;
7838 GNULIB_READLINKAT
=0;
7840 GNULIB_SETHOSTNAME
=0;
7845 GNULIB_UNISTD_H_NONBLOCKING
=0;
7846 GNULIB_UNISTD_H_SIGPIPE
=0;
7861 HAVE_GETDTABLESIZE
=1;
7866 HAVE_GROUP_MEMBER
=1;
7882 HAVE_DECL_ENVIRON
=1;
7884 HAVE_DECL_FDATASYNC
=1;
7885 HAVE_DECL_GETDOMAINNAME
=1;
7886 HAVE_DECL_GETLOGIN_R
=1;
7887 HAVE_DECL_GETPAGESIZE
=1;
7888 HAVE_DECL_GETUSERSHELL
=1;
7889 HAVE_DECL_SETHOSTNAME
=1;
7890 HAVE_DECL_TTYNAME_R
=1;
7898 REPLACE_FTRUNCATE
=0;
7900 REPLACE_GETDOMAINNAME
=0;
7901 REPLACE_GETDTABLESIZE
=0;
7902 REPLACE_GETLOGIN_R
=0;
7903 REPLACE_GETGROUPS
=0;
7904 REPLACE_GETPAGESIZE
=0;
7914 REPLACE_READLINKAT
=0;
7918 REPLACE_SYMLINKAT
=0;
7919 REPLACE_TTYNAME_R
=0;
7924 UNISTD_H_HAVE_WINSOCK2_H
=0;
7925 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7958 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7959 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7961 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7964 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7992 HAVE_DECL_FDOPENDIR
=1;
7999 REPLACE_FDOPENDIR
=0;
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
8020 $as_echo_n "checking if environ is properly declared... " >&6; }
8021 if ${gt_cv_var_environ_declaration+:} false
; then :
8022 $as_echo_n "(cached) " >&6
8025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8030 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
8033 extern struct { int foo; } environ;
8042 if ac_fn_c_try_compile
"$LINENO"; then :
8043 gt_cv_var_environ_declaration
=no
8045 gt_cv_var_environ_declaration
=yes
8047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
8051 $as_echo "$gt_cv_var_environ_declaration" >&6; }
8052 if test $gt_cv_var_environ_declaration = yes; then
8054 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
8059 if test $gt_cv_var_environ_declaration != yes; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8066 $as_echo_n "checking for complete errno.h... " >&6; }
8067 if ${gl_cv_header_errno_h_complete+:} false
; then :
8068 $as_echo_n "(cached) " >&6
8071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8075 #if !defined ETXTBSY
8084 #if !defined ENOLINK
8090 #if !defined EMULTIHOP
8093 #if !defined EBADMSG
8096 #if !defined EOVERFLOW
8099 #if !defined ENOTSUP
8102 #if !defined ENETRESET
8105 #if !defined ECONNABORTED
8114 #if !defined ECANCELED
8117 #if !defined EOWNERDEAD
8120 #if !defined ENOTRECOVERABLE
8128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8129 $EGREP "booboo" >/dev
/null
2>&1; then :
8130 gl_cv_header_errno_h_complete
=no
8132 gl_cv_header_errno_h_complete
=yes
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8139 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
8140 if test $gl_cv_header_errno_h_complete = yes; then
8151 if test $gl_cv_have_include_next = yes; then
8152 gl_cv_next_errno_h
='<'errno.h
'>'
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8155 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
8156 if ${gl_cv_next_errno_h+:} false
; then :
8157 $as_echo_n "(cached) " >&6
8162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8167 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8168 *) gl_absname_cpp
="$ac_cpp" ;;
8173 gl_dirsep_regex
='[/\\]'
8176 gl_dirsep_regex
='\/'
8179 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8180 gl_header_literal_regex
=`echo 'errno.h' \
8181 | sed -e "$gl_make_literal_regex_sed"`
8182 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8183 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8189 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8190 sed -n "$gl_absolute_header_sed"`
8192 gl_header
=$gl_cv_absolute_errno_h
8193 gl_cv_next_errno_h
='"'$gl_header'"'
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8198 $as_echo "$gl_cv_next_errno_h" >&6; }
8200 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8202 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8204 gl_next_as_first_directive
='<'errno.h
'>'
8206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8207 gl_next_as_first_directive
=$gl_cv_next_errno_h
8209 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8217 if test -n "$ERRNO_H"; then
8218 GL_GENERATE_ERRNO_H_TRUE
=
8219 GL_GENERATE_ERRNO_H_FALSE
='#'
8221 GL_GENERATE_ERRNO_H_TRUE
='#'
8222 GL_GENERATE_ERRNO_H_FALSE
=
8226 if test -n "$ERRNO_H"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8228 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8229 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8230 $as_echo_n "(cached) " >&6
8233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8243 $EGREP "yes" >/dev
/null
2>&1; then :
8244 gl_cv_header_errno_h_EMULTIHOP
=yes
8246 gl_cv_header_errno_h_EMULTIHOP
=no
8250 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8254 #define _XOPEN_SOURCE_EXTENDED 1
8261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8262 $EGREP "yes" >/dev
/null
2>&1; then :
8263 gl_cv_header_errno_h_EMULTIHOP
=hidden
8267 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8268 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8269 #define _XOPEN_SOURCE_EXTENDED 1
8271 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8283 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8284 case $gl_cv_header_errno_h_EMULTIHOP in
8286 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8289 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8297 if test -n "$ERRNO_H"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8299 $as_echo_n "checking for ENOLINK value... " >&6; }
8300 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8301 $as_echo_n "(cached) " >&6
8304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8314 $EGREP "yes" >/dev
/null
2>&1; then :
8315 gl_cv_header_errno_h_ENOLINK
=yes
8317 gl_cv_header_errno_h_ENOLINK
=no
8321 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8325 #define _XOPEN_SOURCE_EXTENDED 1
8332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8333 $EGREP "yes" >/dev
/null
2>&1; then :
8334 gl_cv_header_errno_h_ENOLINK
=hidden
8338 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8339 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8340 #define _XOPEN_SOURCE_EXTENDED 1
8342 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8354 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8355 case $gl_cv_header_errno_h_ENOLINK in
8357 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8360 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8368 if test -n "$ERRNO_H"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8370 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8371 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8372 $as_echo_n "(cached) " >&6
8375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8385 $EGREP "yes" >/dev
/null
2>&1; then :
8386 gl_cv_header_errno_h_EOVERFLOW
=yes
8388 gl_cv_header_errno_h_EOVERFLOW
=no
8392 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8396 #define _XOPEN_SOURCE_EXTENDED 1
8403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8404 $EGREP "yes" >/dev
/null
2>&1; then :
8405 gl_cv_header_errno_h_EOVERFLOW
=hidden
8409 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8410 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8411 #define _XOPEN_SOURCE_EXTENDED 1
8413 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8425 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8426 case $gl_cv_header_errno_h_EOVERFLOW in
8428 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8431 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8441 $as_echo "#define HAVE_DECL_STRERROR_R 1" >>confdefs.h
8444 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
8447 $as_echo "#define STRERROR_R_CHAR_P 0" >>confdefs.h
8451 XGETTEXT_EXTRA_OPTIONS
=
8457 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8458 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8464 cat >>confdefs.h
<<_ACEOF
8465 #define HAVE_DECL_FCHDIR $ac_have_decl
8471 GNULIB_NONBLOCKING
=0;
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8508 $as_echo_n "checking for working fcntl.h... " >&6; }
8509 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8510 $as_echo_n "(cached) " >&6
8512 if test "$cross_compiling" = yes; then :
8513 gl_cv_header_working_fcntl_h
=cross-compiling
8515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8517 #include <sys/types.h>
8518 #include <sys/stat.h>
8520 # include <unistd.h>
8521 #else /* on Windows with MSVC */
8523 # include <stdlib.h>
8524 # defined sleep(n) _sleep ((n) * 1000)
8531 #define O_NOFOLLOW 0
8533 static int const constants[] =
8535 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8536 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8543 int result = !constants;
8546 static char const sym[] = "conftest.sym";
8547 if (symlink ("/dev/null", sym) != 0)
8551 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8558 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8562 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8573 static char const file[] = "confdefs.h";
8574 int fd = open (file, O_RDONLY | O_NOATIME);
8580 if (fstat (fd, &st0) != 0)
8586 if (read (fd, &c, 1) != 1)
8590 if (close (fd) != 0)
8595 if (stat (file, &st1) != 0)
8598 if (st0.st_atime != st1.st_atime)
8610 if ac_fn_c_try_run
"$LINENO"; then :
8611 gl_cv_header_working_fcntl_h
=yes
8614 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8615 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8616 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8617 *) gl_cv_header_working_fcntl_h
='no';;
8620 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8621 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8626 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8628 case $gl_cv_header_working_fcntl_h in #(
8629 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8633 cat >>confdefs.h
<<_ACEOF
8634 #define HAVE_WORKING_O_NOATIME $ac_val
8638 case $gl_cv_header_working_fcntl_h in #(
8639 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8643 cat >>confdefs.h
<<_ACEOF
8644 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8648 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8649 if test "x$ac_cv_type_pid_t" = xyes
; then :
8653 cat >>confdefs.h
<<_ACEOF
8659 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8660 if test "x$ac_cv_type_mode_t" = xyes
; then :
8664 cat >>confdefs.h
<<_ACEOF
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8683 $as_echo_n "checking for mbstate_t... " >&6; }
8684 if ${ac_cv_type_mbstate_t+:} false
; then :
8685 $as_echo_n "(cached) " >&6
8687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 $ac_includes_default
8690 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8692 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8693 included before <wchar.h>. */
8701 mbstate_t x; return sizeof x;
8706 if ac_fn_c_try_compile
"$LINENO"; then :
8707 ac_cv_type_mbstate_t
=yes
8709 ac_cv_type_mbstate_t
=no
8711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8714 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8715 if test $ac_cv_type_mbstate_t = yes; then
8717 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8721 $as_echo "#define mbstate_t int" >>confdefs.h
8841 GNULIB_REMAINDERF
=0;
8842 GNULIB_REMAINDERL
=0;
8928 HAVE_DECL_COPYSIGNF
=1;
8945 HAVE_DECL_REMAINDER
=1;
8946 HAVE_DECL_REMAINDERL
=1;
9008 REPLACE_REMAINDER
=0;
9009 REPLACE_REMAINDERF
=0;
9010 REPLACE_REMAINDERL
=0;
9015 REPLACE_SIGNBIT_USING_GCC
=0;
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9023 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9024 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9025 $as_echo_n "(cached) " >&6
9028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9035 int e; return frexp (x, &e) > 0;
9040 if ac_fn_c_try_link
"$LINENO"; then :
9041 gl_cv_func_frexp_no_libm
=yes
9043 gl_cv_func_frexp_no_libm
=no
9045 rm -f core conftest.err conftest.
$ac_objext \
9046 conftest
$ac_exeext conftest.
$ac_ext
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9050 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9053 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9054 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9060 cat >>confdefs.h
<<_ACEOF
9061 #define HAVE_DECL_ALARM $ac_have_decl
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9067 $as_echo_n "checking whether long double and double are the same... " >&6; }
9068 if ${gl_cv_long_double_equals_double+:} false
; then :
9069 $as_echo_n "(cached) " >&6
9071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9077 typedef int check[sizeof (long double) == sizeof (double)
9078 && LDBL_MANT_DIG == DBL_MANT_DIG
9079 && LDBL_MAX_EXP == DBL_MAX_EXP
9080 && LDBL_MIN_EXP == DBL_MIN_EXP
9087 if ac_fn_c_try_compile
"$LINENO"; then :
9088 gl_cv_long_double_equals_double
=yes
9090 gl_cv_long_double_equals_double
=no
9092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9096 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9097 if test $gl_cv_long_double_equals_double = yes; then
9099 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9101 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9103 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9140 REPLACE_UTIMENSAT
=0;
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9143 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9144 if ${ac_cv_header_stat_broken+:} false
; then :
9145 $as_echo_n "(cached) " >&6
9147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 #include <sys/types.h>
9150 #include <sys/stat.h>
9152 #if defined S_ISBLK && defined S_IFDIR
9153 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9156 #if defined S_ISBLK && defined S_IFCHR
9157 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9160 #if defined S_ISLNK && defined S_IFREG
9161 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9164 #if defined S_ISSOCK && defined S_IFREG
9165 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9169 if ac_fn_c_try_compile
"$LINENO"; then :
9170 ac_cv_header_stat_broken
=no
9172 ac_cv_header_stat_broken
=yes
9174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9177 $as_echo "$ac_cv_header_stat_broken" >&6; }
9178 if test $ac_cv_header_stat_broken = yes; then
9180 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9194 $as_echo_n "checking for 64-bit off_t... " >&6; }
9195 if ${gl_cv_type_off_t_64+:} false
; then :
9196 $as_echo_n "(cached) " >&6
9198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 #include <sys/types.h>
9201 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9211 if ac_fn_c_try_compile
"$LINENO"; then :
9212 gl_cv_type_off_t_64
=yes
9214 gl_cv_type_off_t_64
=no
9216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9220 $as_echo "$gl_cv_type_off_t_64" >&6; }
9221 if test $gl_cv_type_off_t_64 = no
; then
9222 WINDOWS_64_BIT_OFF_T
=1
9224 WINDOWS_64_BIT_OFF_T
=0
9226 WINDOWS_64_BIT_ST_SIZE
=1
9229 WINDOWS_64_BIT_OFF_T
=0
9230 WINDOWS_64_BIT_ST_SIZE
=0
9254 if test $gl_cv_have_include_next = yes; then
9255 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
9258 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
9259 if ${gl_cv_next_sys_stat_h+:} false
; then :
9260 $as_echo_n "(cached) " >&6
9263 if test $ac_cv_header_sys_stat_h = yes; then
9268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9270 #include <sys/stat.h>
9273 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9274 *) gl_absname_cpp
="$ac_cpp" ;;
9279 gl_dirsep_regex
='[/\\]'
9282 gl_dirsep_regex
='\/'
9285 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9286 gl_header_literal_regex
=`echo 'sys/stat.h' \
9287 | sed -e "$gl_make_literal_regex_sed"`
9288 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9289 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9295 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9296 sed -n "$gl_absolute_header_sed"`
9298 gl_header
=$gl_cv_absolute_sys_stat_h
9299 gl_cv_next_sys_stat_h
='"'$gl_header'"'
9301 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
9307 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
9309 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
9311 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9312 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9313 gl_next_as_first_directive
='<'sys
/stat.h
'>'
9315 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9316 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
9318 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
9330 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
9332 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
9336 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
9337 #include <sys/stat.h>
9339 if test "x$ac_cv_type_nlink_t" = xyes
; then :
9343 $as_echo "#define nlink_t int" >>confdefs.h
9349 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
9350 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9352 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9353 if eval \
${$as_gl_Symbol+:} false
; then :
9354 $as_echo_n "(cached) " >&6
9356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 #include <sys/stat.h>
9369 if ac_fn_c_try_compile
"$LINENO"; then :
9370 eval "$as_gl_Symbol=yes"
9372 eval "$as_gl_Symbol=no"
9374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9376 eval ac_res
=\$
$as_gl_Symbol
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9378 $as_echo "$ac_res" >&6; }
9379 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9380 cat >>confdefs.h
<<_ACEOF
9381 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9384 eval ac_cv_have_decl_
$gl_func=yes
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9391 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9392 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
9393 $as_echo_n "(cached) " >&6
9395 rm -f conftest.sym conftest.
file
9397 if test "$cross_compiling" = yes; then :
9400 # Guess yes on glibc systems.
9401 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9403 # If we don't know, assume the worst.
9404 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 $ac_includes_default
9415 if (symlink ("conftest.file", "conftest.sym") != 0)
9417 /* Linux will dereference the symlink and fail, as required by
9418 POSIX. That is better in the sense that it means we will not
9419 have to compile and use the lstat wrapper. */
9420 return lstat ("conftest.sym/", &sbuf) == 0;
9426 if ac_fn_c_try_run
"$LINENO"; then :
9427 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
9429 gl_cv_func_lstat_dereferences_slashed_symlink
=no
9431 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9432 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9435 rm -f conftest.sym conftest.
file
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9439 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9440 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9443 cat >>confdefs.h
<<_ACEOF
9444 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9464 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9465 if ${gl_cv_func_getcwd_null+:} false
; then :
9466 $as_echo_n "(cached) " >&6
9468 if test "$cross_compiling" = yes; then :
9470 # Guess yes on glibc systems.
9471 *-gnu*) gl_cv_func_getcwd_null
="guessing yes";;
9472 # Guess yes on Cygwin.
9473 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
9474 # If we don't know, assume the worst.
9475 *) gl_cv_func_getcwd_null
="guessing no";;
9479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9482 # include <stdlib.h>
9484 # include <unistd.h>
9485 # else /* on Windows with MSVC */
9486 # include <direct.h>
9496 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9497 /* mingw cwd does not start with '/', but getcwd does allocate.
9498 However, mingw fails to honor non-zero size. */
9500 if (chdir ("/") != 0)
9504 char *f = getcwd (NULL, 0);
9520 if ac_fn_c_try_run
"$LINENO"; then :
9521 gl_cv_func_getcwd_null
=yes
9523 gl_cv_func_getcwd_null
=no
9525 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9526 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9531 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9535 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9536 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9537 $as_echo_n "(cached) " >&6
9539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9549 char *getcwd (char *, size_t);
9556 if ac_fn_c_try_compile
"$LINENO"; then :
9557 gl_cv_func_getcwd_posix_signature
=yes
9559 gl_cv_func_getcwd_posix_signature
=no
9561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9565 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9568 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9569 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9575 cat >>confdefs.h
<<_ACEOF
9576 #define HAVE_DECL_GETCWD $ac_have_decl
9586 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9587 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9593 cat >>confdefs.h
<<_ACEOF
9594 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9599 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9600 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
9606 cat >>confdefs.h
<<_ACEOF
9607 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9617 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9618 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
9624 cat >>confdefs.h
<<_ACEOF
9625 #define HAVE_DECL_GETLOGIN $ac_have_decl
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9640 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9641 if ${ac_cv_c_restrict+:} false
; then :
9642 $as_echo_n "(cached) " >&6
9645 # The order here caters to the fact that C++ does not require restrict.
9646 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 typedef int *int_ptr;
9650 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9651 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9652 int bar (int ip[$ac_kw]) { return ip[0]; }
9660 return foo (t) + bar (t);
9666 if ac_fn_c_try_compile
"$LINENO"; then :
9667 ac_cv_c_restrict
=$ac_kw
9669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9670 test "$ac_cv_c_restrict" != no
&& break
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9675 $as_echo "$ac_cv_c_restrict" >&6; }
9677 case $ac_cv_c_restrict in
9679 no
) $as_echo "#define restrict /**/" >>confdefs.h
9681 *) cat >>confdefs.h
<<_ACEOF
9682 #define restrict $ac_cv_c_restrict
9688 GNULIB_GETTIMEOFDAY
=0;
9689 HAVE_GETTIMEOFDAY
=1;
9690 HAVE_STRUCT_TIMEVAL
=1;
9693 REPLACE_GETTIMEOFDAY
=0;
9694 REPLACE_STRUCT_TIMEVAL
=0;
9726 if test $gl_cv_have_include_next = yes; then
9727 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9730 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9731 if ${gl_cv_next_sys_time_h+:} false
; then :
9732 $as_echo_n "(cached) " >&6
9735 if test $ac_cv_header_sys_time_h = yes; then
9740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742 #include <sys/time.h>
9745 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9746 *) gl_absname_cpp
="$ac_cpp" ;;
9751 gl_dirsep_regex
='[/\\]'
9754 gl_dirsep_regex
='\/'
9757 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9758 gl_header_literal_regex
=`echo 'sys/time.h' \
9759 | sed -e "$gl_make_literal_regex_sed"`
9760 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9761 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9767 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9768 sed -n "$gl_absolute_header_sed"`
9770 gl_header
=$gl_cv_absolute_sys_time_h
9771 gl_cv_next_sys_time_h
='"'$gl_header'"'
9773 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9779 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9781 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9783 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9785 gl_next_as_first_directive
='<'sys
/time.h
'>'
9787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9788 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9790 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9796 if test $ac_cv_header_sys_time_h != yes; then
9810 if test $ac_cv_header_sys_socket_h != yes; then
9811 for ac_header
in winsock2.h
9813 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9814 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9815 cat >>confdefs.h
<<_ACEOF
9816 #define HAVE_WINSOCK2_H 1
9824 if test "$ac_cv_header_winsock2_h" = yes; then
9826 UNISTD_H_HAVE_WINSOCK2_H
=1
9827 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9834 $as_echo_n "checking for struct timeval... " >&6; }
9835 if ${gl_cv_sys_struct_timeval+:} false
; then :
9836 $as_echo_n "(cached) " >&6
9838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9841 #include <sys/time.h>
9845 # include <winsock2.h>
9851 static struct timeval x; x.tv_sec = x.tv_usec;
9856 if ac_fn_c_try_compile
"$LINENO"; then :
9857 gl_cv_sys_struct_timeval
=yes
9859 gl_cv_sys_struct_timeval
=no
9861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9865 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9866 if test $gl_cv_sys_struct_timeval != yes; then
9867 HAVE_STRUCT_TIMEVAL
=0
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9870 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9871 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
9872 $as_echo_n "(cached) " >&6
9874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9877 #include <sys/time.h>
9881 # include <winsock2.h>
9887 static struct timeval x;
9888 typedef int verify_tv_sec_type[
9889 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9896 if ac_fn_c_try_compile
"$LINENO"; then :
9897 gl_cv_sys_struct_timeval_tv_sec
=yes
9899 gl_cv_sys_struct_timeval_tv_sec
=no
9901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9905 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9906 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9907 REPLACE_STRUCT_TIMEVAL
=1
9912 for gl_func
in gettimeofday
; do
9913 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9915 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9916 if eval \
${$as_gl_Symbol+:} false
; then :
9917 $as_echo_n "(cached) " >&6
9919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9923 # include <sys/time.h>
9936 if ac_fn_c_try_compile
"$LINENO"; then :
9937 eval "$as_gl_Symbol=yes"
9939 eval "$as_gl_Symbol=no"
9941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9943 eval ac_res
=\$
$as_gl_Symbol
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9945 $as_echo "$ac_res" >&6; }
9946 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9947 cat >>confdefs.h
<<_ACEOF
9948 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9951 eval ac_cv_have_decl_
$gl_func=yes
9984 GNULIB_GETPEERNAME
=0;
9985 GNULIB_GETSOCKNAME
=0;
9986 GNULIB_GETSOCKOPT
=0;
9992 GNULIB_SETSOCKOPT
=0;
9995 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
9996 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
10008 if test $ac_cv_header_sys_socket_h = no
; then
10009 for ac_header
in ws2tcpip.h
10011 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
10012 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
10013 cat >>confdefs.h
<<_ACEOF
10014 #define HAVE_WS2TCPIP_H 1
10030 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
10036 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
10037 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
10038 $as_echo_n "(cached) " >&6
10041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 #include <sys/socket.h>
10052 if ac_fn_c_try_compile
"$LINENO"; then :
10053 gl_cv_header_sys_socket_h_selfcontained
=yes
10055 gl_cv_header_sys_socket_h_selfcontained
=no
10057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
10061 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
10062 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
10063 for ac_func
in shutdown
10065 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
10066 if test "x$ac_cv_func_shutdown" = xyes
; then :
10067 cat >>confdefs.h
<<_ACEOF
10068 #define HAVE_SHUTDOWN 1
10074 if test $ac_cv_func_shutdown = yes; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
10076 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
10077 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
10078 $as_echo_n "(cached) " >&6
10081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10083 #include <sys/socket.h>
10087 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
10092 if ac_fn_c_try_compile
"$LINENO"; then :
10093 gl_cv_header_sys_socket_h_shut
=yes
10095 gl_cv_header_sys_socket_h_shut
=no
10097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
10101 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
10102 if test $gl_cv_header_sys_socket_h_shut = no
; then
10103 SYS_SOCKET_H
='sys/socket.h'
10107 # We need to check for ws2tcpip.h now.
10125 if test $gl_cv_have_include_next = yes; then
10126 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
10129 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
10130 if ${gl_cv_next_sys_socket_h+:} false
; then :
10131 $as_echo_n "(cached) " >&6
10134 if test $ac_cv_header_sys_socket_h = yes; then
10139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h. */
10141 #include <sys/socket.h>
10144 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10145 *) gl_absname_cpp
="$ac_cpp" ;;
10150 gl_dirsep_regex
='[/\\]'
10153 gl_dirsep_regex
='\/'
10156 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10157 gl_header_literal_regex
=`echo 'sys/socket.h' \
10158 | sed -e "$gl_make_literal_regex_sed"`
10159 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10160 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10166 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10167 sed -n "$gl_absolute_header_sed"`
10169 gl_header
=$gl_cv_absolute_sys_socket_h
10170 gl_cv_next_sys_socket_h
='"'$gl_header'"'
10172 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
10178 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
10180 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
10182 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10183 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10184 gl_next_as_first_directive
='<'sys
/socket.h
'>'
10186 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10187 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
10189 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
10194 if test $ac_cv_header_sys_socket_h = yes; then
10195 HAVE_SYS_SOCKET_H
=1
10198 HAVE_SYS_SOCKET_H
=0
10199 if test $ac_cv_header_ws2tcpip_h = yes; then
10208 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10209 /* sys/types.h is not needed according to POSIX, but the
10210 sys/socket.h in i386-unknown-freebsd4.10 and
10211 powerpc-apple-darwin5.5 required it. */
10212 #include <sys/types.h>
10213 #ifdef HAVE_SYS_SOCKET_H
10214 #include <sys/socket.h>
10216 #ifdef HAVE_WS2TCPIP_H
10217 #include <ws2tcpip.h>
10221 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
10223 cat >>confdefs.h
<<_ACEOF
10224 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10229 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
10230 /* sys/types.h is not needed according to POSIX, but the
10231 sys/socket.h in i386-unknown-freebsd4.10 and
10232 powerpc-apple-darwin5.5 required it. */
10233 #include <sys/types.h>
10234 #ifdef HAVE_SYS_SOCKET_H
10235 #include <sys/socket.h>
10237 #ifdef HAVE_WS2TCPIP_H
10238 #include <ws2tcpip.h>
10242 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
10244 cat >>confdefs.h
<<_ACEOF
10245 #define HAVE_SA_FAMILY_T 1
10251 if test $ac_cv_type_struct_sockaddr_storage = no
; then
10252 HAVE_STRUCT_SOCKADDR_STORAGE
=0
10254 if test $ac_cv_type_sa_family_t = no
; then
10257 if test $ac_cv_type_struct_sockaddr_storage != no
; then
10258 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
10259 #ifdef HAVE_SYS_SOCKET_H
10260 #include <sys/socket.h>
10262 #ifdef HAVE_WS2TCPIP_H
10263 #include <ws2tcpip.h>
10267 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
10269 cat >>confdefs.h
<<_ACEOF
10270 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10275 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
10279 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
10280 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
10281 SYS_SOCKET_H
='sys/socket.h'
10293 if test $ac_cv_header_sys_socket_h != yes; then
10294 for ac_header
in winsock2.h
10296 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10297 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10298 cat >>confdefs.h
<<_ACEOF
10299 #define HAVE_WINSOCK2_H 1
10307 if test "$ac_cv_header_winsock2_h" = yes; then
10309 UNISTD_H_HAVE_WINSOCK2_H
=1
10310 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10318 for gl_func
in socket connect accept
bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4
; do
10319 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10321 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10322 if eval \
${$as_gl_Symbol+:} false
; then :
10323 $as_echo_n "(cached) " >&6
10325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10328 /* Some systems require prerequisite headers. */
10329 #include <sys/types.h>
10330 #include <sys/socket.h>
10341 if ac_fn_c_try_compile
"$LINENO"; then :
10342 eval "$as_gl_Symbol=yes"
10344 eval "$as_gl_Symbol=no"
10346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10348 eval ac_res
=\$
$as_gl_Symbol
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10350 $as_echo "$ac_res" >&6; }
10351 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
10352 cat >>confdefs.h
<<_ACEOF
10353 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10356 eval ac_cv_have_decl_
$gl_func=yes
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
10377 $as_echo_n "checking for IPv4 sockets... " >&6; }
10378 if ${gl_cv_socket_ipv4+:} false
; then :
10379 $as_echo_n "(cached) " >&6
10381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10383 #include <sys/types.h>
10384 #ifdef HAVE_SYS_SOCKET_H
10385 #include <sys/socket.h>
10387 #ifdef HAVE_NETINET_IN_H
10388 #include <netinet/in.h>
10390 #ifdef HAVE_WINSOCK2_H
10391 #include <winsock2.h>
10396 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10397 if (&x && &y && &z) return 0;
10402 if ac_fn_c_try_compile
"$LINENO"; then :
10403 gl_cv_socket_ipv4
=yes
10405 gl_cv_socket_ipv4
=no
10407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
10411 $as_echo "$gl_cv_socket_ipv4" >&6; }
10412 if test $gl_cv_socket_ipv4 = yes; then
10414 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
10419 $as_echo_n "checking for IPv6 sockets... " >&6; }
10420 if ${gl_cv_socket_ipv6+:} false
; then :
10421 $as_echo_n "(cached) " >&6
10423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 #include <sys/types.h>
10426 #ifdef HAVE_SYS_SOCKET_H
10427 #include <sys/socket.h>
10429 #ifdef HAVE_NETINET_IN_H
10430 #include <netinet/in.h>
10432 #ifdef HAVE_WINSOCK2_H
10433 #include <winsock2.h>
10435 #ifdef HAVE_WS2TCPIP_H
10436 #include <ws2tcpip.h>
10441 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10442 if (&x && &y && &z) return 0;
10447 if ac_fn_c_try_compile
"$LINENO"; then :
10448 gl_cv_socket_ipv6
=yes
10450 gl_cv_socket_ipv6
=no
10452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
10456 $as_echo "$gl_cv_socket_ipv6" >&6; }
10457 if test $gl_cv_socket_ipv6 = yes; then
10459 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
10484 if test $gl_cv_have_include_next = yes; then
10485 gl_cv_next_limits_h
='<'limits.h
'>'
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10488 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
10489 if ${gl_cv_next_limits_h+:} false
; then :
10490 $as_echo_n "(cached) " >&6
10493 if test $ac_cv_header_limits_h = yes; then
10498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10500 #include <limits.h>
10503 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10504 *) gl_absname_cpp
="$ac_cpp" ;;
10509 gl_dirsep_regex
='[/\\]'
10512 gl_dirsep_regex
='\/'
10515 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10516 gl_header_literal_regex
=`echo 'limits.h' \
10517 | sed -e "$gl_make_literal_regex_sed"`
10518 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10519 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10525 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10526 sed -n "$gl_absolute_header_sed"`
10528 gl_header
=$gl_cv_absolute_limits_h
10529 gl_cv_next_limits_h
='"'$gl_header'"'
10531 gl_cv_next_limits_h
='<'limits.h
'>'
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10537 $as_echo "$gl_cv_next_limits_h" >&6; }
10539 NEXT_LIMITS_H
=$gl_cv_next_limits_h
10541 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10542 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10543 gl_next_as_first_directive
='<'limits.h
'>'
10545 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10546 gl_next_as_first_directive
=$gl_cv_next_limits_h
10548 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
10555 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
10556 if ${gl_cv_header_limits_width+:} false
; then :
10557 $as_echo_n "(cached) " >&6
10559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10562 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10564 #include <limits.h>
10565 int ullw = ULLONG_WIDTH;
10574 if ac_fn_c_try_compile
"$LINENO"; then :
10575 gl_cv_header_limits_width
=yes
10577 gl_cv_header_limits_width
=no
10579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10582 $as_echo "$gl_cv_header_limits_width" >&6; }
10583 if test "$gl_cv_header_limits_width" = yes; then
10589 if test -n "$LIMITS_H"; then
10590 GL_GENERATE_LIMITS_H_TRUE
=
10591 GL_GENERATE_LIMITS_H_FALSE
='#'
10593 GL_GENERATE_LIMITS_H_TRUE
='#'
10594 GL_GENERATE_LIMITS_H_FALSE
=
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10600 $as_echo_n "checking for unsigned long long int... " >&6; }
10601 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
10602 $as_echo_n "(cached) " >&6
10604 ac_cv_type_unsigned_long_long_int
=yes
10605 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 /* For now, do not test the preprocessor; as of 2007 there are too many
10610 implementations with broken preprocessors. Perhaps this can
10611 be revisited in 2012. In the meantime, code should not expect
10612 #if to work with literals wider than 32 bits. */
10613 /* Test literals. */
10614 long long int ll = 9223372036854775807ll;
10615 long long int nll = -9223372036854775807LL;
10616 unsigned long long int ull = 18446744073709551615ULL;
10617 /* Test constant expressions. */
10618 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10620 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10626 /* Test availability of runtime routines for shift and division. */
10627 long long int llmax = 9223372036854775807ll;
10628 unsigned long long int ullmax = 18446744073709551615ull;
10629 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10630 | (llmax / ll) | (llmax % ll)
10631 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10632 | (ullmax / ull) | (ullmax % ull));
10638 if ac_fn_c_try_link
"$LINENO"; then :
10641 ac_cv_type_unsigned_long_long_int
=no
10643 rm -f core conftest.err conftest.
$ac_objext \
10644 conftest
$ac_exeext conftest.
$ac_ext
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10648 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10649 if test $ac_cv_type_unsigned_long_long_int = yes; then
10651 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10658 $as_echo_n "checking for long long int... " >&6; }
10659 if ${ac_cv_type_long_long_int+:} false
; then :
10660 $as_echo_n "(cached) " >&6
10662 ac_cv_type_long_long_int
=yes
10663 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10664 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
10665 if test $ac_cv_type_long_long_int = yes; then
10666 if test "$cross_compiling" = yes; then :
10669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <limits.h>
10674 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10675 # define LLONG_MAX (HALF - 1 + HALF)
10680 long long int n = 1;
10684 long long int m = n << i;
10687 if (LLONG_MAX / 2 < m)
10695 if ac_fn_c_try_run
"$LINENO"; then :
10698 ac_cv_type_long_long_int
=no
10700 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10701 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10708 $as_echo "$ac_cv_type_long_long_int" >&6; }
10709 if test $ac_cv_type_long_long_int = yes; then
10711 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10726 gl_cv_c_multiarch
=no
10727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 #ifndef __APPLE_CC__
10730 not a universal capable compiler
10735 if ac_fn_c_try_compile
"$LINENO"; then :
10739 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10740 if test -n "$prev"; then
10742 i?
86 | x86_64 | ppc | ppc64
)
10743 if test -z "$arch" ||
test "$arch" = "$word"; then
10746 gl_cv_c_multiarch
=yes
10752 if test "x$word" = "x-arch"; then
10759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10760 if test $gl_cv_c_multiarch = yes; then
10761 APPLE_UNIVERSAL_BUILD
=1
10763 APPLE_UNIVERSAL_BUILD
=0
10772 if test $ac_cv_type_long_long_int = yes; then
10773 HAVE_LONG_LONG_INT
=1
10775 HAVE_LONG_LONG_INT
=0
10779 if test $ac_cv_type_unsigned_long_long_int = yes; then
10780 HAVE_UNSIGNED_LONG_LONG_INT
=1
10782 HAVE_UNSIGNED_LONG_LONG_INT
=0
10793 if test $ac_cv_header_wchar_h = yes; then
10800 if test $ac_cv_header_inttypes_h = yes; then
10807 if test $ac_cv_header_sys_types_h = yes; then
10829 if test $gl_cv_have_include_next = yes; then
10830 gl_cv_next_stdint_h
='<'stdint.h
'>'
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10833 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10834 if ${gl_cv_next_stdint_h+:} false
; then :
10835 $as_echo_n "(cached) " >&6
10838 if test $ac_cv_header_stdint_h = yes; then
10843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845 #include <stdint.h>
10848 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10849 *) gl_absname_cpp
="$ac_cpp" ;;
10854 gl_dirsep_regex
='[/\\]'
10857 gl_dirsep_regex
='\/'
10860 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10861 gl_header_literal_regex
=`echo 'stdint.h' \
10862 | sed -e "$gl_make_literal_regex_sed"`
10863 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10864 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10870 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10871 sed -n "$gl_absolute_header_sed"`
10873 gl_header
=$gl_cv_absolute_stdint_h
10874 gl_cv_next_stdint_h
='"'$gl_header'"'
10876 gl_cv_next_stdint_h
='<'stdint.h
'>'
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10882 $as_echo "$gl_cv_next_stdint_h" >&6; }
10884 NEXT_STDINT_H
=$gl_cv_next_stdint_h
10886 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10887 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10888 gl_next_as_first_directive
='<'stdint.h
'>'
10890 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10891 gl_next_as_first_directive
=$gl_cv_next_stdint_h
10893 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
10898 if test $ac_cv_header_stdint_h = yes; then
10905 if test $ac_cv_header_stdint_h = yes; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10907 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10908 if ${gl_cv_header_working_stdint_h+:} false
; then :
10909 $as_echo_n "(cached) " >&6
10911 gl_cv_header_working_stdint_h
=no
10912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10916 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10917 #define __STDC_CONSTANT_MACROS 1
10918 #define __STDC_LIMIT_MACROS 1
10919 #include <stdint.h>
10920 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10921 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10922 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10926 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10927 included before <wchar.h>. */
10928 #include <stddef.h>
10929 #include <signal.h>
10931 # include <stdio.h>
10933 # include <wchar.h>
10938 int8_t a1 = INT8_MAX;
10939 int8_t a1min = INT8_MIN;
10942 int16_t a2 = INT16_MAX;
10943 int16_t a2min = INT16_MIN;
10946 int32_t a3 = INT32_MAX;
10947 int32_t a3min = INT32_MIN;
10950 int64_t a4 = INT64_MAX;
10951 int64_t a4min = INT64_MIN;
10954 uint8_t b1 = UINT8_MAX;
10956 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10959 uint16_t b2 = UINT16_MAX;
10962 uint32_t b3 = UINT32_MAX;
10965 uint64_t b4 = UINT64_MAX;
10967 int_least8_t c1 = INT8_C (0x7f);
10968 int_least8_t c1max = INT_LEAST8_MAX;
10969 int_least8_t c1min = INT_LEAST8_MIN;
10970 int_least16_t c2 = INT16_C (0x7fff);
10971 int_least16_t c2max = INT_LEAST16_MAX;
10972 int_least16_t c2min = INT_LEAST16_MIN;
10973 int_least32_t c3 = INT32_C (0x7fffffff);
10974 int_least32_t c3max = INT_LEAST32_MAX;
10975 int_least32_t c3min = INT_LEAST32_MIN;
10976 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10977 int_least64_t c4max = INT_LEAST64_MAX;
10978 int_least64_t c4min = INT_LEAST64_MIN;
10979 uint_least8_t d1 = UINT8_C (0xff);
10980 uint_least8_t d1max = UINT_LEAST8_MAX;
10981 uint_least16_t d2 = UINT16_C (0xffff);
10982 uint_least16_t d2max = UINT_LEAST16_MAX;
10983 uint_least32_t d3 = UINT32_C (0xffffffff);
10984 uint_least32_t d3max = UINT_LEAST32_MAX;
10985 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10986 uint_least64_t d4max = UINT_LEAST64_MAX;
10987 int_fast8_t e1 = INT_FAST8_MAX;
10988 int_fast8_t e1min = INT_FAST8_MIN;
10989 int_fast16_t e2 = INT_FAST16_MAX;
10990 int_fast16_t e2min = INT_FAST16_MIN;
10991 int_fast32_t e3 = INT_FAST32_MAX;
10992 int_fast32_t e3min = INT_FAST32_MIN;
10993 int_fast64_t e4 = INT_FAST64_MAX;
10994 int_fast64_t e4min = INT_FAST64_MIN;
10995 uint_fast8_t f1 = UINT_FAST8_MAX;
10996 uint_fast16_t f2 = UINT_FAST16_MAX;
10997 uint_fast32_t f3 = UINT_FAST32_MAX;
10998 uint_fast64_t f4 = UINT_FAST64_MAX;
11000 intptr_t g = INTPTR_MAX;
11001 intptr_t gmin = INTPTR_MIN;
11004 uintptr_t h = UINTPTR_MAX;
11006 intmax_t i = INTMAX_MAX;
11007 uintmax_t j = UINTMAX_MAX;
11009 /* Check that SIZE_MAX has the correct type, if possible. */
11010 #if 201112 <= __STDC_VERSION__
11011 int k = _Generic (SIZE_MAX, size_t: 0);
11012 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
11013 || (0x5110 <= __SUNPRO_C && !__STDC__))
11015 extern __typeof__ (SIZE_MAX) k;
11018 #include <limits.h> /* for CHAR_BIT */
11019 #define TYPE_MINIMUM(t) \
11020 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
11021 #define TYPE_MAXIMUM(t) \
11022 ((t) ((t) 0 < (t) -1 \
11024 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
11027 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
11028 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
11030 /* Detect bug in FreeBSD 6.0 / ia64. */
11031 int check_SIG_ATOMIC:
11032 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
11033 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
11035 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
11037 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
11038 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
11040 /* Detect bug in mingw. */
11042 WINT_MIN == TYPE_MINIMUM (wint_t)
11043 && WINT_MAX == TYPE_MAXIMUM (wint_t)
11046 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
11048 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11049 int check_UINT16_C:
11050 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11052 /* Detect bugs in OpenBSD 3.9 stdint.h. */
11054 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11057 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11060 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11063 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11065 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11066 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11067 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11068 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11069 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11070 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11071 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11072 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11073 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11074 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11075 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11086 if ac_fn_c_try_compile
"$LINENO"; then :
11087 if test "$cross_compiling" = yes; then :
11088 gl_cv_header_working_stdint_h
=yes
11091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11095 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11096 #define __STDC_CONSTANT_MACROS 1
11097 #define __STDC_LIMIT_MACROS 1
11098 #include <stdint.h>
11101 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11102 included before <wchar.h>. */
11103 #include <stddef.h>
11104 #include <signal.h>
11106 # include <stdio.h>
11108 # include <wchar.h>
11113 #include <string.h>
11114 #define MVAL(macro) MVAL1(macro)
11115 #define MVAL1(expression) #expression
11116 static const char *macro_values[] =
11150 for (mv = macro_values; *mv != NULL; mv++)
11152 const char *value = *mv;
11153 /* Test whether it looks like a cast expression. */
11154 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
11155 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
11156 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
11157 || strncmp (value, "((int)"/*)*/, 6) == 0
11158 || strncmp (value, "((signed short)"/*)*/, 15) == 0
11159 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
11160 return mv - macro_values + 1;
11168 if ac_fn_c_try_run
"$LINENO"; then :
11169 gl_cv_header_working_stdint_h
=yes
11171 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11172 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
11181 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
11184 HAVE_C99_STDINT_H
=0
11185 HAVE_SYS_BITYPES_H
=0
11186 HAVE_SYS_INTTYPES_H
=0
11188 if test "$gl_cv_header_working_stdint_h" = yes; then
11189 HAVE_C99_STDINT_H
=1
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
11191 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
11192 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
11193 $as_echo_n "(cached) " >&6
11195 gl_cv_header_stdint_predates_cxx11_h
=yes
11196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11200 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11201 #include <stdint.h>
11204 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11205 included before <wchar.h>. */
11206 #include <stddef.h>
11207 #include <signal.h>
11209 # include <stdio.h>
11211 # include <wchar.h>
11215 intmax_t im = INTMAX_MAX;
11216 int32_t i32 = INT32_C (0x7fffffff);
11226 if ac_fn_c_try_compile
"$LINENO"; then :
11227 gl_cv_header_stdint_predates_cxx11_h
=no
11229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
11232 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
11234 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
11236 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
11239 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
11243 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
11244 if ${gl_cv_header_stdint_width+:} false
; then :
11245 $as_echo_n "(cached) " >&6
11247 gl_cv_header_stdint_width
=no
11248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11251 /* Work if build is not clean. */
11252 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
11253 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11254 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11256 #include <stdint.h>
11258 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11259 included before <wchar.h>. */
11260 #include <stddef.h>
11261 #include <signal.h>
11263 # include <stdio.h>
11265 # include <wchar.h>
11268 int iw = UINTMAX_WIDTH;
11278 if ac_fn_c_try_compile
"$LINENO"; then :
11279 gl_cv_header_stdint_width
=yes
11281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
11284 $as_echo "$gl_cv_header_stdint_width" >&6; }
11285 if test "$gl_cv_header_stdint_width" = yes; then
11289 for ac_header
in sys
/inttypes.h sys
/bitypes.h
11291 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11292 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11293 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11294 cat >>confdefs.h
<<_ACEOF
11295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302 if test $ac_cv_header_sys_inttypes_h = yes; then
11303 HAVE_SYS_INTTYPES_H
=1
11305 if test $ac_cv_header_sys_bitypes_h = yes; then
11306 HAVE_SYS_BITYPES_H
=1
11310 if test $APPLE_UNIVERSAL_BUILD = 0; then
11313 for gltype
in ptrdiff_t size_t
; do
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11315 $as_echo_n "checking for bit size of $gltype... " >&6; }
11316 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11317 $as_echo_n "(cached) " >&6
11319 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11320 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11321 included before <wchar.h>. */
11322 #include <stddef.h>
11323 #include <signal.h>
11325 # include <stdio.h>
11327 # include <wchar.h>
11330 #include <limits.h>"; then :
11336 eval gl_cv_bitsizeof_
${gltype}=\
$result
11339 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11341 $as_echo "$ac_res" >&6; }
11342 eval result
=\
$gl_cv_bitsizeof_${gltype}
11343 if test $result = unknown
; then
11346 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11347 cat >>confdefs.h
<<_ACEOF
11348 #define BITSIZEOF_${GLTYPE} $result
11351 eval BITSIZEOF_
${GLTYPE}=\
$result
11358 for gltype
in sig_atomic_t wchar_t wint_t
; do
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11360 $as_echo_n "checking for bit size of $gltype... " >&6; }
11361 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11362 $as_echo_n "(cached) " >&6
11364 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11365 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11366 included before <wchar.h>. */
11367 #include <stddef.h>
11368 #include <signal.h>
11370 # include <stdio.h>
11372 # include <wchar.h>
11375 #include <limits.h>"; then :
11381 eval gl_cv_bitsizeof_
${gltype}=\
$result
11384 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11386 $as_echo "$ac_res" >&6; }
11387 eval result
=\
$gl_cv_bitsizeof_${gltype}
11388 if test $result = unknown
; then
11391 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11392 cat >>confdefs.h
<<_ACEOF
11393 #define BITSIZEOF_${GLTYPE} $result
11396 eval BITSIZEOF_
${GLTYPE}=\
$result
11402 for gltype
in sig_atomic_t wchar_t wint_t
; do
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11404 $as_echo_n "checking whether $gltype is signed... " >&6; }
11405 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
11406 $as_echo_n "(cached) " >&6
11408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11411 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11412 included before <wchar.h>. */
11413 #include <stddef.h>
11414 #include <signal.h>
11416 # include <stdio.h>
11418 # include <wchar.h>
11421 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11430 if ac_fn_c_try_compile
"$LINENO"; then :
11435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11436 eval gl_cv_type_
${gltype}_signed
=\
$result
11439 eval ac_res
=\
$gl_cv_type_${gltype}_signed
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11441 $as_echo "$ac_res" >&6; }
11442 eval result
=\
$gl_cv_type_${gltype}_signed
11443 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11444 if test "$result" = yes; then
11445 cat >>confdefs.h
<<_ACEOF
11446 #define HAVE_SIGNED_${GLTYPE} 1
11449 eval HAVE_SIGNED_
${GLTYPE}=1
11451 eval HAVE_SIGNED_
${GLTYPE}=0
11456 gl_cv_type_ptrdiff_t_signed
=yes
11457 gl_cv_type_size_t_signed
=no
11458 if test $APPLE_UNIVERSAL_BUILD = 0; then
11461 for gltype
in ptrdiff_t size_t
; do
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11463 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11464 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11465 $as_echo_n "(cached) " >&6
11467 eval gl_cv_type_
${gltype}_suffix
=no
11468 eval result
=\
$gl_cv_type_${gltype}_signed
11469 if test "$result" = yes; then
11474 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11476 '') gltype1
='int';;
11477 l
) gltype1
='long int';;
11478 ll
) gltype1
='long long int';;
11479 i64
) gltype1
='__int64';;
11480 u
) gltype1
='unsigned int';;
11481 ul
) gltype1
='unsigned long int';;
11482 ull
) gltype1
='unsigned long long int';;
11483 ui64
)gltype1
='unsigned __int64';;
11485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11488 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11489 included before <wchar.h>. */
11490 #include <stddef.h>
11491 #include <signal.h>
11493 # include <stdio.h>
11495 # include <wchar.h>
11498 extern $gltype foo;
11499 extern $gltype1 foo;
11508 if ac_fn_c_try_compile
"$LINENO"; then :
11509 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11512 eval result
=\
$gl_cv_type_${gltype}_suffix
11513 test "$result" != no
&& break
11516 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11518 $as_echo "$ac_res" >&6; }
11519 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11520 eval result
=\
$gl_cv_type_${gltype}_suffix
11521 test "$result" = no
&& result
=
11522 eval ${GLTYPE}_SUFFIX
=\
$result
11523 cat >>confdefs.h
<<_ACEOF
11524 #define ${GLTYPE}_SUFFIX $result
11533 for gltype
in sig_atomic_t wchar_t wint_t
; do
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11535 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11536 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11537 $as_echo_n "(cached) " >&6
11539 eval gl_cv_type_
${gltype}_suffix
=no
11540 eval result
=\
$gl_cv_type_${gltype}_signed
11541 if test "$result" = yes; then
11546 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11548 '') gltype1
='int';;
11549 l
) gltype1
='long int';;
11550 ll
) gltype1
='long long int';;
11551 i64
) gltype1
='__int64';;
11552 u
) gltype1
='unsigned int';;
11553 ul
) gltype1
='unsigned long int';;
11554 ull
) gltype1
='unsigned long long int';;
11555 ui64
)gltype1
='unsigned __int64';;
11557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11560 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11561 included before <wchar.h>. */
11562 #include <stddef.h>
11563 #include <signal.h>
11565 # include <stdio.h>
11567 # include <wchar.h>
11570 extern $gltype foo;
11571 extern $gltype1 foo;
11580 if ac_fn_c_try_compile
"$LINENO"; then :
11581 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11584 eval result
=\
$gl_cv_type_${gltype}_suffix
11585 test "$result" != no
&& break
11588 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11590 $as_echo "$ac_res" >&6; }
11591 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11592 eval result
=\
$gl_cv_type_${gltype}_suffix
11593 test "$result" = no
&& result
=
11594 eval ${GLTYPE}_SUFFIX
=\
$result
11595 cat >>confdefs.h
<<_ACEOF
11596 #define ${GLTYPE}_SUFFIX $result
11603 if test $BITSIZEOF_WINT_T -lt 32; then
11604 BITSIZEOF_WINT_T
=32
11609 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
11611 if test -n "$LIMITS_H"; then
11612 GL_GENERATE_LIMITS_H_TRUE
=
11613 GL_GENERATE_LIMITS_H_FALSE
='#'
11615 GL_GENERATE_LIMITS_H_TRUE
='#'
11616 GL_GENERATE_LIMITS_H_FALSE
=
11624 if test -n "$STDINT_H"; then
11625 GL_GENERATE_STDINT_H_TRUE
=
11626 GL_GENERATE_STDINT_H_FALSE
='#'
11628 GL_GENERATE_STDINT_H_TRUE
='#'
11629 GL_GENERATE_STDINT_H_FALSE
=
11641 GNULIB_STRTOIMAX
=0;
11642 GNULIB_STRTOUMAX
=0;
11643 HAVE_DECL_IMAXABS
=1;
11644 HAVE_DECL_IMAXDIV
=1;
11645 HAVE_DECL_STRTOIMAX
=1;
11646 HAVE_DECL_STRTOUMAX
=1;
11647 REPLACE_STRTOIMAX
=0;
11648 REPLACE_STRTOUMAX
=0;
11649 INT32_MAX_LT_INTMAX_MAX
=1;
11650 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
11651 PRI_MACROS_BROKEN
=0;
11652 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
11653 UINT32_MAX_LT_UINTMAX_MAX
=1;
11654 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
11682 if test $gl_cv_have_include_next = yes; then
11683 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11686 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11687 if ${gl_cv_next_inttypes_h+:} false
; then :
11688 $as_echo_n "(cached) " >&6
11691 if test $ac_cv_header_inttypes_h = yes; then
11696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11698 #include <inttypes.h>
11701 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11702 *) gl_absname_cpp
="$ac_cpp" ;;
11707 gl_dirsep_regex
='[/\\]'
11710 gl_dirsep_regex
='\/'
11713 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11714 gl_header_literal_regex
=`echo 'inttypes.h' \
11715 | sed -e "$gl_make_literal_regex_sed"`
11716 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11717 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11723 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11724 sed -n "$gl_absolute_header_sed"`
11726 gl_header
=$gl_cv_absolute_inttypes_h
11727 gl_cv_next_inttypes_h
='"'$gl_header'"'
11729 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11735 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11737 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
11739 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11740 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11741 gl_next_as_first_directive
='<'inttypes.h
'>'
11743 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11744 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
11746 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
11755 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
11756 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11758 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11759 if eval \
${$as_gl_Symbol+:} false
; then :
11760 $as_echo_n "(cached) " >&6
11762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764 #include <inttypes.h>
11775 if ac_fn_c_try_compile
"$LINENO"; then :
11776 eval "$as_gl_Symbol=yes"
11778 eval "$as_gl_Symbol=no"
11780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11782 eval ac_res
=\$
$as_gl_Symbol
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11784 $as_echo "$ac_res" >&6; }
11785 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
11786 cat >>confdefs.h
<<_ACEOF
11787 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11790 eval ac_cv_have_decl_
$gl_func=yes
11796 for ac_header
in inttypes.h
11798 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11799 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
11800 cat >>confdefs.h
<<_ACEOF
11801 #define HAVE_INTTYPES_H 1
11808 if test $ac_cv_header_inttypes_h = yes; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
11810 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
11811 if ${gt_cv_inttypes_pri_broken+:} false
; then :
11812 $as_echo_n "(cached) " >&6
11815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11818 #include <inttypes.h>
11831 if ac_fn_c_try_compile
"$LINENO"; then :
11832 gt_cv_inttypes_pri_broken
=no
11834 gt_cv_inttypes_pri_broken
=yes
11836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
11840 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11842 if test "$gt_cv_inttypes_pri_broken" = yes; then
11844 cat >>confdefs.h
<<_ACEOF
11845 #define PRI_MACROS_BROKEN 1
11848 PRI_MACROS_BROKEN
=1
11850 PRI_MACROS_BROKEN
=0
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
11856 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
11857 if ${gl_cv_cc_double_expbit0+:} false
; then :
11858 $as_echo_n "(cached) " >&6
11861 if test "$cross_compiling" = yes; then :
11863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11866 #if defined arm || defined __arm || defined __arm__
11871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11872 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
11873 gl_cv_cc_double_expbit0
="unknown"
11877 if ${ac_cv_c_bigendian+:} false
; then :
11878 $as_echo_n "(cached) " >&6
11880 ac_cv_c_bigendian
=unknown
11881 # See if we're dealing with a universal compiler.
11882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884 #ifndef __APPLE_CC__
11885 not a universal capable compiler
11890 if ac_fn_c_try_compile
"$LINENO"; then :
11892 # Check for potential -arch flags. It is not universal unless
11893 # there are at least two -arch flags with different values.
11896 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11897 if test -n "$ac_prev"; then
11899 i?
86 | x86_64 | ppc | ppc64
)
11900 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11903 ac_cv_c_bigendian
=universal
11909 elif test "x$ac_word" = "x-arch"; then
11914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11915 if test $ac_cv_c_bigendian = unknown
; then
11916 # See if sys/param.h defines the BYTE_ORDER macro.
11917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919 #include <sys/types.h>
11920 #include <sys/param.h>
11925 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11926 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11928 bogus endian macros
11935 if ac_fn_c_try_compile
"$LINENO"; then :
11936 # It does; now see whether it defined to BIG_ENDIAN or not.
11937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939 #include <sys/types.h>
11940 #include <sys/param.h>
11945 #if BYTE_ORDER != BIG_ENDIAN
11953 if ac_fn_c_try_compile
"$LINENO"; then :
11954 ac_cv_c_bigendian
=yes
11956 ac_cv_c_bigendian
=no
11958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11962 if test $ac_cv_c_bigendian = unknown
; then
11963 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #include <limits.h>
11971 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11972 bogus endian macros
11979 if ac_fn_c_try_compile
"$LINENO"; then :
11980 # It does; now see whether it defined to _BIG_ENDIAN or not.
11981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983 #include <limits.h>
11988 #ifndef _BIG_ENDIAN
11996 if ac_fn_c_try_compile
"$LINENO"; then :
11997 ac_cv_c_bigendian
=yes
11999 ac_cv_c_bigendian
=no
12001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12005 if test $ac_cv_c_bigendian = unknown
; then
12006 # Compile a test program.
12007 if test "$cross_compiling" = yes; then :
12008 # Try to guess by grepping values from an object file.
12009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 short int ascii_mm[] =
12012 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12013 short int ascii_ii[] =
12014 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12015 int use_ascii (int i) {
12016 return ascii_mm[i] + ascii_ii[i];
12018 short int ebcdic_ii[] =
12019 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12020 short int ebcdic_mm[] =
12021 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12022 int use_ebcdic (int i) {
12023 return ebcdic_mm[i] + ebcdic_ii[i];
12030 return use_ascii (foo) == use_ebcdic (foo);
12035 if ac_fn_c_try_compile
"$LINENO"; then :
12036 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12037 ac_cv_c_bigendian
=yes
12039 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12040 if test "$ac_cv_c_bigendian" = unknown
; then
12041 ac_cv_c_bigendian
=no
12043 # finding both strings is unlikely to happen, but who knows?
12044 ac_cv_c_bigendian
=unknown
12048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052 $ac_includes_default
12057 /* Are we little or big endian? From Harbison&Steele. */
12061 char c[sizeof (long int)];
12064 return u.c[sizeof (long int) - 1] == 1;
12070 if ac_fn_c_try_run
"$LINENO"; then :
12071 ac_cv_c_bigendian
=no
12073 ac_cv_c_bigendian
=yes
12075 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12076 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12082 case $ac_cv_c_bigendian in #(
12084 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
12086 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
12089 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12093 gl_cv_cc_double_expbit0
="unknown" ;;
12102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12106 #include <stddef.h>
12108 #include <string.h>
12110 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12111 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
12112 static unsigned int ored_words[NWORDS];
12113 static unsigned int anded_words[NWORDS];
12114 static void add_to_ored_words (double x)
12118 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
12119 memset (&m, 0, sizeof (memory_double));
12121 for (i = 0; i < NWORDS; i++)
12123 ored_words[i] |= m.word[i];
12124 anded_words[i] &= m.word[i];
12130 FILE *fp = fopen ("conftest.out", "w");
12133 for (j = 0; j < NWORDS; j++)
12134 anded_words[j] = ~ (unsigned int) 0;
12135 add_to_ored_words (0.25);
12136 add_to_ored_words (0.5);
12137 add_to_ored_words (1.0);
12138 add_to_ored_words (2.0);
12139 add_to_ored_words (4.0);
12140 /* Remove bits that are common (e.g. if representation of the first mantissa
12141 bit is explicit). */
12142 for (j = 0; j < NWORDS; j++)
12143 ored_words[j] &= ~anded_words[j];
12144 /* Now find the nonzero word. */
12145 for (j = 0; j < NWORDS; j++)
12146 if (ored_words[j] != 0)
12151 for (i = j + 1; i < NWORDS; i++)
12152 if (ored_words[i] != 0)
12154 fprintf (fp, "unknown");
12155 return (fclose (fp) != 0);
12158 if ((ored_words[j] >> i) & 1)
12160 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12161 return (fclose (fp) != 0);
12164 fprintf (fp, "unknown");
12165 return (fclose (fp) != 0);
12169 if ac_fn_c_try_run
"$LINENO"; then :
12170 gl_cv_cc_double_expbit0
=`cat conftest.out`
12172 gl_cv_cc_double_expbit0
="unknown"
12174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
12182 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
12183 case "$gl_cv_cc_double_expbit0" in
12185 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12186 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
12188 cat >>confdefs.h
<<_ACEOF
12189 #define DBL_EXPBIT0_WORD $word
12193 cat >>confdefs.h
<<_ACEOF
12194 #define DBL_EXPBIT0_BIT $bit
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12202 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12203 if ${ac_cv_c_bigendian+:} false
; then :
12204 $as_echo_n "(cached) " >&6
12206 ac_cv_c_bigendian
=unknown
12207 # See if we're dealing with a universal compiler.
12208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210 #ifndef __APPLE_CC__
12211 not a universal capable compiler
12216 if ac_fn_c_try_compile
"$LINENO"; then :
12218 # Check for potential -arch flags. It is not universal unless
12219 # there are at least two -arch flags with different values.
12222 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12223 if test -n "$ac_prev"; then
12225 i?
86 | x86_64 | ppc | ppc64
)
12226 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12229 ac_cv_c_bigendian
=universal
12235 elif test "x$ac_word" = "x-arch"; then
12240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12241 if test $ac_cv_c_bigendian = unknown
; then
12242 # See if sys/param.h defines the BYTE_ORDER macro.
12243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12245 #include <sys/types.h>
12246 #include <sys/param.h>
12251 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12252 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12254 bogus endian macros
12261 if ac_fn_c_try_compile
"$LINENO"; then :
12262 # It does; now see whether it defined to BIG_ENDIAN or not.
12263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12265 #include <sys/types.h>
12266 #include <sys/param.h>
12271 #if BYTE_ORDER != BIG_ENDIAN
12279 if ac_fn_c_try_compile
"$LINENO"; then :
12280 ac_cv_c_bigendian
=yes
12282 ac_cv_c_bigendian
=no
12284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12288 if test $ac_cv_c_bigendian = unknown
; then
12289 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12292 #include <limits.h>
12297 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12298 bogus endian macros
12305 if ac_fn_c_try_compile
"$LINENO"; then :
12306 # It does; now see whether it defined to _BIG_ENDIAN or not.
12307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12309 #include <limits.h>
12314 #ifndef _BIG_ENDIAN
12322 if ac_fn_c_try_compile
"$LINENO"; then :
12323 ac_cv_c_bigendian
=yes
12325 ac_cv_c_bigendian
=no
12327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12331 if test $ac_cv_c_bigendian = unknown
; then
12332 # Compile a test program.
12333 if test "$cross_compiling" = yes; then :
12334 # Try to guess by grepping values from an object file.
12335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337 short int ascii_mm[] =
12338 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12339 short int ascii_ii[] =
12340 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12341 int use_ascii (int i) {
12342 return ascii_mm[i] + ascii_ii[i];
12344 short int ebcdic_ii[] =
12345 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12346 short int ebcdic_mm[] =
12347 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12348 int use_ebcdic (int i) {
12349 return ebcdic_mm[i] + ebcdic_ii[i];
12356 return use_ascii (foo) == use_ebcdic (foo);
12361 if ac_fn_c_try_compile
"$LINENO"; then :
12362 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12363 ac_cv_c_bigendian
=yes
12365 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12366 if test "$ac_cv_c_bigendian" = unknown
; then
12367 ac_cv_c_bigendian
=no
12369 # finding both strings is unlikely to happen, but who knows?
12370 ac_cv_c_bigendian
=unknown
12374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12378 $ac_includes_default
12383 /* Are we little or big endian? From Harbison&Steele. */
12387 char c[sizeof (long int)];
12390 return u.c[sizeof (long int) - 1] == 1;
12396 if ac_fn_c_try_run
"$LINENO"; then :
12397 ac_cv_c_bigendian
=no
12399 ac_cv_c_bigendian
=yes
12401 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12402 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12408 $as_echo "$ac_cv_c_bigendian" >&6; }
12409 case $ac_cv_c_bigendian in #(
12411 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12417 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12421 as_fn_error $?
"unknown endianness
12422 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12428 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12429 if ${am_cv_langinfo_codeset+:} false
; then :
12430 $as_echo_n "(cached) " >&6
12432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434 #include <langinfo.h>
12438 char* cs = nl_langinfo(CODESET); return !cs;
12443 if ac_fn_c_try_link
"$LINENO"; then :
12444 am_cv_langinfo_codeset
=yes
12446 am_cv_langinfo_codeset
=no
12448 rm -f core conftest.err conftest.
$ac_objext \
12449 conftest
$ac_exeext conftest.
$ac_ext
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12453 $as_echo "$am_cv_langinfo_codeset" >&6; }
12454 if test $am_cv_langinfo_codeset = yes; then
12456 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12461 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12462 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
12468 cat >>confdefs.h
<<_ACEOF
12469 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
12475 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
12476 if ${ac_cv_gnu_library_2_1+:} false
; then :
12477 $as_echo_n "(cached) " >&6
12479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12482 #include <features.h>
12483 #ifdef __GNU_LIBRARY__
12484 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12494 $EGREP "Lucky" >/dev
/null
2>&1; then :
12495 ac_cv_gnu_library_2_1
=yes
12497 ac_cv_gnu_library_2_1
=no
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12505 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12507 GLIBC21
="$ac_cv_gnu_library_2_1"
12511 if test "X$prefix" = "XNONE"; then
12512 acl_final_prefix
="$ac_default_prefix"
12514 acl_final_prefix
="$prefix"
12516 if test "X$exec_prefix" = "XNONE"; then
12517 acl_final_exec_prefix
='${prefix}'
12519 acl_final_exec_prefix
="$exec_prefix"
12521 acl_save_prefix
="$prefix"
12522 prefix
="$acl_final_prefix"
12523 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
12524 prefix
="$acl_save_prefix"
12528 # Check whether --with-gnu-ld was given.
12529 if test "${with_gnu_ld+set}" = set; then :
12530 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12535 # Prepare PATH_SEPARATOR.
12536 # The user is always right.
12537 if test "${PATH_SEPARATOR+set}" != set; then
12538 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12539 # contains only /bin. Note that ksh looks also at the FPATH variable,
12540 # so we have to set that as well for the test.
12542 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
12543 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
12544 || PATH_SEPARATOR
=';'
12549 if test "$GCC" = yes; then
12550 # Check if gcc -print-prog-name=ld gives a path.
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12552 $as_echo_n "checking for ld used by $CC... " >&6; }
12555 # gcc leaves a trailing carriage return which upsets mingw
12556 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12558 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12561 # Accept absolute paths.
12563 re_direlt
='/[^/][^/]*/\.\./'
12564 # Canonicalize the pathname of ld
12565 ac_prog
=`echo "$ac_prog"| sed 's%\\\\%/%g'`
12566 while echo "$ac_prog" |
grep "$re_direlt" > /dev
/null
2>&1; do
12567 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
12569 test -z "$LD" && LD
="$ac_prog"
12572 # If it fails, then pretend we aren't using GCC.
12576 # If it is relative, then search for the first ld in PATH.
12577 with_gnu_ld
=unknown
12580 elif test "$with_gnu_ld" = yes; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12582 $as_echo_n "checking for GNU ld... " >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12585 $as_echo_n "checking for non-GNU ld... " >&6; }
12587 if ${acl_cv_path_LD+:} false
; then :
12588 $as_echo_n "(cached) " >&6
12590 if test -z "$LD"; then
12591 acl_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12592 for ac_dir
in $PATH; do
12593 IFS
="$acl_save_ifs"
12594 test -z "$ac_dir" && ac_dir
=.
12595 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12596 acl_cv_path_LD
="$ac_dir/$ac_prog"
12597 # Check to see if the program is GNU ld. I'd rather use --version,
12598 # but apparently some variants of GNU ld only accept -v.
12599 # Break only if it was the GNU/non-GNU ld that we prefer.
12600 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
12601 *GNU
* |
*'with BFD'*)
12602 test "$with_gnu_ld" != no
&& break
12605 test "$with_gnu_ld" != yes && break
12610 IFS
="$acl_save_ifs"
12612 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
12616 LD
="$acl_cv_path_LD"
12617 if test -n "$LD"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12619 $as_echo "$LD" >&6; }
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12624 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12626 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12627 if ${acl_cv_prog_gnu_ld+:} false
; then :
12628 $as_echo_n "(cached) " >&6
12630 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12631 case `$LD -v 2>&1 </dev/null` in
12632 *GNU
* |
*'with BFD'*)
12633 acl_cv_prog_gnu_ld
=yes
12636 acl_cv_prog_gnu_ld
=no
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12641 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12642 with_gnu_ld
=$acl_cv_prog_gnu_ld
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12648 $as_echo_n "checking for shared library run path origin... " >&6; }
12649 if ${acl_cv_rpath+:} false
; then :
12650 $as_echo_n "(cached) " >&6
12653 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
12654 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12656 rm -f .
/conftest.sh
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12661 $as_echo "$acl_cv_rpath" >&6; }
12663 acl_libext
="$acl_cv_libext"
12664 acl_shlibext
="$acl_cv_shlibext"
12665 acl_libname_spec
="$acl_cv_libname_spec"
12666 acl_library_names_spec
="$acl_cv_library_names_spec"
12667 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
12668 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
12669 acl_hardcode_direct
="$acl_cv_hardcode_direct"
12670 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
12671 # Check whether --enable-rpath was given.
12672 if test "${enable_rpath+set}" = set; then :
12673 enableval
=$enable_rpath; :
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12686 $as_echo_n "checking for 64-bit host... " >&6; }
12687 if ${gl_cv_solaris_64bit+:} false
; then :
12688 $as_echo_n "(cached) " >&6
12690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12699 $EGREP "sixtyfour bits" >/dev
/null
2>&1; then :
12700 gl_cv_solaris_64bit
=yes
12702 gl_cv_solaris_64bit
=no
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12709 $as_echo "$gl_cv_solaris_64bit" >&6; }
12710 if test $gl_cv_solaris_64bit = yes; then
12711 acl_libdirstem
=lib
/64
12712 case "$host_cpu" in
12713 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
12714 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
12719 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12720 if test -n "$searchpath"; then
12721 acl_save_IFS
="${IFS= }"; IFS
=":"
12722 for searchdir
in $searchpath; do
12723 if test -d "$searchdir"; then
12724 case "$searchdir" in
12725 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
12727 # Better ignore directories of this form. They are misleading.
12729 *) searchdir
=`cd "$searchdir" && pwd`
12730 case "$searchdir" in
12731 */lib64
) acl_libdirstem
=lib64
;;
12736 IFS
="$acl_save_IFS"
12740 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
12744 gl_threads_api
=none
12749 if test "$gl_use_threads" != no
; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
12751 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12752 if ${gl_cv_have_weak+:} false
; then :
12753 $as_echo_n "(cached) " >&6
12756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758 extern void xyzzy ();
12768 if ac_fn_c_try_link
"$LINENO"; then :
12769 gl_cv_have_weak
=maybe
12771 rm -f core conftest.err conftest.
$ac_objext \
12772 conftest
$ac_exeext conftest.
$ac_ext
12773 if test $gl_cv_have_weak = maybe
; then
12774 if test "$cross_compiling" = yes; then :
12775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12778 Extensible Linking Format
12782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12783 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
12784 gl_cv_have_weak
="guessing yes"
12786 gl_cv_have_weak
="guessing no"
12792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12799 return (fputs == NULL);
12802 if ac_fn_c_try_run
"$LINENO"; then :
12803 gl_cv_have_weak
=yes
12807 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12808 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
12815 $as_echo "$gl_cv_have_weak" >&6; }
12816 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
12817 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
12818 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
12819 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12820 if test "x$ac_cv_header_pthread_h" = xyes
; then :
12821 gl_have_pthread_h
=yes
12823 gl_have_pthread_h
=no
12827 if test "$gl_have_pthread_h" = yes; then
12828 # Other possible tests:
12829 # -lpthreads (FSU threads, PCthreads)
12832 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
12833 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
12834 # the second one only in libpthread, and lock.c needs it.
12836 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
12837 # needs -pthread for some reason. See:
12838 # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
12840 for gl_pthread
in '' '-pthread'; do
12841 LIBS
="$LIBS $gl_pthread"
12842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h. */
12844 #include <pthread.h>
12846 pthread_mutexattr_t ma;
12851 pthread_mutex_lock (&m);
12852 pthread_mutexattr_init (&ma);
12857 if ac_fn_c_try_link
"$LINENO"; then :
12858 gl_have_pthread
=yes
12859 LIBTHREAD
=$gl_pthread LTLIBTHREAD
=$gl_pthread
12860 LIBMULTITHREAD
=$gl_pthread LTLIBMULTITHREAD
=$gl_pthread
12862 rm -f core conftest.err conftest.
$ac_objext \
12863 conftest
$ac_exeext conftest.
$ac_ext
12865 test -n "$gl_have_pthread" && break
12868 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
12869 # since it is defined as a macro on OSF/1.)
12870 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
12871 # The program links fine without libpthread. But it may actually
12872 # need to link with libpthread in order to create multiple threads.
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
12874 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
12875 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
12876 $as_echo_n "(cached) " >&6
12878 ac_check_lib_save_LIBS
=$LIBS
12879 LIBS
="-lpthread $LIBS"
12880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12889 char pthread_kill ();
12893 return pthread_kill ();
12898 if ac_fn_c_try_link
"$LINENO"; then :
12899 ac_cv_lib_pthread_pthread_kill
=yes
12901 ac_cv_lib_pthread_pthread_kill
=no
12903 rm -f core conftest.err conftest.
$ac_objext \
12904 conftest
$ac_exeext conftest.
$ac_ext
12905 LIBS
=$ac_check_lib_save_LIBS
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
12908 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
12909 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
12910 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
12911 # On Solaris and HP-UX, most pthread functions exist also in libc.
12912 # Therefore pthread_in_use() needs to actually try to create a
12913 # thread: pthread_create from libc will fail, whereas
12914 # pthread_create will actually create a thread.
12918 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
12924 elif test -z "$gl_have_pthread"; then
12925 # Some library is needed. Try libpthread and libc_r.
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
12927 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
12928 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
12929 $as_echo_n "(cached) " >&6
12931 ac_check_lib_save_LIBS
=$LIBS
12932 LIBS
="-lpthread $LIBS"
12933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12936 /* Override any GCC internal prototype to avoid an error.
12937 Use char because int might match the return type of a GCC
12938 builtin and then its argument prototype would still apply. */
12942 char pthread_kill ();
12946 return pthread_kill ();
12951 if ac_fn_c_try_link
"$LINENO"; then :
12952 ac_cv_lib_pthread_pthread_kill
=yes
12954 ac_cv_lib_pthread_pthread_kill
=no
12956 rm -f core conftest.err conftest.
$ac_objext \
12957 conftest
$ac_exeext conftest.
$ac_ext
12958 LIBS
=$ac_check_lib_save_LIBS
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
12961 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
12962 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
12963 gl_have_pthread
=yes
12964 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
12965 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
12968 if test -z "$gl_have_pthread"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
12971 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
12972 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
12973 $as_echo_n "(cached) " >&6
12975 ac_check_lib_save_LIBS
=$LIBS
12977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12980 /* Override any GCC internal prototype to avoid an error.
12981 Use char because int might match the return type of a GCC
12982 builtin and then its argument prototype would still apply. */
12986 char pthread_kill ();
12990 return pthread_kill ();
12995 if ac_fn_c_try_link
"$LINENO"; then :
12996 ac_cv_lib_c_r_pthread_kill
=yes
12998 ac_cv_lib_c_r_pthread_kill
=no
13000 rm -f core conftest.err conftest.
$ac_objext \
13001 conftest
$ac_exeext conftest.
$ac_ext
13002 LIBS
=$ac_check_lib_save_LIBS
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
13005 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
13006 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
13007 gl_have_pthread
=yes
13008 LIBTHREAD
=-lc_r LTLIBTHREAD
=-lc_r
13009 LIBMULTITHREAD
=-lc_r LTLIBMULTITHREAD
=-lc_r
13014 if test -n "$gl_have_pthread"; then
13015 gl_threads_api
=posix
13017 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
13019 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
13020 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13022 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
13031 if test -z "$gl_have_pthread"; then
13032 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = solaris
; then
13033 gl_have_solaristhread
=
13034 gl_save_LIBS
="$LIBS"
13035 LIBS
="$LIBS -lthread"
13036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13039 #include <thread.h>
13050 if ac_fn_c_try_link
"$LINENO"; then :
13051 gl_have_solaristhread
=yes
13053 rm -f core conftest.err conftest.
$ac_objext \
13054 conftest
$ac_exeext conftest.
$ac_ext
13055 LIBS
="$gl_save_LIBS"
13056 if test -n "$gl_have_solaristhread"; then
13057 gl_threads_api
=solaris
13059 LTLIBTHREAD
=-lthread
13060 LIBMULTITHREAD
="$LIBTHREAD"
13061 LTLIBMULTITHREAD
="$LTLIBTHREAD"
13063 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
13065 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13067 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
13075 if test "$gl_use_threads" = pth
; then
13076 gl_save_CPPFLAGS
="$CPPFLAGS"
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
13083 $as_echo_n "checking how to link with libpth... " >&6; }
13084 if ${ac_cv_libpth_libs+:} false
; then :
13085 $as_echo_n "(cached) " >&6
13097 acl_save_prefix
="$prefix"
13098 prefix
="$acl_final_prefix"
13099 acl_save_exec_prefix
="$exec_prefix"
13100 exec_prefix
="$acl_final_exec_prefix"
13102 eval additional_includedir
=\"$includedir\"
13103 eval additional_libdir
=\"$libdir\"
13105 exec_prefix
="$acl_save_exec_prefix"
13106 prefix
="$acl_save_prefix"
13109 # Check whether --with-libpth-prefix was given.
13110 if test "${with_libpth_prefix+set}" = set; then :
13111 withval
=$with_libpth_prefix;
13112 if test "X$withval" = "Xno"; then
13115 if test "X$withval" = "X"; then
13117 acl_save_prefix
="$prefix"
13118 prefix
="$acl_final_prefix"
13119 acl_save_exec_prefix
="$exec_prefix"
13120 exec_prefix
="$acl_final_exec_prefix"
13122 eval additional_includedir
=\"$includedir\"
13123 eval additional_libdir
=\"$libdir\"
13125 exec_prefix
="$acl_save_exec_prefix"
13126 prefix
="$acl_save_prefix"
13129 additional_includedir
="$withval/include"
13130 additional_libdir
="$withval/$acl_libdirstem"
13131 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13132 && ! test -d "$withval/$acl_libdirstem"; then
13133 additional_libdir
="$withval/$acl_libdirstem2"
13147 names_already_handled
=
13148 names_next_round
='pth '
13149 while test -n "$names_next_round"; do
13150 names_this_round
="$names_next_round"
13152 for name
in $names_this_round; do
13154 for n
in $names_already_handled; do
13155 if test "$n" = "$name"; then
13156 already_handled
=yes
13160 if test -z "$already_handled"; then
13161 names_already_handled
="$names_already_handled $name"
13162 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13163 eval value
=\"\
$HAVE_LIB$uppername\"
13164 if test -n "$value"; then
13165 if test "$value" = yes; then
13166 eval value
=\"\
$LIB$uppername\"
13167 test -z "$value" || LIBPTH
="${LIBPTH}${LIBPTH:+ }$value"
13168 eval value
=\"\
$LTLIB$uppername\"
13169 test -z "$value" || LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$value"
13178 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
13179 if test -n "$acl_shlibext"; then
13180 shrext
=".$acl_shlibext" # typically: shrext=.so
13184 if test $use_additional = yes; then
13185 dir
="$additional_libdir"
13186 if test -n "$acl_shlibext"; then
13187 if test -f "$dir/$libname$shrext"; then
13189 found_so
="$dir/$libname$shrext"
13191 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13192 ver
=`(cd "$dir" && \
13193 for f in "$libname$shrext".*; do echo "$f"; done \
13194 | sed -e "s,^$libname$shrext\\\\.,," \
13195 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13196 | sed 1q ) 2>/dev/null`
13197 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13199 found_so
="$dir/$libname$shrext.$ver"
13202 eval library_names
=\"$acl_library_names_spec\"
13203 for f
in $library_names; do
13204 if test -f "$dir/$f"; then
13213 if test "X$found_dir" = "X"; then
13214 if test -f "$dir/$libname.$acl_libext"; then
13216 found_a
="$dir/$libname.$acl_libext"
13219 if test "X$found_dir" != "X"; then
13220 if test -f "$dir/$libname.la"; then
13221 found_la
="$dir/$libname.la"
13225 if test "X$found_dir" = "X"; then
13226 for x
in $LDFLAGS $LTLIBPTH; do
13228 acl_save_prefix
="$prefix"
13229 prefix
="$acl_final_prefix"
13230 acl_save_exec_prefix
="$exec_prefix"
13231 exec_prefix
="$acl_final_exec_prefix"
13233 exec_prefix
="$acl_save_exec_prefix"
13234 prefix
="$acl_save_prefix"
13238 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13239 if test -n "$acl_shlibext"; then
13240 if test -f "$dir/$libname$shrext"; then
13242 found_so
="$dir/$libname$shrext"
13244 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13245 ver
=`(cd "$dir" && \
13246 for f in "$libname$shrext".*; do echo "$f"; done \
13247 | sed -e "s,^$libname$shrext\\\\.,," \
13248 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13249 | sed 1q ) 2>/dev/null`
13250 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13252 found_so
="$dir/$libname$shrext.$ver"
13255 eval library_names
=\"$acl_library_names_spec\"
13256 for f
in $library_names; do
13257 if test -f "$dir/$f"; then
13266 if test "X$found_dir" = "X"; then
13267 if test -f "$dir/$libname.$acl_libext"; then
13269 found_a
="$dir/$libname.$acl_libext"
13272 if test "X$found_dir" != "X"; then
13273 if test -f "$dir/$libname.la"; then
13274 found_la
="$dir/$libname.la"
13279 if test "X$found_dir" != "X"; then
13284 if test "X$found_dir" != "X"; then
13285 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
13286 if test "X$found_so" != "X"; then
13287 if test "$enable_rpath" = no \
13288 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
13289 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13290 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13293 for x
in $ltrpathdirs; do
13294 if test "X$x" = "X$found_dir"; then
13299 if test -z "$haveit"; then
13300 ltrpathdirs
="$ltrpathdirs $found_dir"
13302 if test "$acl_hardcode_direct" = yes; then
13303 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13305 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
13306 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13308 for x
in $rpathdirs; do
13309 if test "X$x" = "X$found_dir"; then
13314 if test -z "$haveit"; then
13315 rpathdirs
="$rpathdirs $found_dir"
13319 for x
in $LDFLAGS $LIBPTH; do
13321 acl_save_prefix
="$prefix"
13322 prefix
="$acl_final_prefix"
13323 acl_save_exec_prefix
="$exec_prefix"
13324 exec_prefix
="$acl_final_exec_prefix"
13326 exec_prefix
="$acl_save_exec_prefix"
13327 prefix
="$acl_save_prefix"
13329 if test "X$x" = "X-L$found_dir"; then
13334 if test -z "$haveit"; then
13335 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir"
13337 if test "$acl_hardcode_minus_L" != no
; then
13338 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13340 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
13346 if test "X$found_a" != "X"; then
13347 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
13349 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
13352 additional_includedir
=
13353 case "$found_dir" in
13354 */$acl_libdirstem |
*/$acl_libdirstem/)
13355 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13356 if test "$name" = 'pth'; then
13357 LIBPTH_PREFIX
="$basedir"
13359 additional_includedir
="$basedir/include"
13361 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
13362 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13363 if test "$name" = 'pth'; then
13364 LIBPTH_PREFIX
="$basedir"
13366 additional_includedir
="$basedir/include"
13369 if test "X$additional_includedir" != "X"; then
13370 if test "X$additional_includedir" != "X/usr/include"; then
13372 if test "X$additional_includedir" = "X/usr/local/include"; then
13373 if test -n "$GCC"; then
13375 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
13379 if test -z "$haveit"; then
13380 for x
in $CPPFLAGS $INCPTH; do
13382 acl_save_prefix
="$prefix"
13383 prefix
="$acl_final_prefix"
13384 acl_save_exec_prefix
="$exec_prefix"
13385 exec_prefix
="$acl_final_exec_prefix"
13387 exec_prefix
="$acl_save_exec_prefix"
13388 prefix
="$acl_save_prefix"
13390 if test "X$x" = "X-I$additional_includedir"; then
13395 if test -z "$haveit"; then
13396 if test -d "$additional_includedir"; then
13397 INCPTH
="${INCPTH}${INCPTH:+ }-I$additional_includedir"
13403 if test -n "$found_la"; then
13404 save_libdir
="$libdir"
13405 case "$found_la" in
13406 */* |
*\\*) .
"$found_la" ;;
13407 *) .
"./$found_la" ;;
13409 libdir
="$save_libdir"
13410 for dep
in $dependency_libs; do
13413 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13414 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13415 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13417 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13418 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13419 if test -n "$GCC"; then
13421 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
13425 if test -z "$haveit"; then
13427 for x
in $LDFLAGS $LIBPTH; do
13429 acl_save_prefix
="$prefix"
13430 prefix
="$acl_final_prefix"
13431 acl_save_exec_prefix
="$exec_prefix"
13432 exec_prefix
="$acl_final_exec_prefix"
13434 exec_prefix
="$acl_save_exec_prefix"
13435 prefix
="$acl_save_prefix"
13437 if test "X$x" = "X-L$additional_libdir"; then
13442 if test -z "$haveit"; then
13443 if test -d "$additional_libdir"; then
13444 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
13448 for x
in $LDFLAGS $LTLIBPTH; do
13450 acl_save_prefix
="$prefix"
13451 prefix
="$acl_final_prefix"
13452 acl_save_exec_prefix
="$exec_prefix"
13453 exec_prefix
="$acl_final_exec_prefix"
13455 exec_prefix
="$acl_save_exec_prefix"
13456 prefix
="$acl_save_prefix"
13458 if test "X$x" = "X-L$additional_libdir"; then
13463 if test -z "$haveit"; then
13464 if test -d "$additional_libdir"; then
13465 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
13472 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13473 if test "$enable_rpath" != no
; then
13475 for x
in $rpathdirs; do
13476 if test "X$x" = "X$dir"; then
13481 if test -z "$haveit"; then
13482 rpathdirs
="$rpathdirs $dir"
13485 for x
in $ltrpathdirs; do
13486 if test "X$x" = "X$dir"; then
13491 if test -z "$haveit"; then
13492 ltrpathdirs
="$ltrpathdirs $dir"
13497 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13500 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13503 LIBPTH
="${LIBPTH}${LIBPTH:+ }$dep"
13504 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$dep"
13510 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
13511 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
13517 if test "X$rpathdirs" != "X"; then
13518 if test -n "$acl_hardcode_libdir_separator"; then
13520 for found_dir
in $rpathdirs; do
13521 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13523 acl_save_libdir
="$libdir"
13525 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
13526 libdir
="$acl_save_libdir"
13527 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
13529 for found_dir
in $rpathdirs; do
13530 acl_save_libdir
="$libdir"
13531 libdir
="$found_dir"
13532 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
13533 libdir
="$acl_save_libdir"
13534 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
13538 if test "X$ltrpathdirs" != "X"; then
13539 for found_dir
in $ltrpathdirs; do
13540 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
13549 ac_cv_libpth_libs
="$LIBPTH"
13550 ac_cv_libpth_ltlibs
="$LTLIBPTH"
13551 ac_cv_libpth_cppflags
="$INCPTH"
13552 ac_cv_libpth_prefix
="$LIBPTH_PREFIX"
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
13556 $as_echo "$ac_cv_libpth_libs" >&6; }
13557 LIBPTH
="$ac_cv_libpth_libs"
13558 LTLIBPTH
="$ac_cv_libpth_ltlibs"
13559 INCPTH
="$ac_cv_libpth_cppflags"
13560 LIBPTH_PREFIX
="$ac_cv_libpth_prefix"
13562 for element
in $INCPTH; do
13564 for x
in $CPPFLAGS; do
13566 acl_save_prefix
="$prefix"
13567 prefix
="$acl_final_prefix"
13568 acl_save_exec_prefix
="$exec_prefix"
13569 exec_prefix
="$acl_final_exec_prefix"
13571 exec_prefix
="$acl_save_exec_prefix"
13572 prefix
="$acl_save_prefix"
13574 if test "X$x" = "X$element"; then
13579 if test -z "$haveit"; then
13580 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13592 gl_save_LIBS
="$LIBS"
13593 LIBS
="$LIBS $LIBPTH"
13594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13605 if ac_fn_c_try_link
"$LINENO"; then :
13608 rm -f core conftest.err conftest.
$ac_objext \
13609 conftest
$ac_exeext conftest.
$ac_ext
13610 LIBS
="$gl_save_LIBS"
13611 if test -n "$gl_have_pth"; then
13613 LIBTHREAD
="$LIBPTH"
13614 LTLIBTHREAD
="$LTLIBPTH"
13615 LIBMULTITHREAD
="$LIBTHREAD"
13616 LTLIBMULTITHREAD
="$LTLIBTHREAD"
13618 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
13620 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
13621 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13623 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
13630 CPPFLAGS
="$gl_save_CPPFLAGS"
13633 if test -z "$gl_have_pthread"; then
13634 case "$gl_use_threads" in
13635 yes | windows | win32
) # The 'win32' is for backward compatibility.
13636 if { case "$host_os" in
13641 gl_threads_api
=windows
13643 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
13651 $as_echo_n "checking for multithread API to use... " >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
13653 $as_echo "$gl_threads_api" >&6; }
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13670 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
13671 if ${gl_cv_func_malloc_posix+:} false
; then :
13672 $as_echo_n "(cached) " >&6
13675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13681 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13689 if ac_fn_c_try_compile
"$LINENO"; then :
13690 gl_cv_func_malloc_posix
=yes
13692 gl_cv_func_malloc_posix
=no
13694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
13698 $as_echo "$gl_cv_func_malloc_posix" >&6; }
13702 for ac_header
in stdlib.h
13704 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13705 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
13706 cat >>confdefs.h
<<_ACEOF
13707 #define HAVE_STDLIB_H 1
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13715 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13716 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
13717 $as_echo_n "(cached) " >&6
13719 if test "$cross_compiling" = yes; then :
13721 # Guess yes on platforms where we know the result.
13722 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
13723 | hpux
* | solaris
* | cygwin
* | mingw
*)
13724 ac_cv_func_malloc_0_nonnull
=yes ;;
13725 # If we don't know, assume the worst.
13726 *) ac_cv_func_malloc_0_nonnull
=no
;;
13730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13732 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13733 # include <stdlib.h>
13741 char *p = malloc (0);
13750 if ac_fn_c_try_run
"$LINENO"; then :
13751 ac_cv_func_malloc_0_nonnull
=yes
13753 ac_cv_func_malloc_0_nonnull
=no
13755 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13756 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13762 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13763 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13764 gl_cv_func_malloc_0_nonnull
=1
13766 gl_cv_func_malloc_0_nonnull
=0
13770 cat >>confdefs.h
<<_ACEOF
13771 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
13786 GNULIB_MBSRTOWCS
=0;
13787 GNULIB_MBSNRTOWCS
=0;
13789 GNULIB_WCSRTOMBS
=0;
13790 GNULIB_WCSNRTOMBS
=0;
13807 GNULIB_WCSCASECMP
=0;
13808 GNULIB_WCSNCASECMP
=0;
13845 HAVE_WCSNCASECMP
=1;
13858 HAVE_DECL_WCWIDTH
=1;
13859 REPLACE_MBSTATE_T
=0;
13865 REPLACE_MBSRTOWCS
=0;
13866 REPLACE_MBSNRTOWCS
=0;
13868 REPLACE_WCSRTOMBS
=0;
13869 REPLACE_WCSNRTOMBS
=0;
13871 REPLACE_WCSWIDTH
=0;
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
13887 $as_echo_n "checking for a traditional japanese locale... " >&6; }
13888 if ${gt_cv_locale_ja+:} false
; then :
13889 $as_echo_n "(cached) " >&6
13892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13895 #include <locale.h>
13897 #if HAVE_LANGINFO_CODESET
13898 # include <langinfo.h>
13900 #include <stdlib.h>
13901 #include <string.h>
13907 /* Check whether the given locale name is recognized by the system. */
13908 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
13909 /* On native Windows, setlocale(category, "") looks at the system settings,
13910 not at the environment variables. Also, when an encoding suffix such
13911 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13912 category of the locale to "C". */
13913 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13914 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13917 if (setlocale (LC_ALL, "") == NULL) return 1;
13919 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13920 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13921 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13922 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13923 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13924 some unit tests fail.
13925 On MirBSD 10, when an unsupported locale is specified, setlocale()
13926 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
13927 #if HAVE_LANGINFO_CODESET
13929 const char *cs = nl_langinfo (CODESET);
13930 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13931 || strcmp (cs, "UTF-8") == 0)
13936 /* On Cygwin, avoid locale names without encoding suffix, because the
13937 locale_charset() function relies on the encoding suffix. Note that
13938 LC_ALL is set on the command line. */
13939 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13941 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
13942 on Cygwin 1.5.x. */
13943 if (MB_CUR_MAX == 1)
13945 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
13946 This excludes the UTF-8 encoding (except on MirBSD). */
13947 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13948 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
13949 for (p = buf; *p != '\0'; p++)
13950 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
13956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13957 (eval $ac_link) 2>&5
13959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13960 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
13962 # Handle native Windows specially, because there setlocale() interprets
13963 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13964 # "fr" or "fra" as "French" or "French_France.1252",
13965 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13966 # "ja" as "Japanese" or "Japanese_Japan.932",
13969 # Note that on native Windows, the Japanese locale is
13970 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
13971 # cannot use it here.
13972 gt_cv_locale_ja
=none
13975 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13976 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13977 # configure script would override the LC_ALL setting. Likewise for
13978 # LC_CTYPE, which is also set at the beginning of the configure script.
13979 # Test for the AIX locale name.
13980 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13981 gt_cv_locale_ja
=ja_JP
13983 # Test for the locale name with explicit encoding suffix.
13984 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13985 gt_cv_locale_ja
=ja_JP.EUC-JP
13987 # Test for the HP-UX, OSF/1, NetBSD locale name.
13988 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13989 gt_cv_locale_ja
=ja_JP.eucJP
13991 # Test for the IRIX, FreeBSD locale name.
13992 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13993 gt_cv_locale_ja
=ja_JP.EUC
13995 # Test for the Solaris 7 locale name.
13996 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13999 # Special test for NetBSD 1.6.
14000 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
14001 gt_cv_locale_ja
=ja_JP.eucJP
14004 gt_cv_locale_ja
=none
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14018 $as_echo "$gt_cv_locale_ja" >&6; }
14019 LOCALE_JA
=$gt_cv_locale_ja
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
14026 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14027 if ${gt_cv_locale_zh_CN+:} false
; then :
14028 $as_echo_n "(cached) " >&6
14031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14034 #include <locale.h>
14035 #include <stdlib.h>
14037 #if HAVE_LANGINFO_CODESET
14038 # include <langinfo.h>
14040 #include <stdlib.h>
14041 #include <string.h>
14047 /* Check whether the given locale name is recognized by the system. */
14048 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14049 /* On native Windows, setlocale(category, "") looks at the system settings,
14050 not at the environment variables. Also, when an encoding suffix such
14051 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14052 category of the locale to "C". */
14053 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14054 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14057 if (setlocale (LC_ALL, "") == NULL) return 1;
14059 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14060 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14061 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14062 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14063 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14064 some unit tests fail.
14065 On MirBSD 10, when an unsupported locale is specified, setlocale()
14066 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14067 #if HAVE_LANGINFO_CODESET
14069 const char *cs = nl_langinfo (CODESET);
14070 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14071 || strcmp (cs, "UTF-8") == 0)
14076 /* On Cygwin, avoid locale names without encoding suffix, because the
14077 locale_charset() function relies on the encoding suffix. Note that
14078 LC_ALL is set on the command line. */
14079 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14081 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14082 This excludes the UTF-8 encoding (except on MirBSD). */
14083 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14084 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14085 for (p = buf; *p != '\0'; p++)
14086 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14088 /* Check whether a typical GB18030 multibyte sequence is recognized as a
14089 single wide character. This excludes the GB2312 and GBK encodings. */
14090 if (mblen ("\203\062\332\066", 5) != 4)
14096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14097 (eval $ac_link) 2>&5
14099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14100 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14102 # Handle native Windows specially, because there setlocale() interprets
14103 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14104 # "fr" or "fra" as "French" or "French_France.1252",
14105 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14106 # "ja" as "Japanese" or "Japanese_Japan.932",
14109 # Test for the hypothetical native Windows locale name.
14110 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14111 gt_cv_locale_zh_CN
=Chinese_China
.54936
14114 gt_cv_locale_zh_CN
=none
14118 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
14119 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
14120 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
14121 gt_cv_locale_zh_CN
=none
14124 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14125 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14126 # configure script would override the LC_ALL setting. Likewise for
14127 # LC_CTYPE, which is also set at the beginning of the configure script.
14128 # Test for the locale name without encoding suffix.
14129 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14130 gt_cv_locale_zh_CN
=zh_CN
14132 # Test for the locale name with explicit encoding suffix.
14133 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14134 gt_cv_locale_zh_CN
=zh_CN.GB18030
14137 gt_cv_locale_zh_CN
=none
14143 # If there was a link error, due to mblen(), the system is so old that
14144 # it certainly doesn't have a chinese locale.
14145 gt_cv_locale_zh_CN
=none
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
14151 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14152 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14158 $as_echo_n "checking for a french Unicode locale... " >&6; }
14159 if ${gt_cv_locale_fr_utf8+:} false
; then :
14160 $as_echo_n "(cached) " >&6
14163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14166 #include <locale.h>
14168 #if HAVE_LANGINFO_CODESET
14169 # include <langinfo.h>
14171 #include <stdlib.h>
14172 #include <string.h>
14176 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14177 imitates locale dependent behaviour by looking at the environment
14178 variables, and all locales use the UTF-8 encoding. */
14179 #if !(defined __BEOS__ || defined __HAIKU__)
14180 /* Check whether the given locale name is recognized by the system. */
14181 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14182 /* On native Windows, setlocale(category, "") looks at the system settings,
14183 not at the environment variables. Also, when an encoding suffix such
14184 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14185 category of the locale to "C". */
14186 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14187 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14190 if (setlocale (LC_ALL, "") == NULL) return 1;
14192 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14193 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14194 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14195 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14196 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14197 some unit tests fail. */
14198 # if HAVE_LANGINFO_CODESET
14200 const char *cs = nl_langinfo (CODESET);
14201 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14206 /* On Cygwin, avoid locale names without encoding suffix, because the
14207 locale_charset() function relies on the encoding suffix. Note that
14208 LC_ALL is set on the command line. */
14209 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14211 /* Check whether in the abbreviation of the second month, the second
14212 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14213 two bytes long, with UTF-8 encoding. */
14214 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14215 if (strftime (buf, sizeof (buf), "%b", &t) < 4
14216 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14219 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14220 /* Check whether the decimal separator is a comma.
14221 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14222 are nl_langinfo(RADIXCHAR) are both ".". */
14223 if (localeconv () ->decimal_point[0] != ',') return 1;
14229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14230 (eval $ac_link) 2>&5
14232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14233 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14235 # Handle native Windows specially, because there setlocale() interprets
14236 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14237 # "fr" or "fra" as "French" or "French_France.1252",
14238 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14239 # "ja" as "Japanese" or "Japanese_Japan.932",
14242 # Test for the hypothetical native Windows locale name.
14243 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14244 gt_cv_locale_fr_utf8
=French_France
.65001
14247 gt_cv_locale_fr_utf8
=none
14251 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14252 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14253 # configure script would override the LC_ALL setting. Likewise for
14254 # LC_CTYPE, which is also set at the beginning of the configure script.
14255 # Test for the usual locale name.
14256 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14257 gt_cv_locale_fr_utf8
=fr_FR
14259 # Test for the locale name with explicit encoding suffix.
14260 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14261 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
14263 # Test for the Solaris 7 locale name.
14264 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14265 gt_cv_locale_fr_utf8
=fr.UTF-8
14268 gt_cv_locale_fr_utf8
=none
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
14279 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
14280 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
14287 $as_echo_n "checking for a traditional french locale... " >&6; }
14288 if ${gt_cv_locale_fr+:} false
; then :
14289 $as_echo_n "(cached) " >&6
14292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14295 #include <locale.h>
14297 #if HAVE_LANGINFO_CODESET
14298 # include <langinfo.h>
14300 #include <stdlib.h>
14301 #include <string.h>
14305 /* Check whether the given locale name is recognized by the system. */
14306 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14307 /* On native Windows, setlocale(category, "") looks at the system settings,
14308 not at the environment variables. Also, when an encoding suffix such
14309 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14310 category of the locale to "C". */
14311 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14312 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14315 if (setlocale (LC_ALL, "") == NULL) return 1;
14317 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14318 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14319 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14320 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14321 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14322 some unit tests fail.
14323 On MirBSD 10, when an unsupported locale is specified, setlocale()
14324 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14325 #if HAVE_LANGINFO_CODESET
14327 const char *cs = nl_langinfo (CODESET);
14328 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14329 || strcmp (cs, "UTF-8") == 0)
14334 /* On Cygwin, avoid locale names without encoding suffix, because the
14335 locale_charset() function relies on the encoding suffix. Note that
14336 LC_ALL is set on the command line. */
14337 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14339 /* Check whether in the abbreviation of the second month, the second
14340 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
14341 one byte long. This excludes the UTF-8 encoding. */
14342 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14343 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
14344 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14345 /* Check whether the decimal separator is a comma.
14346 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14347 are nl_langinfo(RADIXCHAR) are both ".". */
14348 if (localeconv () ->decimal_point[0] != ',') return 1;
14354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14355 (eval $ac_link) 2>&5
14357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14358 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14360 # Handle native Windows specially, because there setlocale() interprets
14361 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14362 # "fr" or "fra" as "French" or "French_France.1252",
14363 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14364 # "ja" as "Japanese" or "Japanese_Japan.932",
14367 # Test for the native Windows locale name.
14368 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14369 gt_cv_locale_fr
=French_France
.1252
14372 gt_cv_locale_fr
=none
14376 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14377 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14378 # configure script would override the LC_ALL setting. Likewise for
14379 # LC_CTYPE, which is also set at the beginning of the configure script.
14380 # Test for the usual locale name.
14381 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14382 gt_cv_locale_fr
=fr_FR
14384 # Test for the locale name with explicit encoding suffix.
14385 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14386 gt_cv_locale_fr
=fr_FR.ISO-8859-1
14388 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
14389 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14390 gt_cv_locale_fr
=fr_FR.ISO8859-1
14392 # Test for the HP-UX locale name.
14393 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14394 gt_cv_locale_fr
=fr_FR.iso88591
14396 # Test for the Solaris 7 locale name.
14397 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14401 gt_cv_locale_fr
=none
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
14414 $as_echo "$gt_cv_locale_fr" >&6; }
14415 LOCALE_FR
=$gt_cv_locale_fr
14435 GNULIB_RAWMEMCHR
=0;
14438 GNULIB_STRCHRNUL
=0;
14446 GNULIB_STRCASESTR
=0;
14453 GNULIB_MBSCASECMP
=0;
14454 GNULIB_MBSNCASECMP
=0;
14455 GNULIB_MBSPCASECMP
=0;
14456 GNULIB_MBSCASESTR
=0;
14463 GNULIB_STRERROR_R
=0;
14464 GNULIB_STRSIGNAL
=0;
14465 GNULIB_STRVERSCMP
=0;
14470 HAVE_DECL_MEMMEM
=1;
14472 HAVE_DECL_MEMRCHR
=1;
14477 HAVE_DECL_STRDUP
=1;
14478 HAVE_DECL_STRNDUP
=1;
14479 HAVE_DECL_STRNLEN
=1;
14483 HAVE_DECL_STRTOK_R
=1;
14484 HAVE_DECL_STRERROR_R
=1;
14485 HAVE_DECL_STRSIGNAL
=1;
14492 REPLACE_STRCASESTR
=0;
14493 REPLACE_STRCHRNUL
=0;
14494 REPLACE_STRERROR
=0;
14495 REPLACE_STRERROR_R
=0;
14499 REPLACE_STRSIGNAL
=0;
14500 REPLACE_STRTOK_R
=0;
14501 UNDEFINE_STRTOK_R
=0;
14507 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14508 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14509 # irrelevant for anonymous mappings.
14510 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
14511 if test "x$ac_cv_func_mmap" = xyes
; then :
14518 # Try to allow MAP_ANONYMOUS.
14519 gl_have_mmap_anonymous
=no
14520 if test $gl_have_mmap = yes; then
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14522 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14526 #include <sys/mman.h>
14527 #ifdef MAP_ANONYMOUS
14528 I cannot identify this map
14532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14533 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14534 gl_have_mmap_anonymous
=yes
14538 if test $gl_have_mmap_anonymous != yes; then
14539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h. */
14542 #include <sys/mman.h>
14544 I cannot identify this map
14548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14549 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14551 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14553 gl_have_mmap_anonymous
=yes
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14559 $as_echo "$gl_have_mmap_anonymous" >&6; }
14560 if test $gl_have_mmap_anonymous = yes; then
14562 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14584 if test $HAVE_MEMCHR = 1; then
14585 # Detect platform-specific bugs in some versions of glibc:
14586 # memchr should not dereference anything with length 0
14587 # http://bugzilla.redhat.com/499689
14588 # memchr should not dereference overestimated length after a match
14589 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14590 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
14591 # Assume that memchr works on platforms that lack mprotect.
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14593 $as_echo_n "checking whether memchr works... " >&6; }
14594 if ${gl_cv_func_memchr_works+:} false
; then :
14595 $as_echo_n "(cached) " >&6
14597 if test "$cross_compiling" = yes; then :
14598 gl_cv_func_memchr_works
="guessing no"
14600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14603 #include <string.h>
14604 #if HAVE_SYS_MMAN_H
14605 # include <fcntl.h>
14606 # include <unistd.h>
14607 # include <sys/types.h>
14608 # include <sys/mman.h>
14610 # define MAP_FILE 0
14619 char *fence = NULL;
14620 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14621 # if HAVE_MAP_ANONYMOUS
14622 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14624 # else /* !HAVE_MAP_ANONYMOUS */
14625 const int flags = MAP_FILE | MAP_PRIVATE;
14626 int fd = open ("/dev/zero", O_RDONLY, 0666);
14630 int pagesize = getpagesize ();
14632 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14634 if (two_pages != (char *)(-1)
14635 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14636 fence = two_pages + pagesize;
14641 if (memchr (fence, 0, 0))
14643 strcpy (fence - 9, "12345678");
14644 if (memchr (fence - 9, 0, 79) != fence - 1)
14646 if (memchr (fence - 1, 0, 3) != fence - 1)
14655 if ac_fn_c_try_run
"$LINENO"; then :
14656 gl_cv_func_memchr_works
=yes
14658 gl_cv_func_memchr_works
=no
14660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14666 $as_echo "$gl_cv_func_memchr_works" >&6; }
14667 if test "$gl_cv_func_memchr_works" != yes; then
14673 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
14674 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
14680 cat >>confdefs.h
<<_ACEOF
14681 #define HAVE_DECL_MEMMEM $ac_have_decl
14689 for ac_func
in memmem
14691 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
14692 if test "x$ac_cv_func_memmem" = xyes
; then :
14693 cat >>confdefs.h
<<_ACEOF
14694 #define HAVE_MEMMEM 1
14700 if test $ac_cv_func_memmem = yes; then
14712 if test $ac_cv_have_decl_memmem = no
; then
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
14716 $as_echo_n "checking whether memmem works... " >&6; }
14717 if ${gl_cv_func_memmem_works_always+:} false
; then :
14718 $as_echo_n "(cached) " >&6
14720 if test "$cross_compiling" = yes; then :
14721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14724 #ifdef __GNU_LIBRARY__
14725 #include <features.h>
14726 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
14727 || __GLIBC_MINOR__ > 12)) \
14728 || (__GLIBC__ > 2)) \
14729 || defined __UCLIBC__
14732 #elif defined __CYGWIN__
14733 #include <cygwin/version.h>
14734 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14743 $EGREP "Lucky user" >/dev
/null
2>&1; then :
14744 gl_cv_func_memmem_works_always
="guessing yes"
14746 gl_cv_func_memmem_works_always
="guessing no"
14752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14755 #include <string.h> /* for memmem */
14756 #define P "_EF_BF_BD"
14757 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14758 #define NEEDLE P P P P P
14765 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
14767 /* Check for empty needle behavior. */
14769 const char *haystack = "AAA";
14770 if (memmem (haystack, 3, NULL, 0) != haystack)
14779 if ac_fn_c_try_run
"$LINENO"; then :
14780 gl_cv_func_memmem_works_always
=yes
14782 gl_cv_func_memmem_works_always
=no
14784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14785 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
14791 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
14792 case "$gl_cv_func_memmem_works_always" in
14802 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
14803 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
14809 cat >>confdefs.h
<<_ACEOF
14810 #define HAVE_DECL_MEMRCHR $ac_have_decl
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
14825 $as_echo_n "checking for promoted mode_t type... " >&6; }
14826 if ${gl_cv_promoted_mode_t+:} false
; then :
14827 $as_echo_n "(cached) " >&6
14830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832 #include <sys/types.h>
14836 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
14841 if ac_fn_c_try_compile
"$LINENO"; then :
14842 gl_cv_promoted_mode_t
='int'
14844 gl_cv_promoted_mode_t
='mode_t'
14846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
14850 $as_echo "$gl_cv_promoted_mode_t" >&6; }
14852 cat >>confdefs.h
<<_ACEOF
14853 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
14871 GNULIB_FPRINTF_POSIX
=0;
14887 GNULIB_OBSTACK_PRINTF
=0;
14888 GNULIB_OBSTACK_PRINTF_POSIX
=0;
14893 GNULIB_PRINTF_POSIX
=0;
14902 GNULIB_SPRINTF_POSIX
=0;
14903 GNULIB_STDIO_H_NONBLOCKING
=0;
14904 GNULIB_STDIO_H_SIGPIPE
=0;
14906 GNULIB_VASPRINTF
=0;
14911 GNULIB_VFPRINTF_POSIX
=0;
14913 GNULIB_VPRINTF_POSIX
=0;
14914 GNULIB_VSNPRINTF
=0;
14915 GNULIB_VSPRINTF_POSIX
=0;
14916 HAVE_DECL_FPURGE
=1;
14917 HAVE_DECL_FSEEKO
=1;
14918 HAVE_DECL_FTELLO
=1;
14919 HAVE_DECL_GETDELIM
=1;
14920 HAVE_DECL_GETLINE
=1;
14921 HAVE_DECL_OBSTACK_PRINTF
=1;
14922 HAVE_DECL_SNPRINTF
=1;
14923 HAVE_DECL_VSNPRINTF
=1;
14944 REPLACE_GETDELIM
=0;
14946 REPLACE_OBSTACK_PRINTF
=0;
14952 REPLACE_RENAMEAT
=0;
14953 REPLACE_SNPRINTF
=0;
14955 REPLACE_STDIO_READ_FUNCS
=0;
14956 REPLACE_STDIO_WRITE_FUNCS
=0;
14958 REPLACE_VASPRINTF
=0;
14959 REPLACE_VDPRINTF
=0;
14960 REPLACE_VFPRINTF
=0;
14962 REPLACE_VSNPRINTF
=0;
14963 REPLACE_VSPRINTF
=0;
14996 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
14997 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
15003 cat >>confdefs.h
<<_ACEOF
15004 #define HAVE_DECL_SETENV $ac_have_decl
15022 if test $ac_cv_have_decl_setenv = no
; then
15042 for ac_header
in search.h
15044 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
15045 if test "x$ac_cv_header_search_h" = xyes
; then :
15046 cat >>confdefs.h
<<_ACEOF
15047 #define HAVE_SEARCH_H 1
15054 for ac_func
in tsearch
15056 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
15057 if test "x$ac_cv_func_tsearch" = xyes
; then :
15058 cat >>confdefs.h
<<_ACEOF
15059 #define HAVE_TSEARCH 1
15068 GNULIB_PTHREAD_SIGMASK
=0;
15070 GNULIB_SIGNAL_H_SIGPIPE
=0;
15071 GNULIB_SIGPROCMASK
=0;
15072 GNULIB_SIGACTION
=0;
15073 HAVE_POSIX_SIGNALBLOCKING
=1;
15074 HAVE_PTHREAD_SIGMASK
=1;
15079 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
15081 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
15083 HAVE_SIGHANDLER_T
=1;
15084 REPLACE_PTHREAD_SIGMASK
=0;
15088 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
15089 #include <signal.h>
15090 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
15091 #include <sys/types.h>
15094 if test "x$ac_cv_type_sigset_t" = xyes
; then :
15096 cat >>confdefs.h
<<_ACEOF
15097 #define HAVE_SIGSET_T 1
15100 gl_cv_type_sigset_t
=yes
15102 gl_cv_type_sigset_t
=no
15105 if test $gl_cv_type_sigset_t != yes; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15110 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15111 if ${ac_cv_type_uid_t+:} false
; then :
15112 $as_echo_n "(cached) " >&6
15114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116 #include <sys/types.h>
15119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15120 $EGREP "uid_t" >/dev
/null
2>&1; then :
15121 ac_cv_type_uid_t
=yes
15123 ac_cv_type_uid_t
=no
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15129 $as_echo "$ac_cv_type_uid_t" >&6; }
15130 if test $ac_cv_type_uid_t = no
; then
15132 $as_echo "#define uid_t int" >>confdefs.h
15135 $as_echo "#define gid_t int" >>confdefs.h
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15140 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15141 if ${ac_cv_header_stdbool_h+:} false
; then :
15142 $as_echo_n "(cached) " >&6
15144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15147 #include <stdbool.h>
15152 typedef _Bool Bool;
15154 "error: bool is not defined"
15157 "error: false is not defined"
15160 "error: false is not 0"
15163 "error: true is not defined"
15166 "error: true is not 1"
15170 #ifndef __bool_true_false_are_defined
15171 "error: __bool_true_false_are_defined is not defined"
15174 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
15176 char a[true == 1 ? 1 : -1];
15177 char b[false == 0 ? 1 : -1];
15178 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15179 char d[(bool) 0.5 == true ? 1 : -1];
15180 /* See body of main program for 'e'. */
15181 char f[(Bool) 0.0 == false ? 1 : -1];
15183 char h[sizeof (Bool)];
15184 char i[sizeof s.t];
15185 enum { j = false, k = true, l = false * true, m = true * 256 };
15186 /* The following fails for
15187 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15189 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15190 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15191 /* Catch a bug in an HP-UX C compiler. See
15192 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15193 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15204 *pq |= q; *pq |= ! q;
15205 *qq |= q; *qq |= ! q;
15206 /* Refer to every declared value, to avoid compiler optimizations. */
15207 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15208 + !m + !n + !o + !p + !q + !pq + !qq);
15214 if ac_fn_c_try_compile
"$LINENO"; then :
15215 ac_cv_header_stdbool_h
=yes
15217 ac_cv_header_stdbool_h
=no
15219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15222 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15223 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15224 if test "x$ac_cv_type__Bool" = xyes
; then :
15226 cat >>confdefs.h
<<_ACEOF
15227 #define HAVE__BOOL 1
15236 HAVE_MAX_ALIGN_T
=1;
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
15241 $as_echo_n "checking for wchar_t... " >&6; }
15242 if ${gt_cv_c_wchar_t+:} false
; then :
15243 $as_echo_n "(cached) " >&6
15245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 #include <stddef.h>
15248 wchar_t foo = (wchar_t)'\0';
15257 if ac_fn_c_try_compile
"$LINENO"; then :
15258 gt_cv_c_wchar_t
=yes
15262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
15265 $as_echo "$gt_cv_c_wchar_t" >&6; }
15266 if test $gt_cv_c_wchar_t = yes; then
15268 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
15278 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
15279 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
15285 cat >>confdefs.h
<<_ACEOF
15286 #define HAVE_DECL_STRDUP $ac_have_decl
15291 REPLACE_STRERROR_0
=0
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15293 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
15294 if ${gl_cv_func_strerror_0_works+:} false
; then :
15295 $as_echo_n "(cached) " >&6
15297 if test "$cross_compiling" = yes; then :
15299 # Guess yes on glibc systems.
15300 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
15301 # If we don't know, assume the worst.
15302 *) gl_cv_func_strerror_0_works
="guessing no" ;;
15306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15308 #include <string.h>
15317 str = strerror (0);
15318 if (!*str) result |= 1;
15319 if (errno) result |= 2;
15320 if (strstr (str, "nknown") || strstr (str, "ndefined"))
15327 if ac_fn_c_try_run
"$LINENO"; then :
15328 gl_cv_func_strerror_0_works
=yes
15330 gl_cv_func_strerror_0_works
=no
15332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15339 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
15340 case "$gl_cv_func_strerror_0_works" in
15343 REPLACE_STRERROR_0
=1
15345 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
15359 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15360 if test "x$ac_cv_func_strerror_r" = xyes
; then :
15364 if test $ac_cv_func_strerror_r = yes; then
15365 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
15367 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
15368 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
15369 $as_echo_n "(cached) " >&6
15371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15372 /* end confdefs.h. */
15373 #include <string.h>
15374 int strerror_r (int, char *, size_t);
15384 if ac_fn_c_try_compile
"$LINENO"; then :
15385 gl_cv_func_strerror_r_posix_signature
=yes
15387 gl_cv_func_strerror_r_posix_signature
=no
15389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
15393 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
15394 if test $gl_cv_func_strerror_r_posix_signature = yes; then
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
15396 $as_echo_n "checking whether strerror_r works... " >&6; }
15397 if ${gl_cv_func_strerror_r_works+:} false
; then :
15398 $as_echo_n "(cached) " >&6
15400 if test "$cross_compiling" = yes; then :
15404 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
15405 # Guess no on HP-UX.
15406 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
15407 # Guess no on BSD variants.
15408 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
15409 # Guess yes otherwise.
15410 *) gl_cv_func_strerror_r_works
="guessing yes";;
15414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15417 #include <string.h>
15424 if (strerror_r (EACCES, buf, 0) < 0)
15427 if (strerror_r (EACCES, buf, sizeof buf) != 0)
15429 strcpy (buf, "Unknown");
15430 if (strerror_r (0, buf, sizeof buf) != 0)
15434 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
15438 if (strerror_r (-3, buf, sizeof buf) < 0)
15450 if ac_fn_c_try_run
"$LINENO"; then :
15451 gl_cv_func_strerror_r_works
=yes
15453 gl_cv_func_strerror_r_works
=no
15455 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15456 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
15462 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
15471 if test $ac_cv_func___xpg_strerror_r = yes; then
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
15473 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
15474 if ${gl_cv_func_strerror_r_works+:} false
; then :
15475 $as_echo_n "(cached) " >&6
15477 if test "$cross_compiling" = yes; then :
15478 gl_cv_func_strerror_r_works
="guessing no"
15481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h. */
15484 #include <string.h>
15489 int __xpg_strerror_r(int, char *, size_t);
15495 char buf[256] = "^";
15497 char *str = strerror (-1);
15498 strcpy (copy, str);
15499 if (__xpg_strerror_r (-2, buf, 1) == 0)
15503 __xpg_strerror_r (-2, buf, 256);
15504 if (strcmp (str, copy))
15512 if ac_fn_c_try_run
"$LINENO"; then :
15513 gl_cv_func_strerror_r_works
=yes
15515 gl_cv_func_strerror_r_works
=no
15517 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15518 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
15524 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
15551 if test $gl_cv_have_include_next = yes; then
15552 gl_cv_next_string_h
='<'string.h
'>'
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15555 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15556 if ${gl_cv_next_string_h+:} false
; then :
15557 $as_echo_n "(cached) " >&6
15562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15564 #include <string.h>
15567 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15568 *) gl_absname_cpp
="$ac_cpp" ;;
15573 gl_dirsep_regex
='[/\\]'
15576 gl_dirsep_regex
='\/'
15579 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15580 gl_header_literal_regex
=`echo 'string.h' \
15581 | sed -e "$gl_make_literal_regex_sed"`
15582 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15583 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15589 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15590 sed -n "$gl_absolute_header_sed"`
15592 gl_header
=$gl_cv_absolute_string_h
15593 gl_cv_next_string_h
='"'$gl_header'"'
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15598 $as_echo "$gl_cv_next_string_h" >&6; }
15600 NEXT_STRING_H
=$gl_cv_next_string_h
15602 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15604 gl_next_as_first_directive
='<'string.h
'>'
15606 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15607 gl_next_as_first_directive
=$gl_cv_next_string_h
15609 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
15616 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
15617 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15619 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15620 if eval \
${$as_gl_Symbol+:} false
; then :
15621 $as_echo_n "(cached) " >&6
15623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 #include <string.h>
15636 if ac_fn_c_try_compile
"$LINENO"; then :
15637 eval "$as_gl_Symbol=yes"
15639 eval "$as_gl_Symbol=no"
15641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15643 eval ac_res
=\$
$as_gl_Symbol
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15645 $as_echo "$ac_res" >&6; }
15646 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15647 cat >>confdefs.h
<<_ACEOF
15648 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15651 eval ac_cv_have_decl_
$gl_func=yes
15659 if test "$gl_cv_func_memchr_works" != yes; then
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
15663 $as_echo_n "checking whether strstr works... " >&6; }
15664 if ${gl_cv_func_strstr_works_always+:} false
; then :
15665 $as_echo_n "(cached) " >&6
15667 if test "$cross_compiling" = yes; then :
15668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15671 #ifdef __GNU_LIBRARY__
15672 #include <features.h>
15673 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
15674 || defined __UCLIBC__
15677 #elif defined __CYGWIN__
15678 #include <cygwin/version.h>
15679 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15688 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15689 gl_cv_func_strstr_works_always
="guessing yes"
15691 gl_cv_func_strstr_works_always
="guessing no"
15697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h. */
15700 #include <string.h> /* for strstr */
15701 #define P "_EF_BF_BD"
15702 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15703 #define NEEDLE P P P P P
15708 return !!strstr (HAYSTACK, NEEDLE);
15714 if ac_fn_c_try_run
"$LINENO"; then :
15715 gl_cv_func_strstr_works_always
=yes
15717 gl_cv_func_strstr_works_always
=no
15719 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15720 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
15726 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
15727 case "$gl_cv_func_strstr_works_always" in
15736 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
15737 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
15743 cat >>confdefs.h
<<_ACEOF
15744 #define HAVE_DECL_STRTOK_R $ac_have_decl
15766 if test $gl_cv_have_include_next = yes; then
15767 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
15770 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
15771 if ${gl_cv_next_sys_types_h+:} false
; then :
15772 $as_echo_n "(cached) " >&6
15777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15779 #include <sys/types.h>
15782 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15783 *) gl_absname_cpp
="$ac_cpp" ;;
15788 gl_dirsep_regex
='[/\\]'
15791 gl_dirsep_regex
='\/'
15794 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15795 gl_header_literal_regex
=`echo 'sys/types.h' \
15796 | sed -e "$gl_make_literal_regex_sed"`
15797 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15798 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15804 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15805 sed -n "$gl_absolute_header_sed"`
15807 gl_header
=$gl_cv_absolute_sys_types_h
15808 gl_cv_next_sys_types_h
='"'$gl_header'"'
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
15813 $as_echo "$gl_cv_next_sys_types_h" >&6; }
15815 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
15817 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15818 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15819 gl_next_as_first_directive
='<'sys
/types.h
'>'
15821 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15822 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
15824 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
15845 GNULIB_NANOSLEEP
=0;
15850 HAVE_DECL_LOCALTIME_R
=1;
15854 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
15855 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
15856 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
15857 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
15859 : ${GNULIB_GETTIMEOFDAY=0};
15861 REPLACE_LOCALTIME
=0;
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15872 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15873 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
15874 $as_echo_n "(cached) " >&6
15876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15883 static struct timespec x; x.tv_sec = x.tv_nsec;
15888 if ac_fn_c_try_compile
"$LINENO"; then :
15889 gl_cv_sys_struct_timespec_in_time_h
=yes
15891 gl_cv_sys_struct_timespec_in_time_h
=no
15893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15896 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15898 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15899 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15900 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15901 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
15902 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15903 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15906 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15907 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
15908 $as_echo_n "(cached) " >&6
15910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h. */
15912 #include <sys/time.h>
15917 static struct timespec x; x.tv_sec = x.tv_nsec;
15922 if ac_fn_c_try_compile
"$LINENO"; then :
15923 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15925 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15930 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15931 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15932 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15935 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15936 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
15937 $as_echo_n "(cached) " >&6
15939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941 #include <pthread.h>
15946 static struct timespec x; x.tv_sec = x.tv_nsec;
15951 if ac_fn_c_try_compile
"$LINENO"; then :
15952 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15954 gl_cv_sys_struct_timespec_in_pthread_h
=no
15956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15959 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15960 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15961 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
15964 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
15965 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
15966 $as_echo_n "(cached) " >&6
15968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15970 #include <unistd.h>
15975 static struct timespec x; x.tv_sec = x.tv_nsec;
15980 if ac_fn_c_try_compile
"$LINENO"; then :
15981 gl_cv_sys_struct_timespec_in_unistd_h
=yes
15983 gl_cv_sys_struct_timespec_in_unistd_h
=no
15985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
15988 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
15989 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
15990 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
16011 if test $gl_cv_have_include_next = yes; then
16012 gl_cv_next_time_h
='<'time.h
'>'
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16015 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16016 if ${gl_cv_next_time_h+:} false
; then :
16017 $as_echo_n "(cached) " >&6
16022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16027 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16028 *) gl_absname_cpp
="$ac_cpp" ;;
16033 gl_dirsep_regex
='[/\\]'
16036 gl_dirsep_regex
='\/'
16039 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16040 gl_header_literal_regex
=`echo 'time.h' \
16041 | sed -e "$gl_make_literal_regex_sed"`
16042 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16043 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16049 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16050 sed -n "$gl_absolute_header_sed"`
16052 gl_header
=$gl_cv_absolute_time_h
16053 gl_cv_next_time_h
='"'$gl_header'"'
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16058 $as_echo "$gl_cv_next_time_h" >&6; }
16060 NEXT_TIME_H
=$gl_cv_next_time_h
16062 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16064 gl_next_as_first_directive
='<'time.h
'>'
16066 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16067 gl_next_as_first_directive
=$gl_cv_next_time_h
16069 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
16082 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
16083 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
16089 cat >>confdefs.h
<<_ACEOF
16090 #define HAVE_DECL_UNSETENV $ac_have_decl
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
16096 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
16097 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
16098 $as_echo_n "(cached) " >&6
16100 gl_cv_header_wchar_h_correct_inline
=yes
16101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16104 #define wcstod renamed_wcstod
16105 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16107 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16108 included before <wchar.h>. */
16109 #include <stddef.h>
16113 extern int zero (void);
16114 int main () { return zero(); }
16117 save_ac_compile
="$ac_compile"
16118 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
16119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16120 (eval $ac_compile) 2>&5
16122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16123 test $ac_status = 0; }; then
16124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16125 /* end confdefs.h. */
16127 #define wcstod renamed_wcstod
16128 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16130 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16131 included before <wchar.h>. */
16132 #include <stddef.h>
16136 int zero (void) { return 0; }
16139 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
16140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16141 (eval $ac_compile) 2>&5
16143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16144 test $ac_status = 0; }; then
16145 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
16148 gl_cv_header_wchar_h_correct_inline
=no
16152 ac_compile
="$save_ac_compile"
16153 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
16157 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
16158 if test $gl_cv_header_wchar_h_correct_inline = no
; then
16159 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
16160 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
16161 C99 mode. You have four options:
16162 - Add the flag -fgnu89-inline to CC and reconfigure, or
16163 - Fix your include files, using parts of
16164 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
16165 - Use a gcc version older than 4.3, or
16166 - Don't use the flags -std=c99 or -std=gnu99.
16167 Configuration aborted." "$LINENO" 5
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
16172 $as_echo_n "checking for wint_t... " >&6; }
16173 if ${gt_cv_c_wint_t+:} false
; then :
16174 $as_echo_n "(cached) " >&6
16176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16179 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16181 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16182 before <wchar.h>. */
16183 #include <stddef.h>
16187 wint_t foo = (wchar_t)'\0';
16196 if ac_fn_c_try_compile
"$LINENO"; then :
16201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
16204 $as_echo "$gt_cv_c_wint_t" >&6; }
16205 if test $gt_cv_c_wint_t = yes; then
16207 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
16216 GNULIB_TOWCTRANS
=0;
16220 REPLACE_ISWBLANK
=0;
16229 GL_COND_LIBTOOL_TRUE
=
16230 GL_COND_LIBTOOL_FALSE
='#'
16232 GL_COND_LIBTOOL_TRUE
='#'
16233 GL_COND_LIBTOOL_FALSE
=
16236 gl_cond_libtool
=false
16239 gl_m4_base
='import/m4'
16249 gl_source_base
='import'
16252 if test $ac_cv_func_alloca_works = no
; then
16256 # Define an additional variable used in the Makefile substitution.
16257 if test $ac_cv_working_alloca_h = yes; then
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16259 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16260 if ${gl_cv_rpl_alloca+:} false
; then :
16261 $as_echo_n "(cached) " >&6
16264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16267 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16273 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
16274 gl_cv_rpl_alloca
=yes
16276 gl_cv_rpl_alloca
=no
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16283 $as_echo "$gl_cv_rpl_alloca" >&6; }
16284 if test $gl_cv_rpl_alloca = yes; then
16286 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16296 if test -n "$ALLOCA_H"; then
16297 GL_GENERATE_ALLOCA_H_TRUE
=
16298 GL_GENERATE_ALLOCA_H_FALSE
='#'
16300 GL_GENERATE_ALLOCA_H_TRUE
='#'
16301 GL_GENERATE_ALLOCA_H_FALSE
=
16315 if test $ac_cv_header_arpa_inet_h = yes; then
16336 if test $gl_cv_have_include_next = yes; then
16337 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
16340 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
16341 if ${gl_cv_next_arpa_inet_h+:} false
; then :
16342 $as_echo_n "(cached) " >&6
16345 if test $ac_cv_header_arpa_inet_h = yes; then
16350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352 #include <arpa/inet.h>
16355 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16356 *) gl_absname_cpp
="$ac_cpp" ;;
16361 gl_dirsep_regex
='[/\\]'
16364 gl_dirsep_regex
='\/'
16367 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16368 gl_header_literal_regex
=`echo 'arpa/inet.h' \
16369 | sed -e "$gl_make_literal_regex_sed"`
16370 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16371 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16377 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16378 sed -n "$gl_absolute_header_sed"`
16380 gl_header
=$gl_cv_absolute_arpa_inet_h
16381 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
16383 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
16389 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
16391 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
16393 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16394 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16395 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
16397 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16398 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
16400 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
16409 for gl_func
in inet_ntop inet_pton
; do
16410 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16412 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16413 if eval \
${$as_gl_Symbol+:} false
; then :
16414 $as_echo_n "(cached) " >&6
16416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h. */
16419 /* On some systems, this header is not self-consistent. */
16420 #if !(defined __GLIBC__ || defined __UCLIBC__)
16421 # include <sys/socket.h>
16424 # include <netdb.h>
16426 #include <arpa/inet.h>
16437 if ac_fn_c_try_compile
"$LINENO"; then :
16438 eval "$as_gl_Symbol=yes"
16440 eval "$as_gl_Symbol=no"
16442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16444 eval ac_res
=\$
$as_gl_Symbol
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16446 $as_echo "$ac_res" >&6; }
16447 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
16448 cat >>confdefs.h
<<_ACEOF
16449 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16452 eval ac_cv_have_decl_
$gl_func=yes
16466 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
16471 if test $ac_cv_func_canonicalize_file_name = no
; then
16472 HAVE_CANONICALIZE_FILE_NAME
=0
16473 if test $ac_cv_func_realpath = no
; then
16476 case "$gl_cv_func_realpath_works" in
16478 *) REPLACE_REALPATH
=1 ;;
16482 case "$gl_cv_func_realpath_works" in
16486 REPLACE_CANONICALIZE_FILE_NAME
=1
16492 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
16501 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
16506 cat >>confdefs.h
<<_ACEOF
16507 #define GNULIB_CANONICALIZE_LGPL 1
16516 GNULIB_CANONICALIZE_FILE_NAME
=1
16522 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
16537 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
16552 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
16559 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
16560 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
16561 $as_echo_n "(cached) " >&6
16563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16566 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16568 # include <unistd.h>
16570 #include <limits.h>
16571 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16572 # include <sys/param.h>
16574 #if !defined PATH_MAX && defined MAXPATHLEN
16575 # define PATH_MAX MAXPATHLEN
16579 # define PATH_MAX 1024
16581 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16583 # define PATH_MAX 260
16587 have_arbitrary_file_name_length_limit
16590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16591 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
16592 gl_cv_have_arbitrary_file_name_length_limit
=yes
16594 gl_cv_have_arbitrary_file_name_length_limit
=no
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
16600 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
16602 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
16611 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
16617 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
16623 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
16637 if test $ac_cv_header_sys_socket_h != yes; then
16638 for ac_header
in winsock2.h
16640 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16641 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
16642 cat >>confdefs.h
<<_ACEOF
16643 #define HAVE_WINSOCK2_H 1
16651 if test "$ac_cv_header_winsock2_h" = yes; then
16653 UNISTD_H_HAVE_WINSOCK2_H
=1
16654 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
16660 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
16665 if test $REPLACE_CLOSE = 0; then
16675 if test $ac_cv_func_fchdir = no
; then
16679 if test $HAVE_FCHDIR = 0; then
16685 if test $REPLACE_CLOSE = 1; then
16694 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
16708 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
16715 for ac_func
in closedir
16717 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
16718 if test "x$ac_cv_func_closedir" = xyes
; then :
16719 cat >>confdefs.h
<<_ACEOF
16720 #define HAVE_CLOSEDIR 1
16726 if test $ac_cv_func_closedir = no
; then
16739 if test $ac_cv_func_fchdir = no
; then
16743 if test $HAVE_FCHDIR = 0; then
16744 if test $HAVE_CLOSEDIR = 1; then
16749 case $host_os,$HAVE_CLOSEDIR in
16751 REPLACE_CLOSEDIR
=1;;
16754 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
16763 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
16777 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
16782 if test "x$datarootdir" = x
; then
16783 datarootdir
='${datadir}'
16786 if test "x$docdir" = x
; then
16787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
16790 if test "x$htmldir" = x
; then
16791 htmldir
='${docdir}'
16794 if test "x$dvidir" = x
; then
16798 if test "x$pdfdir" = x
; then
16802 if test "x$psdir" = x
; then
16806 if test "x$lispdir" = x
; then
16807 lispdir
='${datarootdir}/emacs/site-lisp'
16810 if test "x$localedir" = x
; then
16811 localedir
='${datarootdir}/locale'
16814 if test "x$runstatedir" = x
; then
16815 runstatedir
='${localstatedir}/run'
16819 pkglibexecdir
='${libexecdir}/${PACKAGE}'
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
16823 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
16824 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
16825 $as_echo_n "(cached) " >&6
16827 if test "$cross_compiling" = yes; then :
16829 # Guess yes on glibc systems with Linux kernel.
16830 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
16831 # If we don't know, assume the worst.
16832 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
16836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838 #include <sys/types.h>
16839 #include <sys/stat.h>
16840 #include <dirent.h>
16845 DIR *dp = opendir (".");
16853 if (lstat (e->d_name, &st) != 0)
16855 if (e->d_ino != st.st_ino)
16864 if ac_fn_c_try_run
"$LINENO"; then :
16865 gl_cv_struct_dirent_d_ino
=yes
16867 gl_cv_struct_dirent_d_ino
=no
16869 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16870 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
16875 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
16876 case "$gl_cv_struct_dirent_d_ino" in
16879 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
16886 $as_echo_n "checking for d_type member in directory struct... " >&6; }
16887 if ${gl_cv_struct_dirent_d_type+:} false
; then :
16888 $as_echo_n "(cached) " >&6
16890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16893 #include <sys/types.h>
16894 #include <dirent.h>
16899 struct dirent dp; dp.d_type = 0;
16904 if ac_fn_c_try_link
"$LINENO"; then :
16905 gl_cv_struct_dirent_d_type
=yes
16907 gl_cv_struct_dirent_d_type
=no
16909 rm -f core conftest.err conftest.
$ac_objext \
16910 conftest
$ac_exeext conftest.
$ac_ext
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
16915 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
16916 if test $gl_cv_struct_dirent_d_type = yes; then
16918 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
16941 if test $gl_cv_have_include_next = yes; then
16942 gl_cv_next_dirent_h
='<'dirent.h
'>'
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
16945 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
16946 if ${gl_cv_next_dirent_h+:} false
; then :
16947 $as_echo_n "(cached) " >&6
16950 if test $ac_cv_header_dirent_h = yes; then
16955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 #include <dirent.h>
16960 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16961 *) gl_absname_cpp
="$ac_cpp" ;;
16966 gl_dirsep_regex
='[/\\]'
16969 gl_dirsep_regex
='\/'
16972 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16973 gl_header_literal_regex
=`echo 'dirent.h' \
16974 | sed -e "$gl_make_literal_regex_sed"`
16975 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16976 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16982 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16983 sed -n "$gl_absolute_header_sed"`
16985 gl_header
=$gl_cv_absolute_dirent_h
16986 gl_cv_next_dirent_h
='"'$gl_header'"'
16988 gl_cv_next_dirent_h
='<'dirent.h
'>'
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
16994 $as_echo "$gl_cv_next_dirent_h" >&6; }
16996 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
16998 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17000 gl_next_as_first_directive
='<'dirent.h
'>'
17002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17003 gl_next_as_first_directive
=$gl_cv_next_dirent_h
17005 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
17010 if test $ac_cv_header_dirent_h = yes; then
17018 for gl_func
in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir
; do
17019 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17021 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17022 if eval \
${$as_gl_Symbol+:} false
; then :
17023 $as_echo_n "(cached) " >&6
17025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17027 #include <dirent.h>
17038 if ac_fn_c_try_compile
"$LINENO"; then :
17039 eval "$as_gl_Symbol=yes"
17041 eval "$as_gl_Symbol=no"
17043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17045 eval ac_res
=\$
$as_gl_Symbol
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17047 $as_echo "$ac_res" >&6; }
17048 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
17049 cat >>confdefs.h
<<_ACEOF
17050 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17053 eval ac_cv_have_decl_
$gl_func=yes
17063 for ac_func
in dirfd
17065 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
17066 if test "x$ac_cv_func_dirfd" = xyes
; then :
17067 cat >>confdefs.h
<<_ACEOF
17068 #define HAVE_DIRFD 1
17074 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
17075 #include <dirent.h>
17077 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
17083 cat >>confdefs.h
<<_ACEOF
17084 #define HAVE_DECL_DIRFD $ac_have_decl
17087 if test $ac_cv_have_decl_dirfd = no
; then
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
17092 $as_echo_n "checking whether dirfd is a macro... " >&6; }
17093 if ${gl_cv_func_dirfd_macro+:} false
; then :
17094 $as_echo_n "(cached) " >&6
17096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17099 #include <sys/types.h>
17100 #include <dirent.h>
17102 dirent_header_defines_dirfd
17105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17106 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
17107 gl_cv_func_dirfd_macro
=yes
17109 gl_cv_func_dirfd_macro
=no
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
17115 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
17117 # Use the replacement if we have no function or macro with that name,
17118 # or if OS/2 kLIBC whose dirfd() does not work.
17119 # Replace only if the system declares dirfd already.
17120 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
17121 no
,no
,*,yes |
*,*,os2
*,yes)
17124 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
17128 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
17129 ||
test $REPLACE_DIRFD = 1; then
17138 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
17142 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
17143 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
17144 $as_echo_n "(cached) " >&6
17147 dirfd_save_CFLAGS
=$CFLAGS
17148 for ac_expr
in d_fd dd_fd
; do
17150 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
17151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h. */
17154 #include <sys/types.h>
17155 #include <dirent.h>
17159 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
17164 if ac_fn_c_try_compile
"$LINENO"; then :
17168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17169 CFLAGS
=$dirfd_save_CFLAGS
17170 test "$dir_fd_found" = yes && break
17172 test "$dir_fd_found" = yes || ac_expr
=no_such_member
17174 gl_cv_sys_dir_fd_member_name
=$ac_expr
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
17179 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
17180 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
17182 cat >>confdefs.h
<<_ACEOF
17183 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
17201 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17212 $as_echo_n "checking whether // is distinct from /... " >&6; }
17213 if ${gl_cv_double_slash_root+:} false
; then :
17214 $as_echo_n "(cached) " >&6
17216 if test x
"$cross_compiling" = xyes
; then
17217 # When cross-compiling, there is no way to tell whether // is special
17218 # short of a list of hosts. However, the only known hosts to date
17219 # that have a distinct // are Apollo DomainOS (too old to port to),
17220 # Cygwin, and z/OS. If anyone knows of another system for which // has
17221 # special semantics and is distinct from /, please report it to
17222 # <bug-gnulib@gnu.org>.
17224 *-cygwin | i370-ibm-openedition
)
17225 gl_cv_double_slash_root
=yes ;;
17227 # Be optimistic and assume that / and // are the same when we
17229 gl_cv_double_slash_root
='unknown, assuming no' ;;
17232 set x
`ls -di / // 2>/dev/null`
17233 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
17234 gl_cv_double_slash_root
=no
17236 gl_cv_double_slash_root
=yes
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17241 $as_echo "$gl_cv_double_slash_root" >&6; }
17242 if test "$gl_cv_double_slash_root" = yes; then
17244 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17251 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17264 if test $ac_cv_func_fchdir = no
; then
17268 if test $HAVE_FCHDIR = 0; then
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
17273 $as_echo_n "checking whether dup works... " >&6; }
17274 if ${gl_cv_func_dup_works+:} false
; then :
17275 $as_echo_n "(cached) " >&6
17277 if test "$cross_compiling" = yes; then :
17278 gl_cv_func_dup_works
='guessing yes'
17280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17282 #include <unistd.h>
17288 /* On OS/2 kLIBC, dup does not work on a directory fd. */
17289 int fd = open (".", O_RDONLY);
17290 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
17297 if ac_fn_c_try_run
"$LINENO"; then :
17298 gl_cv_func_dup_works
=yes
17300 gl_cv_func_dup_works
=no
17302 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17303 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
17309 $as_echo "$gl_cv_func_dup_works" >&6; }
17310 case "$gl_cv_func_dup_works" in
17317 if test $REPLACE_DUP = 1; then
17326 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
17341 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
17350 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
17353 if test $HAVE_DUP2 = 1; then
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
17355 $as_echo_n "checking whether dup2 works... " >&6; }
17356 if ${gl_cv_func_dup2_works+:} false
; then :
17357 $as_echo_n "(cached) " >&6
17359 if test "$cross_compiling" = yes; then :
17361 mingw
*) # on this platform, dup2 always returns 0 for success
17362 gl_cv_func_dup2_works
="guessing no" ;;
17363 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
17364 gl_cv_func_dup2_works
="guessing no" ;;
17366 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
17368 gl_cv_func_dup2_works
="guessing no" ;;
17369 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
17370 gl_cv_func_dup2_works
="guessing no" ;;
17371 *-android*) # implemented using dup3(), which fails if oldfd == newfd
17372 gl_cv_func_dup2_works
="guessing no" ;;
17373 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
17374 gl_cv_func_dup2_works
="guessing no" ;;
17375 *) gl_cv_func_dup2_works
="guessing yes" ;;
17378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17383 #include <limits.h>
17384 #include <sys/resource.h>
17385 #include <unistd.h>
17386 #ifndef RLIM_SAVED_CUR
17387 # define RLIM_SAVED_CUR RLIM_INFINITY
17389 #ifndef RLIM_SAVED_MAX
17390 # define RLIM_SAVED_MAX RLIM_INFINITY
17397 int bad_fd = INT_MAX;
17398 struct rlimit rlim;
17399 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17400 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17401 && rlim.rlim_cur != RLIM_INFINITY
17402 && rlim.rlim_cur != RLIM_SAVED_MAX
17403 && rlim.rlim_cur != RLIM_SAVED_CUR)
17404 bad_fd = rlim.rlim_cur;
17406 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
17409 if (dup2 (1, 1) != 1)
17412 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
17416 if (dup2 (0, 0) != -1)
17418 /* Many gnulib modules require POSIX conformance of EBADF. */
17419 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
17421 /* Flush out some cygwin core dumps. */
17422 if (dup2 (2, -1) != -1 || errno != EBADF)
17426 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
17428 int fd = open (".", O_RDONLY);
17431 else if (dup2 (fd, fd + 1) == -1)
17442 if ac_fn_c_try_run
"$LINENO"; then :
17443 gl_cv_func_dup2_works
=yes
17445 gl_cv_func_dup2_works
=no
17447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
17454 $as_echo "$gl_cv_func_dup2_works" >&6; }
17455 case "$gl_cv_func_dup2_works" in
17459 for ac_func
in setdtablesize
17461 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
17462 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
17463 cat >>confdefs.h
<<_ACEOF
17464 #define HAVE_SETDTABLESIZE 1
17483 if test $ac_cv_func_fchdir = no
; then
17487 if test $HAVE_FCHDIR = 0; then
17488 if test $HAVE_DUP2 = 1; then
17494 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
17503 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
17518 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
17534 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
17541 $as_echo_n "checking for error_at_line... " >&6; }
17542 if ${ac_cv_lib_error_at_line+:} false
; then :
17543 $as_echo_n "(cached) " >&6
17545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17551 error_at_line (0, 0, "", 0, "an error occurred");
17556 if ac_fn_c_try_link
"$LINENO"; then :
17557 ac_cv_lib_error_at_line
=yes
17559 ac_cv_lib_error_at_line
=no
17561 rm -f core conftest.err conftest.
$ac_objext \
17562 conftest
$ac_exeext conftest.
$ac_ext
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
17565 $as_echo "$ac_cv_lib_error_at_line" >&6; }
17567 if test $ac_cv_lib_error_at_line = no
; then
17576 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
17585 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
17589 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
17603 if test $ac_cv_have_decl_fchdir = no
; then
17608 if test $HAVE_FCHDIR = 0; then
17617 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
17621 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
17624 $as_echo_n "checking whether open can visit directories... " >&6; }
17625 if ${gl_cv_func_open_directory_works+:} false
; then :
17626 $as_echo_n "(cached) " >&6
17628 if test "$cross_compiling" = yes; then :
17630 # Guess yes on glibc systems.
17631 *-gnu*) gl_cv_func_open_directory_works
="guessing yes" ;;
17632 # If we don't know, assume the worst.
17633 *) gl_cv_func_open_directory_works
="guessing no" ;;
17637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17644 return open(".", O_RDONLY) < 0;
17649 if ac_fn_c_try_run
"$LINENO"; then :
17650 gl_cv_func_open_directory_works
=yes
17652 gl_cv_func_open_directory_works
=no
17654 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17655 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
17660 $as_echo "$gl_cv_func_open_directory_works" >&6; }
17661 case "$gl_cv_func_open_directory_works" in
17665 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
17682 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
17697 if test $ac_cv_func_fcntl = no
; then
17707 if test $ac_cv_func_fcntl = no
; then
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
17715 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
17716 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
17717 $as_echo_n "(cached) " >&6
17719 if test "$cross_compiling" = yes; then :
17721 aix
* | cygwin
* | haiku
*)
17722 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
17723 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
17726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17727 /* end confdefs.h. */
17730 #include <limits.h>
17731 #include <sys/resource.h>
17732 #include <unistd.h>
17733 #ifndef RLIM_SAVED_CUR
17734 # define RLIM_SAVED_CUR RLIM_INFINITY
17736 #ifndef RLIM_SAVED_MAX
17737 # define RLIM_SAVED_MAX RLIM_INFINITY
17744 int bad_fd = INT_MAX;
17745 struct rlimit rlim;
17746 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17747 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17748 && rlim.rlim_cur != RLIM_INFINITY
17749 && rlim.rlim_cur != RLIM_SAVED_MAX
17750 && rlim.rlim_cur != RLIM_SAVED_CUR)
17751 bad_fd = rlim.rlim_cur;
17752 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
17753 if (errno != EINVAL) result |= 2;
17754 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
17755 if (errno != EINVAL) result |= 8;
17756 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
17759 fd = open (".", O_RDONLY);
17762 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
17772 if ac_fn_c_try_run
"$LINENO"; then :
17773 gl_cv_func_fcntl_f_dupfd_works
=yes
17775 gl_cv_func_fcntl_f_dupfd_works
=no
17777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
17783 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
17784 case $gl_cv_func_fcntl_f_dupfd_works in
17795 if test $ac_cv_func_fcntl = no
; then
17802 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
17807 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
17808 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
17809 $as_echo_n "(cached) " >&6
17811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17812 /* end confdefs.h. */
17815 #ifndef F_DUPFD_CLOEXEC
17827 if ac_fn_c_try_compile
"$LINENO"; then :
17828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17829 /* end confdefs.h. */
17832 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
17833 it to support the semantics on older kernels that failed with EINVAL. */
17845 if ac_fn_c_try_compile
"$LINENO"; then :
17846 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
17848 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
17850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17852 gl_cv_func_fcntl_f_dupfd_cloexec
=no
17854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
17857 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
17858 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
17868 if test $ac_cv_func_fcntl = no
; then
17886 if test $ac_cv_func_fchdir = no
; then
17890 if test $HAVE_FCHDIR = 0; then
17900 if test $ac_cv_func_fcntl = no
; then
17909 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
17918 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
17932 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
17947 if test $gl_cv_have_include_next = yes; then
17948 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
17951 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
17952 if ${gl_cv_next_fcntl_h+:} false
; then :
17953 $as_echo_n "(cached) " >&6
17958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17963 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17964 *) gl_absname_cpp
="$ac_cpp" ;;
17969 gl_dirsep_regex
='[/\\]'
17972 gl_dirsep_regex
='\/'
17975 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17976 gl_header_literal_regex
=`echo 'fcntl.h' \
17977 | sed -e "$gl_make_literal_regex_sed"`
17978 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17979 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17985 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17986 sed -n "$gl_absolute_header_sed"`
17988 gl_header
=$gl_cv_absolute_fcntl_h
17989 gl_cv_next_fcntl_h
='"'$gl_header'"'
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
17994 $as_echo "$gl_cv_next_fcntl_h" >&6; }
17996 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
17998 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18000 gl_next_as_first_directive
='<'fcntl.h
'>'
18002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18003 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
18005 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
18016 for gl_func
in fcntl openat
; do
18017 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18019 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18020 if eval \
${$as_gl_Symbol+:} false
; then :
18021 $as_echo_n "(cached) " >&6
18023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18024 /* end confdefs.h. */
18036 if ac_fn_c_try_compile
"$LINENO"; then :
18037 eval "$as_gl_Symbol=yes"
18039 eval "$as_gl_Symbol=no"
18041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18043 eval ac_res
=\$
$as_gl_Symbol
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18045 $as_echo "$ac_res" >&6; }
18046 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
18047 cat >>confdefs.h
<<_ACEOF
18048 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18051 eval ac_cv_have_decl_
$gl_func=yes
18061 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
18062 #include <dirent.h>
18065 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
18071 cat >>confdefs.h
<<_ACEOF
18072 #define HAVE_DECL_FDOPENDIR $ac_have_decl
18074 if test $ac_have_decl = 1; then :
18077 HAVE_DECL_FDOPENDIR
=0
18087 if test $ac_cv_func_fdopendir = no
; then
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
18091 $as_echo_n "checking whether fdopendir works... " >&6; }
18092 if ${gl_cv_func_fdopendir_works+:} false
; then :
18093 $as_echo_n "(cached) " >&6
18095 if test "$cross_compiling" = yes; then :
18097 # Guess yes on glibc systems.
18098 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
18099 # If we don't know, assume the worst.
18100 *) gl_cv_func_fdopendir_works
="guessing no" ;;
18104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18107 #include <dirent.h>
18109 #include <unistd.h>
18110 #if !HAVE_DECL_FDOPENDIR
18112 # ifdef __cplusplus
18115 DIR *fdopendir (int);
18122 int fd = open ("conftest.c", O_RDONLY);
18123 if (fd < 0) result |= 1;
18124 if (fdopendir (fd)) result |= 2;
18125 if (close (fd)) result |= 4;
18131 if ac_fn_c_try_run
"$LINENO"; then :
18132 gl_cv_func_fdopendir_works
=yes
18134 gl_cv_func_fdopendir_works
=no
18136 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18137 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
18142 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
18143 case "$gl_cv_func_fdopendir_works" in
18146 REPLACE_FDOPENDIR
=1
18151 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
18160 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
18174 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
18180 cat >>confdefs.h
<<_ACEOF
18181 #define GNULIB_FDOPENDIR 1
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
18196 $as_echo_n "checking for flexible array member... " >&6; }
18197 if ${ac_cv_c_flexmember+:} false
; then :
18198 $as_echo_n "(cached) " >&6
18200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h. */
18202 #include <stdlib.h>
18204 #include <stddef.h>
18205 struct s { int n; double d[]; };
18209 int m = getchar ();
18210 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
18211 nbytes += sizeof (struct s) - 1;
18212 nbytes -= nbytes % sizeof (struct s);
18213 struct s *p = malloc (nbytes);
18215 return p->d != (double *) NULL;
18220 if ac_fn_c_try_compile
"$LINENO"; then :
18221 ac_cv_c_flexmember
=yes
18223 ac_cv_c_flexmember
=no
18225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
18228 $as_echo "$ac_cv_c_flexmember" >&6; }
18229 if test $ac_cv_c_flexmember = yes; then
18231 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
18234 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
18242 REPLACE_FLOAT_LDBL
=0
18244 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
18248 case "$host_cpu" in
18253 # On x86_64 systems, the C compiler may still be generating
18255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18257 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
18261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18262 $EGREP "yes" >/dev
/null
2>&1; then :
18273 case "$host_cpu" in
18281 aix
* | freebsd
* | linux
*)
18282 if test -n "$FLOAT_H"; then
18283 REPLACE_FLOAT_LDBL
=1
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
18290 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
18291 if ${gl_cv_func_itold_works+:} false
; then :
18292 $as_echo_n "(cached) " >&6
18295 if test "$cross_compiling" = yes; then :
18298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18300 #if defined __LP64__ || defined __arch64__
18304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18305 $EGREP "yes" >/dev
/null
2>&1; then :
18306 gl_cv_func_itold_works
="guessing no"
18308 gl_cv_func_itold_works
="guessing yes"
18313 *) gl_cv_func_itold_works
="guessing yes" ;;
18317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18318 /* end confdefs.h. */
18321 volatile long double ld;
18330 if ac_fn_c_try_run
"$LINENO"; then :
18331 gl_cv_func_itold_works
=yes
18333 gl_cv_func_itold_works
=no
18335 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18336 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
18342 $as_echo "$gl_cv_func_itold_works" >&6; }
18343 case "$gl_cv_func_itold_works" in
18350 if test -n "$FLOAT_H"; then
18359 if test $gl_cv_have_include_next = yes; then
18360 gl_cv_next_float_h
='<'float.h
'>'
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
18363 $as_echo_n "checking absolute name of <float.h>... " >&6; }
18364 if ${gl_cv_next_float_h+:} false
; then :
18365 $as_echo_n "(cached) " >&6
18370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18375 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18376 *) gl_absname_cpp
="$ac_cpp" ;;
18381 gl_dirsep_regex
='[/\\]'
18384 gl_dirsep_regex
='\/'
18387 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18388 gl_header_literal_regex
=`echo 'float.h' \
18389 | sed -e "$gl_make_literal_regex_sed"`
18390 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18391 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18397 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18398 sed -n "$gl_absolute_header_sed"`
18400 gl_header
=$gl_cv_absolute_float_h
18401 gl_cv_next_float_h
='"'$gl_header'"'
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
18406 $as_echo "$gl_cv_next_float_h" >&6; }
18408 NEXT_FLOAT_H
=$gl_cv_next_float_h
18410 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18412 gl_next_as_first_directive
='<'float.h
'>'
18414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18415 gl_next_as_first_directive
=$gl_cv_next_float_h
18417 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
18424 if test -n "$FLOAT_H"; then
18425 GL_GENERATE_FLOAT_H_TRUE
=
18426 GL_GENERATE_FLOAT_H_FALSE
='#'
18428 GL_GENERATE_FLOAT_H_TRUE
='#'
18429 GL_GENERATE_FLOAT_H_FALSE
=
18434 if test $REPLACE_FLOAT_LDBL = 1; then
18443 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
18446 if test $REPLACE_ITOLD = 1; then
18455 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
18464 gl_fnmatch_required_lowercase
=`
18465 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
18467 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
18469 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
18470 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
18471 $as_echo_n "(cached) " >&6
18473 if test $gl_fnmatch_required = GNU
; then
18474 gl_fnmatch_gnu_start
=
18475 gl_fnmatch_gnu_end
=
18477 gl_fnmatch_gnu_start
='#if 0'
18478 gl_fnmatch_gnu_end
='#endif'
18480 if test "$cross_compiling" = yes; then :
18481 eval "$gl_fnmatch_cache_var=\"guessing no\""
18483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18485 #include <fnmatch.h>
18487 y (char const *pattern, char const *string, int flags)
18489 return fnmatch (pattern, string, flags) == 0;
18492 n (char const *pattern, char const *string, int flags)
18494 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
18500 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
18501 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
18502 static char const A_1[] = { 'A' - 1, 0 };
18503 static char const A01[] = { 'A' + 1, 0 };
18504 static char const a_1[] = { 'a' - 1, 0 };
18505 static char const a01[] = { 'a' + 1, 0 };
18506 static char const bs_1[] = { '\\\\' - 1, 0 };
18507 static char const bs01[] = { '\\\\' + 1, 0 };
18509 if (!n ("a*", "", 0))
18511 if (!y ("a*", "abc", 0))
18513 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
18515 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
18517 if (!y ("a\\\\bc", "abc", 0))
18519 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
18521 if (!y ("*x", ".x", 0))
18523 if (!n ("*x", ".x", FNM_PERIOD))
18525 if (!y (Apat, "\\\\", 0))
18527 if (!y (Apat, "A", 0))
18529 if (!y (apat, "\\\\", 0))
18531 if (!y (apat, "a", 0))
18533 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
18535 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
18537 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
18539 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
18541 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
18543 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
18545 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
18547 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
18549 $gl_fnmatch_gnu_start
18550 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
18552 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
18554 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
18556 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
18558 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
18560 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
18562 $gl_fnmatch_gnu_end
18569 if ac_fn_c_try_run
"$LINENO"; then :
18570 eval "$gl_fnmatch_cache_var=yes"
18572 eval "$gl_fnmatch_cache_var=no"
18574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18575 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18580 eval ac_res
=\$
$gl_fnmatch_cache_var
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18582 $as_echo "$ac_res" >&6; }
18583 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
18584 if test "$gl_fnmatch_result" = yes; then
18585 rm -f "$gl_source_base/fnmatch.h"
18587 FNMATCH_H
=fnmatch.h
18590 if test -n "$FNMATCH_H"; then
18591 GL_GENERATE_FNMATCH_H_TRUE
=
18592 GL_GENERATE_FNMATCH_H_FALSE
='#'
18594 GL_GENERATE_FNMATCH_H_TRUE
='#'
18595 GL_GENERATE_FNMATCH_H_FALSE
=
18599 if test -n "$FNMATCH_H"; then
18608 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
18612 cat >>confdefs.h
<<_ACEOF
18613 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
18617 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
18619 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
18625 cat >>confdefs.h
<<_ACEOF
18626 #define HAVE_DECL_ISBLANK $ac_have_decl
18671 if test -n "$FNMATCH_H"; then
18680 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
18684 cat >>confdefs.h
<<_ACEOF
18685 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
18689 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
18691 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
18697 cat >>confdefs.h
<<_ACEOF
18698 #define HAVE_DECL_ISBLANK $ac_have_decl
18742 if test $gl_cv_func_frexp_no_libm = no
; then
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
18744 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
18745 if ${gl_cv_func_frexp_in_libm+:} false
; then :
18746 $as_echo_n "(cached) " >&6
18751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h. */
18758 int e; return frexp (x, &e) > 0;
18763 if ac_fn_c_try_link
"$LINENO"; then :
18764 gl_cv_func_frexp_in_libm
=yes
18766 gl_cv_func_frexp_in_libm
=no
18768 rm -f core conftest.err conftest.
$ac_objext \
18769 conftest
$ac_exeext conftest.
$ac_ext
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
18774 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
18775 if test $gl_cv_func_frexp_in_libm = yes; then
18779 if test $gl_cv_func_frexp_no_libm = yes \
18780 ||
test $gl_cv_func_frexp_in_libm = yes; then
18782 LIBS
="$LIBS $FREXP_LIBM"
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
18793 $as_echo_n "checking whether frexp works... " >&6; }
18794 if ${gl_cv_func_frexp_works+:} false
; then :
18795 $as_echo_n "(cached) " >&6
18798 if test "$cross_compiling" = yes; then :
18800 netbsd
* | irix
* | mingw
*) gl_cv_func_frexp_works
="guessing no";;
18801 *) gl_cv_func_frexp_works
="guessing yes";;
18805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18806 /* end confdefs.h. */
18810 #include <string.h>
18811 #if HAVE_DECL_ALARM
18812 # include <signal.h>
18813 # include <unistd.h>
18815 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
18816 ICC 10.0 has a bug when optimizing the expression -zero.
18817 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
18818 to PowerPC on Mac OS X 10.5. */
18819 #if defined __hpux || defined __sgi || defined __ICC
18821 compute_minus_zero (void)
18823 return -DBL_MIN * DBL_MIN;
18825 # define minus_zero compute_minus_zero ()
18827 double minus_zero = -0.0;
18835 #if HAVE_DECL_ALARM
18836 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
18837 number. Let the test fail in this case. */
18838 signal (SIGALRM, SIG_DFL);
18841 /* Test on denormalized numbers. */
18842 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
18847 double y = frexp (x, &exp);
18848 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
18849 On NetBSD: y = 0.75. Correct: y = 0.5. */
18853 /* Test on infinite numbers. */
18857 double y = frexp (x, &exp);
18861 /* Test on negative zero. */
18865 double y = frexp (x, &exp);
18866 if (memcmp (&y, &x, sizeof x))
18872 if ac_fn_c_try_run
"$LINENO"; then :
18873 gl_cv_func_frexp_works
=yes
18875 gl_cv_func_frexp_works
=no
18877 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18878 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
18884 $as_echo "$gl_cv_func_frexp_works" >&6; }
18887 case "$gl_cv_func_frexp_works" in
18888 *yes) gl_func_frexp
=yes ;;
18889 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
18894 if test $gl_func_frexp = yes; then
18896 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
18901 if test $gl_func_frexp != yes; then
18910 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
18924 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
18934 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
18936 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
18944 if test $HAVE_DECL_FREXPL = 1; then
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
18947 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
18948 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
18949 $as_echo_n "(cached) " >&6
18952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18953 /* end confdefs.h. */
18959 int e; return frexpl (x, &e) > 0;
18964 if ac_fn_c_try_link
"$LINENO"; then :
18965 gl_cv_func_frexpl_no_libm
=yes
18967 gl_cv_func_frexpl_no_libm
=no
18969 rm -f core conftest.err conftest.
$ac_objext \
18970 conftest
$ac_exeext conftest.
$ac_ext
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
18974 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
18976 if test $gl_cv_func_frexpl_no_libm = no
; then
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
18978 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
18979 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
18980 $as_echo_n "(cached) " >&6
18985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18992 int e; return frexpl (x, &e) > 0;
18997 if ac_fn_c_try_link
"$LINENO"; then :
18998 gl_cv_func_frexpl_in_libm
=yes
19000 gl_cv_func_frexpl_in_libm
=no
19002 rm -f core conftest.err conftest.
$ac_objext \
19003 conftest
$ac_exeext conftest.
$ac_ext
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
19008 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
19009 if test $gl_cv_func_frexpl_in_libm = yes; then
19013 if test $gl_cv_func_frexpl_no_libm = yes \
19014 ||
test $gl_cv_func_frexpl_in_libm = yes; then
19016 LIBS
="$LIBS $FREXPL_LIBM"
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
19020 $as_echo_n "checking whether frexpl works... " >&6; }
19021 if ${gl_cv_func_frexpl_works+:} false
; then :
19022 $as_echo_n "(cached) " >&6
19025 if test "$cross_compiling" = yes; then :
19028 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
19029 gl_cv_func_frexpl_works
="guessing no";;
19030 *) gl_cv_func_frexpl_works
="guessing yes";;
19034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h. */
19039 /* Override the values of <float.h>, like done in float.in.h. */
19040 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
19041 # undef LDBL_MIN_EXP
19042 # define LDBL_MIN_EXP (-16381)
19044 #if defined __i386__ && defined __FreeBSD__
19045 # undef LDBL_MIN_EXP
19046 # define LDBL_MIN_EXP (-16381)
19048 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
19049 # undef LDBL_MIN_EXP
19050 # define LDBL_MIN_EXP DBL_MIN_EXP
19052 #if defined __sgi && (LDBL_MANT_DIG >= 106)
19053 # if defined __GNUC__
19054 # undef LDBL_MIN_EXP
19055 # define LDBL_MIN_EXP DBL_MIN_EXP
19062 long double frexpl (long double, int *);
19066 volatile long double x;
19067 /* Test on finite numbers that fails on AIX 5.1. */
19075 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
19076 function returns an invalid (incorrectly normalized) value: it returns
19077 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
19078 but the correct result is
19079 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
19083 long double y = frexpl (x, &exp);
19084 if (!(exp == 1 && y == 0.505L))
19087 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
19088 LDBL_MAX_EXP = 16384.
19089 In the loop end test, we test x against Infinity, rather than comparing
19090 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
19093 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
19104 /* Test on denormalized numbers. */
19107 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
19112 long double y = frexpl (x, &exp);
19113 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
19114 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
19115 if (exp != LDBL_MIN_EXP - 1)
19119 /* Test on infinite numbers. */
19123 long double y = frexpl (x, &exp);
19130 if ac_fn_c_try_run
"$LINENO"; then :
19131 gl_cv_func_frexpl_works
=yes
19133 gl_cv_func_frexpl_works
=no
19135 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19136 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
19142 $as_echo "$gl_cv_func_frexpl_works" >&6; }
19145 case "$gl_cv_func_frexpl_works" in
19146 *yes) gl_func_frexpl
=yes ;;
19147 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
19152 if test $gl_func_frexpl = yes; then
19154 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
19158 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19159 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
19161 FREXPL_LIBM
="$FREXP_LIBM"
19168 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19177 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
19191 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
19199 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19204 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
19218 if test $ac_cv_func_fchdir = no
; then
19222 if test $HAVE_FCHDIR = 0; then
19223 case "$gl_cv_func_open_directory_works" in
19232 if test $REPLACE_FSTAT = 1; then
19241 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
19256 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
19272 if test $ac_cv_func_fstatat = no
; then
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
19276 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
19277 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
19278 $as_echo_n "(cached) " >&6
19280 if test "$cross_compiling" = yes; then :
19282 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
19283 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
19287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19288 /* end confdefs.h. */
19291 #include <sys/stat.h>
19296 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
19300 if ac_fn_c_try_run
"$LINENO"; then :
19301 gl_cv_func_fstatat_zero_flag
=yes
19303 gl_cv_func_fstatat_zero_flag
=no
19305 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19306 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
19312 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
19314 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
19316 *) REPLACE_FSTATAT
=1
19317 case $gl_cv_func_fstatat_zero_flag in
19320 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
19328 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
19337 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
19351 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
19363 gl_cv_func_getcwd_path_max
=yes
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
19384 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
19385 if ${gl_cv_func_getcwd_path_max+:} false
; then :
19386 $as_echo_n "(cached) " >&6
19388 # Arrange for deletion of the temporary directory this test creates.
19389 ac_clean_files
="$ac_clean_files confdir3"
19390 if test "$cross_compiling" = yes; then :
19391 # Cross-compilation guesses:
19393 aix
*) # On AIX, it has the AIX bug.
19394 gl_cv_func_getcwd_path_max
='no, it has the AIX bug' ;;
19395 gnu
*) # On Hurd, it is 'yes'.
19396 gl_cv_func_getcwd_path_max
=yes ;;
19397 linux
* | kfreebsd
*)
19398 # On older Linux+glibc it's 'no, but it is partly working',
19399 # on newer Linux+glibc it's 'yes'.
19400 # On Linux+musl libc, it's 'no, but it is partly working'.
19401 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
19402 gl_cv_func_getcwd_path_max
='no, but it is partly working' ;;
19403 *) # If we don't know, assume the worst.
19404 gl_cv_func_getcwd_path_max
=no
;;
19408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19409 /* end confdefs.h. */
19412 #include <stdlib.h>
19414 # include <unistd.h>
19416 # include <direct.h>
19418 #include <string.h>
19419 #include <limits.h>
19420 #include <sys/stat.h>
19421 #include <sys/types.h>
19425 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19427 # include <unistd.h>
19429 #include <limits.h>
19430 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19431 # include <sys/param.h>
19433 #if !defined PATH_MAX && defined MAXPATHLEN
19434 # define PATH_MAX MAXPATHLEN
19438 # define PATH_MAX 1024
19440 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19442 # define PATH_MAX 260
19447 # define AT_FDCWD 0
19449 #ifdef ENAMETOOLONG
19450 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
19452 # define is_ENAMETOOLONG(x) 0
19455 /* Use the getcwd function, not any macro. */
19458 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19462 # define S_IRWXU 0700
19465 /* The length of this name must be 8. */
19466 #define DIR_NAME "confdir3"
19467 #define DIR_NAME_LEN 8
19468 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
19470 /* The length of "../". */
19471 #define DOTDOTSLASH_LEN 3
19473 /* Leftover bytes in the buffer, to work around library or OS bugs. */
19474 #define BUF_SLOP 20
19480 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
19481 at least not on a local file system. And if we were to start worrying
19482 about remote file systems, we'd have to enable the wrapper function
19483 all of the time, just to be safe. That's not worth the cost. */
19485 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
19486 - DIR_NAME_SIZE - BUF_SLOP) \
19488 /* FIXME: Assuming there's a system for which this is true,
19489 this should be done in a compile test. */
19492 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
19493 + DIR_NAME_SIZE + BUF_SLOP];
19494 char *cwd = getcwd (buf, PATH_MAX);
19495 size_t initial_cwd_len;
19498 size_t n_chdirs = 0;
19503 cwd_len = initial_cwd_len = strlen (cwd);
19507 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
19510 cwd_len += DIR_NAME_SIZE;
19511 /* If mkdir or chdir fails, it could be that this system cannot create
19512 any file with an absolute name longer than PATH_MAX, such as cygwin.
19513 If so, leave fail as 0, because the current working directory can't
19514 be too long for getcwd if it can't even be created. For other
19515 errors, be pessimistic and consider that as a failure, too. */
19516 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
19518 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19523 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
19527 c = getcwd (buf, PATH_MAX);
19528 if (!c && errno == ENOENT)
19538 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19544 /* Our replacement needs to be able to stat() long ../../paths,
19545 so generate a path larger than PATH_MAX to check,
19546 avoiding the replacement if we can't stat(). */
19547 c = getcwd (buf, cwd_len + 1);
19548 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
19555 if (dotdot_max <= cwd_len - initial_cwd_len)
19557 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
19559 c = getcwd (buf, cwd_len + 1);
19562 if (! (errno == ERANGE || errno == ENOENT
19563 || is_ENAMETOOLONG (errno)))
19568 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
19576 if (c && strlen (c) != cwd_len)
19584 /* Leaving behind such a deep directory is not polite.
19585 So clean up here, right away, even though the driving
19586 shell script would also clean up. */
19590 /* Try rmdir first, in case the chdir failed. */
19592 for (i = 0; i <= n_chdirs; i++)
19594 if (chdir ("..") < 0)
19596 if (rmdir (DIR_NAME) != 0)
19606 if ac_fn_c_try_run
"$LINENO"; then :
19607 gl_cv_func_getcwd_path_max
=yes
19610 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
19611 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
19612 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
19613 *) gl_cv_func_getcwd_path_max
=no
;;
19616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
19623 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
19625 case "$gl_cv_func_getcwd_null" in
19643 for ac_func
in getpagesize
19645 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19646 if test "x$ac_cv_func_getpagesize" = xyes
; then :
19647 cat >>confdefs.h
<<_ACEOF
19648 #define HAVE_GETPAGESIZE 1
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
19655 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
19656 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
19657 $as_echo_n "(cached) " >&6
19659 # Remove any remnants of a previous test.
19660 rm -rf confdir-14B---
19661 # Arrange for deletion of the temporary directory this test creates.
19662 ac_clean_files
="$ac_clean_files confdir-14B---"
19663 if test "$cross_compiling" = yes; then :
19664 gl_cv_func_getcwd_abort_bug
=yes
19666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h. */
19670 #include <stdlib.h>
19672 # include <unistd.h>
19673 #else /* on Windows with MSVC */
19674 # include <direct.h>
19676 #include <string.h>
19677 #include <sys/stat.h>
19680 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19682 # include <unistd.h>
19684 #include <limits.h>
19685 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19686 # include <sys/param.h>
19688 #if !defined PATH_MAX && defined MAXPATHLEN
19689 # define PATH_MAX MAXPATHLEN
19693 # define PATH_MAX 1024
19695 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19697 # define PATH_MAX 260
19701 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19705 # define S_IRWXU 0700
19708 /* FIXME: skip the run-test altogether on systems without getpagesize. */
19709 #if ! HAVE_GETPAGESIZE
19710 # define getpagesize() 0
19713 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
19714 the 16kB pagesize on ia64 linux. Those conditions make the code below
19715 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
19716 #define TARGET_LEN (5 * 1024)
19722 size_t initial_cwd_len;
19725 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
19726 this relatively expensive and invasive test if that's not true. */
19728 int bug_possible = PATH_MAX < getpagesize ();
19730 int bug_possible = 0;
19732 if (! bug_possible)
19735 cwd = getcwd (NULL, 0);
19739 initial_cwd_len = strlen (cwd);
19744 static char const dir_name[] = "confdir-14B---";
19745 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
19746 / sizeof dir_name);
19748 for (d = 0; d < desired_depth; d++)
19750 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
19752 if (! (errno == ERANGE || errno == ENAMETOOLONG
19753 || errno == ENOENT))
19754 fail = 3; /* Unable to construct deep hierarchy. */
19759 /* If libc has the bug in question, this invocation of getcwd
19760 results in a failed assertion. */
19761 cwd = getcwd (NULL, 0);
19763 fail = 4; /* getcwd didn't assert, but it failed for a long name
19764 where the answer could have been learned. */
19767 /* Call rmdir first, in case the above chdir failed. */
19771 if (chdir ("..") < 0)
19784 if ac_fn_c_try_run
"$LINENO"; then :
19785 gl_cv_func_getcwd_abort_bug
=no
19788 if test $ret -ge 128 ||
test $ret = 4; then
19789 gl_cv_func_getcwd_abort_bug
=yes
19791 gl_cv_func_getcwd_abort_bug
=no
19794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19795 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
19801 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
19802 if test $gl_cv_func_getcwd_abort_bug = yes; then :
19810 case "$gl_cv_func_getcwd_path_max" in
19811 "no"|
"no, it has the AIX bug") ;;
19814 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
19818 case "$gl_cv_func_getcwd_path_max" in
19819 "no, but it is partly working")
19821 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
19824 "yes, but with shorter paths")
19826 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
19831 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
19832 ||
test $gl_cv_func_getcwd_posix_signature != yes \
19833 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
19834 ||
test $gl_abort_bug = yes; then
19838 if test $REPLACE_GETCWD = 1; then
19847 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
19857 cat >>confdefs.h
<<_ACEOF
19858 #define GNULIB_GETCWD 1
19873 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
19882 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
19889 if test $REPLACE_GETCWD = 1; then
19898 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
19912 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
19933 if test $ac_cv_func_getdtablesize = yes &&
19934 test $ac_cv_have_decl_getdtablesize = yes; then
19935 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
19936 # up to an unchangeable hard limit; all other platforms correctly
19937 # require setrlimit before getdtablesize() can report a larger value.
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
19939 $as_echo_n "checking whether getdtablesize works... " >&6; }
19940 if ${gl_cv_func_getdtablesize_works+:} false
; then :
19941 $as_echo_n "(cached) " >&6
19943 if test "$cross_compiling" = yes; then :
19945 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
19946 gl_cv_func_getdtablesize_works
="guessing no" ;;
19947 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
19950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19951 /* end confdefs.h. */
19953 #include <unistd.h>
19957 int size = getdtablesize();
19958 if (dup2 (0, getdtablesize()) != -1)
19960 if (size != getdtablesize())
19967 if ac_fn_c_try_run
"$LINENO"; then :
19968 gl_cv_func_getdtablesize_works
=yes
19970 gl_cv_func_getdtablesize_works
=no
19972 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19973 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
19979 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
19980 case "$gl_cv_func_getdtablesize_works" in
19982 *) REPLACE_GETDTABLESIZE
=1 ;;
19985 HAVE_GETDTABLESIZE
=0
19988 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
19997 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
20006 GNULIB_GETDTABLESIZE
=1
20012 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
20028 if test $ac_cv_have_decl_getlogin_r = no
; then
20029 HAVE_DECL_GETLOGIN_R
=0
20039 if test $ac_cv_func_getlogin_r = no
; then
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
20045 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
20046 if ${gl_cv_func_getlogin_r_works+:} false
; then :
20047 $as_echo_n "(cached) " >&6
20051 # Guess no on OSF/1.
20052 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
20053 # Guess yes otherwise.
20054 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
20056 if test "$cross_compiling" = yes; then :
20059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20062 #include <stddef.h>
20063 #include <unistd.h>
20064 #if !HAVE_DECL_GETLOGIN_R
20066 # ifdef __cplusplus
20069 int getlogin_r (char *, size_t);
20077 if (getlogin_r (buf, 0) == 0)
20079 if (getlogin_r (buf, 1) == 0)
20084 if ac_fn_c_try_run
"$LINENO"; then :
20085 gl_cv_func_getlogin_r_works
=yes
20088 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
20092 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20093 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
20099 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
20100 case "$gl_cv_func_getlogin_r_works" in
20102 *) REPLACE_GETLOGIN_R
=1 ;;
20106 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
20115 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
20132 GNULIB_GETLOGIN_R
=1
20138 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
20155 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20157 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20163 cat >>confdefs.h
<<_ACEOF
20164 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20166 if test $ac_have_decl = 1; then :
20170 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20172 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20178 cat >>confdefs.h
<<_ACEOF
20179 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20181 if test $ac_have_decl = 1; then :
20185 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
20187 if test "x$ac_cv_have_decl___argv" = xyes
; then :
20193 cat >>confdefs.h
<<_ACEOF
20194 #define HAVE_DECL___ARGV $ac_have_decl
20196 if test $ac_have_decl = 1; then :
20201 # Incur the cost of this test only if none of the above worked.
20202 if test $ac_found = 0; then
20203 # On OpenBSD 5.1, using the global __progname variable appears to be
20204 # the only way to implement getprogname.
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
20206 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
20207 if ${gl_cv_var___progname+:} false
; then :
20208 $as_echo_n "(cached) " >&6
20211 gl_cv_var___progname
=
20212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h. */
20214 extern char *__progname;
20218 return *__progname;
20224 if ac_fn_c_try_link
"$LINENO"; then :
20225 gl_cv_var___progname
=yes
20228 rm -f core conftest.err conftest.
$ac_objext \
20229 conftest
$ac_exeext conftest.
$ac_ext
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
20234 $as_echo "$gl_cv_var___progname" >&6; }
20235 if test "$gl_cv_var___progname" = yes; then
20237 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
20256 gl_gettimeofday_timezone
=void
20257 if test $ac_cv_func_gettimeofday != yes; then
20258 HAVE_GETTIMEOFDAY
=0
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20264 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20265 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
20266 $as_echo_n "(cached) " >&6
20268 if test "$cross_compiling" = yes; then :
20269 # When cross-compiling:
20271 # Guess all is fine on glibc systems.
20272 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20273 # If we don't know, assume the worst.
20274 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
20278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20279 /* end confdefs.h. */
20280 #include <string.h>
20281 #include <sys/time.h>
20283 #include <stdlib.h>
20291 struct tm saved_lt;
20293 lt = localtime (&t);
20295 gettimeofday (&tv, NULL);
20296 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20302 if ac_fn_c_try_run
"$LINENO"; then :
20303 gl_cv_func_gettimeofday_clobber
=no
20305 gl_cv_func_gettimeofday_clobber
=yes
20307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20313 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20315 case "$gl_cv_func_gettimeofday_clobber" in
20317 REPLACE_GETTIMEOFDAY
=1
20320 REPLACE_LOCALTIME
=1
20323 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20329 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20330 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
20331 $as_echo_n "(cached) " >&6
20333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20334 /* end confdefs.h. */
20335 #include <sys/time.h>
20337 int gettimeofday (struct timeval *restrict, void *restrict);
20342 /* glibc uses struct timezone * rather than the POSIX void *
20343 if _GNU_SOURCE is defined. However, since the only portable
20344 use of gettimeofday uses NULL as the second parameter, and
20345 since the glibc definition is actually more typesafe, it is
20346 not worth wrapping this to get a compliant signature. */
20347 int (*f) (struct timeval *restrict, void *restrict)
20350 return !(x | c.tv_sec | c.tv_usec);
20356 if ac_fn_c_try_compile
"$LINENO"; then :
20357 gl_cv_func_gettimeofday_posix_signature
=yes
20359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20360 /* end confdefs.h. */
20361 #include <sys/time.h>
20362 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
20372 if ac_fn_c_try_compile
"$LINENO"; then :
20373 gl_cv_func_gettimeofday_posix_signature
=almost
20375 gl_cv_func_gettimeofday_posix_signature
=no
20377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
20382 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
20383 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
20384 gl_gettimeofday_timezone
='struct timezone'
20385 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
20386 REPLACE_GETTIMEOFDAY
=1
20388 if test $REPLACE_STRUCT_TIMEVAL = 1; then
20389 REPLACE_GETTIMEOFDAY
=1
20394 cat >>confdefs.h
<<_ACEOF
20395 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
20399 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
20408 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
20411 for ac_header
in sys
/timeb.h
20413 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
20414 if test "x$ac_cv_header_sys_timeb_h" = xyes
; then :
20415 cat >>confdefs.h
<<_ACEOF
20416 #define HAVE_SYS_TIMEB_H 1
20423 for ac_func
in _ftime
20425 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
20426 if test "x$ac_cv_func__ftime" = xyes
; then :
20427 cat >>confdefs.h
<<_ACEOF
20428 #define HAVE__FTIME 1
20441 GNULIB_GETTIMEOFDAY
=1
20447 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
20452 for ac_header
in glob.h
20454 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
20455 if test "x$ac_cv_header_glob_h" = xyes
; then :
20456 cat >>confdefs.h
<<_ACEOF
20457 #define HAVE_GLOB_H 1
20467 if test -z "$GLOB_H"; then
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
20469 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
20470 if ${gl_cv_gnu_glob_interface_version_1+:} false
; then :
20471 $as_echo_n "(cached) " >&6
20473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20474 /* end confdefs.h. */
20475 #include <gnu-versions.h>
20476 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
20478 if ac_fn_c_try_compile
"$LINENO"; then :
20479 gl_cv_gnu_glob_interface_version_1
=yes
20481 gl_cv_gnu_glob_interface_version_1
=no
20483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
20486 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
20488 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
20493 if test -z "$GLOB_H"; then
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
20495 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
20496 if ${gl_cv_glob_lists_symlinks+:} false
; then :
20497 $as_echo_n "(cached) " >&6
20499 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
20500 gl_cv_glob_lists_symlinks
=maybe
20502 # If we can't make a symlink, then we cannot test this issue. Be
20503 # pessimistic about this.
20504 gl_cv_glob_lists_symlinks
=no
20507 if test $gl_cv_glob_lists_symlinks = maybe
; then
20508 if test "$cross_compiling" = yes; then :
20509 gl_cv_glob_lists_symlinks
=no
20511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20512 /* end confdefs.h. */
20514 #include <stddef.h>
20520 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
20525 if ac_fn_c_try_run
"$LINENO"; then :
20526 gl_cv_glob_lists_symlinks
=yes
20528 gl_cv_glob_lists_symlinks
=no
20530 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20531 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
20537 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
20539 if test $gl_cv_glob_lists_symlinks = no
; then
20544 rm -f conf$$
-globtest
20547 if test -n "$GLOB_H"; then
20548 GL_GENERATE_GLOB_H_TRUE
=
20549 GL_GENERATE_GLOB_H_FALSE
='#'
20551 GL_GENERATE_GLOB_H_TRUE
='#'
20552 GL_GENERATE_GLOB_H_FALSE
=
20556 if test -n "$GLOB_H"; then
20565 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
20577 if test $ac_cv_header_sys_cdefs_h = yes; then
20619 if test $ac_cv_header_sys_socket_h != yes; then
20620 for ac_header
in winsock2.h
20622 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20623 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
20624 cat >>confdefs.h
<<_ACEOF
20625 #define HAVE_WINSOCK2_H 1
20633 if test "$ac_cv_header_winsock2_h" = yes; then
20635 UNISTD_H_HAVE_WINSOCK2_H
=1
20636 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
20642 if test $HAVE_WINSOCK2_H = 1; then
20643 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
20645 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
20651 cat >>confdefs.h
<<_ACEOF
20652 #define HAVE_DECL_INET_NTOP $ac_have_decl
20655 if test $ac_cv_have_decl_inet_ntop = yes; then
20656 REPLACE_INET_NTOP
=1
20657 INET_NTOP_LIB
="-lws2_32"
20659 HAVE_DECL_INET_NTOP
=0
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
20665 $as_echo_n "checking for library containing inet_ntop... " >&6; }
20666 if ${ac_cv_search_inet_ntop+:} false
; then :
20667 $as_echo_n "(cached) " >&6
20669 ac_func_search_save_LIBS
=$LIBS
20670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20671 /* end confdefs.h. */
20673 /* Override any GCC internal prototype to avoid an error.
20674 Use char because int might match the return type of a GCC
20675 builtin and then its argument prototype would still apply. */
20683 return inet_ntop ();
20688 for ac_lib
in '' nsl resolv
; do
20689 if test -z "$ac_lib"; then
20690 ac_res
="none required"
20693 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20695 if ac_fn_c_try_link
"$LINENO"; then :
20696 ac_cv_search_inet_ntop
=$ac_res
20698 rm -f core conftest.err conftest.
$ac_objext \
20700 if ${ac_cv_search_inet_ntop+:} false
; then :
20704 if ${ac_cv_search_inet_ntop+:} false
; then :
20707 ac_cv_search_inet_ntop
=no
20709 rm conftest.
$ac_ext
20710 LIBS
=$ac_func_search_save_LIBS
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
20713 $as_echo "$ac_cv_search_inet_ntop" >&6; }
20714 ac_res
=$ac_cv_search_inet_ntop
20715 if test "$ac_res" != no
; then :
20716 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20719 for ac_func
in inet_ntop
20721 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20722 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
20723 cat >>confdefs.h
<<_ACEOF
20724 #define HAVE_INET_NTOP 1
20730 if test $ac_cv_func_inet_ntop = no
; then
20738 if test "$ac_cv_search_inet_ntop" != "no" \
20739 && test "$ac_cv_search_inet_ntop" != "none required"; then
20740 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
20750 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
20752 # include <netdb.h>
20756 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
20762 cat >>confdefs.h
<<_ACEOF
20763 #define HAVE_DECL_INET_NTOP $ac_have_decl
20766 if test $ac_cv_have_decl_inet_ntop = no
; then
20767 HAVE_DECL_INET_NTOP
=0
20772 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
20781 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
20803 if test -n "$STDINT_H"; then
20804 PRIPTR_PREFIX
='"l"'
20806 for glpfx
in '' l ll I64
; do
20808 '') gltype1
='int';;
20809 l
) gltype1
='long int';;
20810 ll
) gltype1
='long long int';;
20811 I64
) gltype1
='__int64';;
20813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20814 /* end confdefs.h. */
20815 #include <stdint.h>
20816 extern intptr_t foo;
20817 extern $gltype1 foo;
20826 if ac_fn_c_try_compile
"$LINENO"; then :
20827 PRIPTR_PREFIX
='"'$glpfx'"'
20829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20830 test -n "$PRIPTR_PREFIX" && break
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
20837 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
20838 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
20839 $as_echo_n "(cached) " >&6
20841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20842 /* end confdefs.h. */
20843 /* Work also in C++ mode. */
20844 #define __STDC_LIMIT_MACROS 1
20846 /* Work if build is not clean. */
20847 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20849 #include <limits.h>
20851 #include <stdint.h>
20854 #if defined INT32_MAX && defined INTMAX_MAX
20855 #define CONDITION (INT32_MAX < INTMAX_MAX)
20856 #elif HAVE_LONG_LONG_INT
20857 #define CONDITION (sizeof (int) < sizeof (long long int))
20859 #define CONDITION 0
20861 int test[CONDITION ? 1 : -1];
20870 if ac_fn_c_try_compile
"$LINENO"; then :
20871 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
20873 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
20875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
20878 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
20879 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
20880 INT32_MAX_LT_INTMAX_MAX
=1;
20882 INT32_MAX_LT_INTMAX_MAX
=0;
20886 if test $APPLE_UNIVERSAL_BUILD = 0; then
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
20889 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
20890 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
20891 $as_echo_n "(cached) " >&6
20893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h. */
20895 /* Work also in C++ mode. */
20896 #define __STDC_LIMIT_MACROS 1
20898 /* Work if build is not clean. */
20899 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20901 #include <limits.h>
20903 #include <stdint.h>
20906 #if defined INT64_MAX
20907 #define CONDITION (INT64_MAX == LONG_MAX)
20908 #elif HAVE_LONG_LONG_INT
20909 #define CONDITION (sizeof (long long int) == sizeof (long int))
20911 #define CONDITION 0
20913 int test[CONDITION ? 1 : -1];
20922 if ac_fn_c_try_compile
"$LINENO"; then :
20923 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
20925 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
20927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
20930 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
20931 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
20932 INT64_MAX_EQ_LONG_MAX
=1;
20934 INT64_MAX_EQ_LONG_MAX
=0;
20939 INT64_MAX_EQ_LONG_MAX
=-1
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
20943 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
20944 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
20945 $as_echo_n "(cached) " >&6
20947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20948 /* end confdefs.h. */
20949 /* Work also in C++ mode. */
20950 #define __STDC_LIMIT_MACROS 1
20952 /* Work if build is not clean. */
20953 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20955 #include <limits.h>
20957 #include <stdint.h>
20960 #if defined UINT32_MAX && defined UINTMAX_MAX
20961 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
20962 #elif HAVE_LONG_LONG_INT
20963 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
20965 #define CONDITION 0
20967 int test[CONDITION ? 1 : -1];
20976 if ac_fn_c_try_compile
"$LINENO"; then :
20977 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
20979 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
20981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
20984 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
20985 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
20986 UINT32_MAX_LT_UINTMAX_MAX
=1;
20988 UINT32_MAX_LT_UINTMAX_MAX
=0;
20992 if test $APPLE_UNIVERSAL_BUILD = 0; then
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
20995 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
20996 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
20997 $as_echo_n "(cached) " >&6
20999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21000 /* end confdefs.h. */
21001 /* Work also in C++ mode. */
21002 #define __STDC_LIMIT_MACROS 1
21004 /* Work if build is not clean. */
21005 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21007 #include <limits.h>
21009 #include <stdint.h>
21012 #if defined UINT64_MAX
21013 #define CONDITION (UINT64_MAX == ULONG_MAX)
21014 #elif HAVE_LONG_LONG_INT
21015 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
21017 #define CONDITION 0
21019 int test[CONDITION ? 1 : -1];
21028 if ac_fn_c_try_compile
"$LINENO"; then :
21029 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
21031 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
21033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
21036 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
21037 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
21038 UINT64_MAX_EQ_ULONG_MAX
=1;
21040 UINT64_MAX_EQ_ULONG_MAX
=0;
21045 UINT64_MAX_EQ_ULONG_MAX
=-1
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
21053 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
21054 if ${gl_cv_func_isnand_no_libm+:} false
; then :
21055 $as_echo_n "(cached) " >&6
21058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21059 /* end confdefs.h. */
21063 # define isnand(x) __builtin_isnan ((double)(x))
21066 # define isnand(x) isnan ((double)(x))
21077 if ac_fn_c_try_link
"$LINENO"; then :
21078 gl_cv_func_isnand_no_libm
=yes
21080 gl_cv_func_isnand_no_libm
=no
21082 rm -f core conftest.err conftest.
$ac_objext \
21083 conftest
$ac_exeext conftest.
$ac_ext
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
21087 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
21089 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
21090 if test $gl_cv_func_isnand_no_libm = yes; then
21092 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
21096 if test $gl_func_isnand_no_libm != yes; then
21105 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
21114 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
21115 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
21116 $as_echo_n "(cached) " >&6
21119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21124 # define isnanl(x) __builtin_isnanl ((long double)(x))
21125 #elif defined isnan
21127 # define isnanl(x) isnan ((long double)(x))
21138 if ac_fn_c_try_link
"$LINENO"; then :
21139 gl_cv_func_isnanl_no_libm
=yes
21141 gl_cv_func_isnanl_no_libm
=no
21143 rm -f core conftest.err conftest.
$ac_objext \
21144 conftest
$ac_exeext conftest.
$ac_ext
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
21148 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
21150 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
21151 if test $gl_func_isnanl_no_libm = yes; then
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
21157 $as_echo_n "checking whether isnanl works... " >&6; }
21158 if ${gl_cv_func_isnanl_works+:} false
; then :
21159 $as_echo_n "(cached) " >&6
21162 if test "$cross_compiling" = yes; then :
21163 gl_cv_func_isnanl_works
="guessing yes"
21165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21166 /* end confdefs.h. */
21169 #include <limits.h>
21173 # define isnanl(x) __builtin_isnanl ((long double)(x))
21174 #elif defined isnan
21176 # define isnanl(x) isnan ((long double)(x))
21179 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21180 typedef union { unsigned int word[NWORDS]; long double value; }
21181 memory_long_double;
21182 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
21183 runtime type conversion. */
21185 static long double NaNl ()
21188 return zero / zero;
21191 # define NaNl() (0.0L / 0.0L)
21197 if (!isnanl (NaNl ()))
21201 memory_long_double m;
21204 /* The isnanl function should be immune against changes in the sign bit and
21205 in the mantissa bits. The xor operation twiddles a bit that can only be
21206 a sign bit or a mantissa bit (since the exponent never extends to
21209 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
21210 for (i = 0; i < NWORDS; i++)
21212 if (!isnanl (m.value))
21216 #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
21217 /* Representation of an 80-bit 'long double' as an initializer for a sequence
21218 of 'unsigned int' words. */
21219 # ifdef WORDS_BIGENDIAN
21220 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21221 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
21222 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
21223 (unsigned int) (mantlo) << 16 \
21226 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21227 { mantlo, manthi, exponent }
21230 static memory_long_double x =
21231 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
21232 if (!isnanl (x.value))
21236 /* Signalling NaN. */
21237 static memory_long_double x =
21238 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
21239 if (!isnanl (x.value))
21242 /* isnanl should return something even for noncanonical values. */
21243 { /* Pseudo-NaN. */
21244 static memory_long_double x =
21245 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
21246 if (isnanl (x.value) && !isnanl (x.value))
21249 { /* Pseudo-Infinity. */
21250 static memory_long_double x =
21251 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
21252 if (isnanl (x.value) && !isnanl (x.value))
21255 { /* Pseudo-Zero. */
21256 static memory_long_double x =
21257 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
21258 if (isnanl (x.value) && !isnanl (x.value))
21261 { /* Unnormalized number. */
21262 static memory_long_double x =
21263 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
21264 if (isnanl (x.value) && !isnanl (x.value))
21267 { /* Pseudo-Denormal. */
21268 static memory_long_double x =
21269 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
21270 if (isnanl (x.value) && !isnanl (x.value))
21278 if ac_fn_c_try_run
"$LINENO"; then :
21279 gl_cv_func_isnanl_works
=yes
21281 gl_cv_func_isnanl_works
=no
21283 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21284 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
21290 $as_echo "$gl_cv_func_isnanl_works" >&6; }
21292 case "$gl_cv_func_isnanl_works" in
21294 *) gl_func_isnanl_no_libm
=no
;;
21297 if test $gl_func_isnanl_no_libm = yes; then
21299 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
21303 if test $gl_func_isnanl_no_libm != yes; then
21312 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
21318 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
21319 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
21320 $as_echo_n "(cached) " >&6
21323 if test "$cross_compiling" = yes; then :
21325 gl_cv_cc_long_double_expbit0
="unknown"
21328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21329 /* end confdefs.h. */
21332 #include <stddef.h>
21334 #include <string.h>
21336 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21337 typedef union { long double value; unsigned int word[NWORDS]; }
21338 memory_long_double;
21339 static unsigned int ored_words[NWORDS];
21340 static unsigned int anded_words[NWORDS];
21341 static void add_to_ored_words (long double x)
21343 memory_long_double m;
21345 /* Clear it first, in case
21346 sizeof (long double) < sizeof (memory_long_double). */
21347 memset (&m, 0, sizeof (memory_long_double));
21349 for (i = 0; i < NWORDS; i++)
21351 ored_words[i] |= m.word[i];
21352 anded_words[i] &= m.word[i];
21358 FILE *fp = fopen ("conftest.out", "w");
21361 for (j = 0; j < NWORDS; j++)
21362 anded_words[j] = ~ (unsigned int) 0;
21363 add_to_ored_words (0.25L);
21364 add_to_ored_words (0.5L);
21365 add_to_ored_words (1.0L);
21366 add_to_ored_words (2.0L);
21367 add_to_ored_words (4.0L);
21368 /* Remove bits that are common (e.g. if representation of the first mantissa
21369 bit is explicit). */
21370 for (j = 0; j < NWORDS; j++)
21371 ored_words[j] &= ~anded_words[j];
21372 /* Now find the nonzero word. */
21373 for (j = 0; j < NWORDS; j++)
21374 if (ored_words[j] != 0)
21379 for (i = j + 1; i < NWORDS; i++)
21380 if (ored_words[i] != 0)
21382 fprintf (fp, "unknown");
21383 return (fclose (fp) != 0);
21386 if ((ored_words[j] >> i) & 1)
21388 fprintf (fp, "word %d bit %d", (int) j, (int) i);
21389 return (fclose (fp) != 0);
21392 fprintf (fp, "unknown");
21393 return (fclose (fp) != 0);
21397 if ac_fn_c_try_run
"$LINENO"; then :
21398 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
21400 gl_cv_cc_long_double_expbit0
="unknown"
21402 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21403 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
21410 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
21411 case "$gl_cv_cc_long_double_expbit0" in
21413 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21414 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
21416 cat >>confdefs.h
<<_ACEOF
21417 #define LDBL_EXPBIT0_WORD $word
21421 cat >>confdefs.h
<<_ACEOF
21422 #define LDBL_EXPBIT0_BIT $bit
21447 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
21451 if test "$gl_threads_api" = posix
; then
21452 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21453 # pthread_rwlock_* functions.
21454 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21456 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
21458 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21462 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h. */
21466 #include <pthread.h>
21471 #if __FreeBSD__ == 4
21472 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21473 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
21474 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
21475 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
21477 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21485 if ac_fn_c_try_compile
"$LINENO"; then :
21487 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21496 cat >>confdefs.h
<<_ACEOF
21497 #define GNULIB_LOCK 1
21510 if test $ac_cv_func_lstat = yes; then
21512 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21521 if test $REPLACE_LSTAT = 1; then
21530 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21545 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
21552 if test $gl_cv_func_malloc_posix = yes; then
21554 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21560 if test $REPLACE_MALLOC = 1; then
21569 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
21577 GNULIB_MALLOC_POSIX
=1
21583 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21608 if test $gl_cv_have_include_next = yes; then
21609 gl_cv_next_math_h
='<'math.h
'>'
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
21612 $as_echo_n "checking absolute name of <math.h>... " >&6; }
21613 if ${gl_cv_next_math_h+:} false
; then :
21614 $as_echo_n "(cached) " >&6
21617 if test $ac_cv_header_math_h = yes; then
21622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21623 /* end confdefs.h. */
21627 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21628 *) gl_absname_cpp
="$ac_cpp" ;;
21633 gl_dirsep_regex
='[/\\]'
21636 gl_dirsep_regex
='\/'
21639 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21640 gl_header_literal_regex
=`echo 'math.h' \
21641 | sed -e "$gl_make_literal_regex_sed"`
21642 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21643 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21649 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21650 sed -n "$gl_absolute_header_sed"`
21652 gl_header
=$gl_cv_absolute_math_h
21653 gl_cv_next_math_h
='"'$gl_header'"'
21655 gl_cv_next_math_h
='<'math.h
'>'
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
21661 $as_echo "$gl_cv_next_math_h" >&6; }
21663 NEXT_MATH_H
=$gl_cv_next_math_h
21665 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21666 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21667 gl_next_as_first_directive
='<'math.h
'>'
21669 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21670 gl_next_as_first_directive
=$gl_cv_next_math_h
21672 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
21679 $as_echo_n "checking whether NAN macro works... " >&6; }
21680 if ${gl_cv_header_math_nan_works+:} false
; then :
21681 $as_echo_n "(cached) " >&6
21683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h. */
21689 /* Solaris 10 has a broken definition of NAN. Other platforms
21690 fail to provide NAN, or provide it only in C99 mode; this
21691 test only needs to fail when NAN is provided but wrong. */
21701 if ac_fn_c_try_compile
"$LINENO"; then :
21702 gl_cv_header_math_nan_works
=yes
21704 gl_cv_header_math_nan_works
=no
21706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
21709 $as_echo "$gl_cv_header_math_nan_works" >&6; }
21710 if test $gl_cv_header_math_nan_works = no
; then
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
21714 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
21715 if ${gl_cv_header_math_huge_val_works+:} false
; then :
21716 $as_echo_n "(cached) " >&6
21718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h. */
21724 /* Solaris 10 has a broken definition of HUGE_VAL. */
21725 double d = HUGE_VAL;
21731 if ac_fn_c_try_compile
"$LINENO"; then :
21732 gl_cv_header_math_huge_val_works
=yes
21734 gl_cv_header_math_huge_val_works
=no
21736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
21739 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
21740 if test $gl_cv_header_math_huge_val_works = no
; then
21745 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
21746 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21748 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21749 if eval \
${$as_gl_Symbol+:} false
; then :
21750 $as_echo_n "(cached) " >&6
21752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21753 /* end confdefs.h. */
21764 if ac_fn_c_try_compile
"$LINENO"; then :
21765 eval "$as_gl_Symbol=yes"
21767 eval "$as_gl_Symbol=no"
21769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21771 eval ac_res
=\$
$as_gl_Symbol
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21773 $as_echo "$ac_res" >&6; }
21774 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
21775 cat >>confdefs.h
<<_ACEOF
21776 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21779 eval ac_cv_have_decl_
$gl_func=yes
21806 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21811 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21812 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
21813 $as_echo_n "(cached) " >&6
21817 # Guess no on AIX and OSF/1.
21818 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
21819 # Guess yes otherwise.
21820 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
21822 if test $LOCALE_JA != none
; then
21823 if test "$cross_compiling" = yes; then :
21826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21827 /* end confdefs.h. */
21829 #include <locale.h>
21830 #include <string.h>
21831 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21833 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21834 included before <wchar.h>. */
21835 #include <stddef.h>
21841 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21843 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21847 memset (&state, '\0', sizeof (mbstate_t));
21848 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21849 if (mbsinit (&state))
21855 if ac_fn_c_try_run
"$LINENO"; then :
21856 gl_cv_func_mbrtowc_incomplete_state
=yes
21858 gl_cv_func_mbrtowc_incomplete_state
=no
21860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21868 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21874 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21875 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
21876 $as_echo_n "(cached) " >&6
21880 # Guess no on Solaris 8.
21881 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
21882 # Guess yes otherwise.
21883 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
21885 if test $LOCALE_ZH_CN != none
; then
21886 if test "$cross_compiling" = yes; then :
21889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h. */
21892 #include <locale.h>
21893 #include <stdlib.h>
21894 #include <string.h>
21895 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21897 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21898 included before <wchar.h>. */
21899 #include <stddef.h>
21905 /* This fails on Solaris 8:
21906 mbrtowc returns 2, and sets wc to 0x00F0.
21907 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21908 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21910 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21914 memset (&state, '\0', sizeof (mbstate_t));
21915 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21916 && mbtowc (&wc, input + 3, 6) == 4)
21922 if ac_fn_c_try_run
"$LINENO"; then :
21923 gl_cv_func_mbrtowc_sanitycheck
=yes
21925 gl_cv_func_mbrtowc_sanitycheck
=no
21927 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21928 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21935 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21937 REPLACE_MBSTATE_T
=0
21938 case "$gl_cv_func_mbrtowc_incomplete_state" in
21940 *) REPLACE_MBSTATE_T
=1 ;;
21942 case "$gl_cv_func_mbrtowc_sanitycheck" in
21944 *) REPLACE_MBSTATE_T
=1 ;;
21947 REPLACE_MBSTATE_T
=1
21958 if test $ac_cv_func_mbrtowc = no
; then
21960 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
21961 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21963 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21964 included before <wchar.h>. */
21965 #include <stddef.h>
21971 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
21977 cat >>confdefs.h
<<_ACEOF
21978 #define HAVE_DECL_MBRTOWC $ac_have_decl
21981 if test $ac_cv_have_decl_mbrtowc = yes; then
21985 if test $REPLACE_MBSTATE_T = 1; then
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
21992 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
21993 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
21994 $as_echo_n "(cached) " >&6
21998 # Guess no on Solaris.
21999 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
22000 # Guess yes otherwise.
22001 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
22003 if test $LOCALE_FR_UTF8 != none
; then
22004 if test "$cross_compiling" = yes; then :
22007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22008 /* end confdefs.h. */
22010 #include <locale.h>
22011 #include <stdlib.h>
22012 #include <string.h>
22013 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22015 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22016 included before <wchar.h>. */
22017 #include <stddef.h>
22025 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22027 char input[] = "\303\237er";
22032 memset (&state, '\0', sizeof (mbstate_t));
22033 wc = (wchar_t) 0xBADFACE;
22034 ret = mbrtowc (&wc, input, 5, &state);
22037 if (!mbsinit (&state))
22040 memset (&state, '\0', sizeof (mbstate_t));
22041 ret = mbrtowc (NULL, input, 5, &state);
22042 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
22044 if (!mbsinit (&state))
22050 if ac_fn_c_try_run
"$LINENO"; then :
22051 gl_cv_func_mbrtowc_null_arg1
=yes
22053 gl_cv_func_mbrtowc_null_arg1
=no
22055 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22056 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
22063 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
22069 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
22070 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
22071 $as_echo_n "(cached) " >&6
22075 # Guess no on OSF/1.
22076 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
22077 # Guess yes otherwise.
22078 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
22080 if test $LOCALE_FR_UTF8 != none
; then
22081 if test "$cross_compiling" = yes; then :
22084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22085 /* end confdefs.h. */
22087 #include <locale.h>
22088 #include <string.h>
22089 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22091 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22092 included before <wchar.h>. */
22093 #include <stddef.h>
22099 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22105 memset (&state, '\0', sizeof (mbstate_t));
22106 wc = (wchar_t) 0xBADFACE;
22107 mbrtowc (&wc, NULL, 5, &state);
22108 /* Check that wc was not modified. */
22109 if (wc != (wchar_t) 0xBADFACE)
22115 if ac_fn_c_try_run
"$LINENO"; then :
22116 gl_cv_func_mbrtowc_null_arg2
=yes
22118 gl_cv_func_mbrtowc_null_arg2
=no
22120 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22121 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
22128 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
22136 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
22137 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
22138 $as_echo_n "(cached) " >&6
22142 # Guess no on HP-UX, Solaris, native Windows.
22143 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
22144 # Guess yes otherwise.
22145 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
22147 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
22148 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
22149 if test "$cross_compiling" = yes; then :
22152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22153 /* end confdefs.h. */
22155 #include <locale.h>
22156 #include <string.h>
22157 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22159 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22160 included before <wchar.h>. */
22161 #include <stddef.h>
22168 int found_some_locale = 0;
22169 /* This fails on Solaris. */
22170 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22172 char input[] = "B\303\274\303\237er"; /* "Büßer" */
22176 memset (&state, '\0', sizeof (mbstate_t));
22177 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22180 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
22183 found_some_locale = 1;
22185 /* This fails on HP-UX 11.11. */
22186 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22188 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22192 memset (&state, '\0', sizeof (mbstate_t));
22193 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22196 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
22199 found_some_locale = 1;
22201 /* This fails on native Windows. */
22202 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
22204 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
22208 memset (&state, '\0', sizeof (mbstate_t));
22209 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22212 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22215 found_some_locale = 1;
22217 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
22219 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
22223 memset (&state, '\0', sizeof (mbstate_t));
22224 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22227 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22230 found_some_locale = 1;
22232 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
22234 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
22238 memset (&state, '\0', sizeof (mbstate_t));
22239 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22242 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22245 found_some_locale = 1;
22247 return (found_some_locale ? result : 77);
22250 if ac_fn_c_try_run
"$LINENO"; then :
22251 gl_cv_func_mbrtowc_retval
=yes
22253 if test $?
!= 77; then
22254 gl_cv_func_mbrtowc_retval
=no
22258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
22266 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
22272 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
22273 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
22274 $as_echo_n "(cached) " >&6
22278 # Guess no on Solaris 8 and 9.
22279 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
22280 # Guess yes otherwise.
22281 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
22283 if test $LOCALE_ZH_CN != none
; then
22284 if test "$cross_compiling" = yes; then :
22287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22288 /* end confdefs.h. */
22290 #include <locale.h>
22291 #include <string.h>
22292 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22294 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22295 included before <wchar.h>. */
22296 #include <stddef.h>
22302 /* This fails on Solaris 8 and 9. */
22303 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22308 memset (&state, '\0', sizeof (mbstate_t));
22309 if (mbrtowc (&wc, "", 1, &state) != 0)
22315 if ac_fn_c_try_run
"$LINENO"; then :
22316 gl_cv_func_mbrtowc_nul_retval
=yes
22318 gl_cv_func_mbrtowc_nul_retval
=no
22320 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22321 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
22328 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
22333 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
22334 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
22335 $as_echo_n "(cached) " >&6
22339 # Guess no on AIX and glibc systems.
22341 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
22342 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
22344 if test "$cross_compiling" = yes; then :
22347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22348 /* end confdefs.h. */
22352 static mbstate_t mbs;
22356 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
22359 if ac_fn_c_try_run
"$LINENO"; then :
22360 gl_cv_func_mbrtowc_empty_input
=yes
22362 gl_cv_func_mbrtowc_empty_input
=no
22364 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22365 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
22371 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
22375 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
22376 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
22377 $as_echo_n "(cached) " >&6
22380 gl_cv_C_locale_sans_EILSEQ
="guessing no"
22382 if test "$cross_compiling" = yes; then :
22385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22386 /* end confdefs.h. */
22387 #include <limits.h>
22388 #include <locale.h>
22396 char *locale = setlocale (LC_ALL, "C");
22399 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
22403 mbstate_t mbs = { 0, };
22404 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
22414 if ac_fn_c_try_run
"$LINENO"; then :
22415 gl_cv_C_locale_sans_EILSEQ
=yes
22417 gl_cv_C_locale_sans_EILSEQ
=no
22419 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22420 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
22425 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
22427 case "$gl_cv_func_mbrtowc_null_arg1" in
22430 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
22435 case "$gl_cv_func_mbrtowc_null_arg2" in
22438 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
22443 case "$gl_cv_func_mbrtowc_retval" in
22446 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
22451 case "$gl_cv_func_mbrtowc_nul_retval" in
22454 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
22459 case "$gl_cv_func_mbrtowc_empty_input" in
22462 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
22467 case $gl_cv_C_locale_sans_EILSEQ in
22470 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
22478 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
22487 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
22504 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
22531 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22536 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22537 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22538 $as_echo_n "(cached) " >&6
22542 # Guess no on AIX and OSF/1.
22543 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22544 # Guess yes otherwise.
22545 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22547 if test $LOCALE_JA != none
; then
22548 if test "$cross_compiling" = yes; then :
22551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h. */
22554 #include <locale.h>
22555 #include <string.h>
22556 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22558 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22559 included before <wchar.h>. */
22560 #include <stddef.h>
22566 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22568 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22572 memset (&state, '\0', sizeof (mbstate_t));
22573 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22574 if (mbsinit (&state))
22580 if ac_fn_c_try_run
"$LINENO"; then :
22581 gl_cv_func_mbrtowc_incomplete_state
=yes
22583 gl_cv_func_mbrtowc_incomplete_state
=no
22585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22593 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22599 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22600 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22601 $as_echo_n "(cached) " >&6
22605 # Guess no on Solaris 8.
22606 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22607 # Guess yes otherwise.
22608 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22610 if test $LOCALE_ZH_CN != none
; then
22611 if test "$cross_compiling" = yes; then :
22614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22615 /* end confdefs.h. */
22617 #include <locale.h>
22618 #include <stdlib.h>
22619 #include <string.h>
22620 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22622 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22623 included before <wchar.h>. */
22624 #include <stddef.h>
22630 /* This fails on Solaris 8:
22631 mbrtowc returns 2, and sets wc to 0x00F0.
22632 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22633 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22635 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22639 memset (&state, '\0', sizeof (mbstate_t));
22640 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22641 && mbtowc (&wc, input + 3, 6) == 4)
22647 if ac_fn_c_try_run
"$LINENO"; then :
22648 gl_cv_func_mbrtowc_sanitycheck
=yes
22650 gl_cv_func_mbrtowc_sanitycheck
=no
22652 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22653 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22660 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22662 REPLACE_MBSTATE_T
=0
22663 case "$gl_cv_func_mbrtowc_incomplete_state" in
22665 *) REPLACE_MBSTATE_T
=1 ;;
22667 case "$gl_cv_func_mbrtowc_sanitycheck" in
22669 *) REPLACE_MBSTATE_T
=1 ;;
22672 REPLACE_MBSTATE_T
=1
22683 if test $ac_cv_func_mbsinit = no
; then
22685 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
22686 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22688 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22689 included before <wchar.h>. */
22690 #include <stddef.h>
22696 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
22702 cat >>confdefs.h
<<_ACEOF
22703 #define HAVE_DECL_MBSINIT $ac_have_decl
22706 if test $ac_cv_have_decl_mbsinit = yes; then
22710 if test $REPLACE_MBSTATE_T = 1; then
22714 mingw
*) REPLACE_MBSINIT
=1 ;;
22719 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
22728 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
22745 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
22771 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22776 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22777 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22778 $as_echo_n "(cached) " >&6
22782 # Guess no on AIX and OSF/1.
22783 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22784 # Guess yes otherwise.
22785 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22787 if test $LOCALE_JA != none
; then
22788 if test "$cross_compiling" = yes; then :
22791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22792 /* end confdefs.h. */
22794 #include <locale.h>
22795 #include <string.h>
22796 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22798 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22799 included before <wchar.h>. */
22800 #include <stddef.h>
22806 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22808 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22812 memset (&state, '\0', sizeof (mbstate_t));
22813 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22814 if (mbsinit (&state))
22820 if ac_fn_c_try_run
"$LINENO"; then :
22821 gl_cv_func_mbrtowc_incomplete_state
=yes
22823 gl_cv_func_mbrtowc_incomplete_state
=no
22825 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22826 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22833 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22839 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22840 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22841 $as_echo_n "(cached) " >&6
22845 # Guess no on Solaris 8.
22846 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22847 # Guess yes otherwise.
22848 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22850 if test $LOCALE_ZH_CN != none
; then
22851 if test "$cross_compiling" = yes; then :
22854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h. */
22857 #include <locale.h>
22858 #include <stdlib.h>
22859 #include <string.h>
22860 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22862 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22863 included before <wchar.h>. */
22864 #include <stddef.h>
22870 /* This fails on Solaris 8:
22871 mbrtowc returns 2, and sets wc to 0x00F0.
22872 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22873 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22875 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22879 memset (&state, '\0', sizeof (mbstate_t));
22880 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22881 && mbtowc (&wc, input + 3, 6) == 4)
22887 if ac_fn_c_try_run
"$LINENO"; then :
22888 gl_cv_func_mbrtowc_sanitycheck
=yes
22890 gl_cv_func_mbrtowc_sanitycheck
=no
22892 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22893 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22900 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22902 REPLACE_MBSTATE_T
=0
22903 case "$gl_cv_func_mbrtowc_incomplete_state" in
22905 *) REPLACE_MBSTATE_T
=1 ;;
22907 case "$gl_cv_func_mbrtowc_sanitycheck" in
22909 *) REPLACE_MBSTATE_T
=1 ;;
22912 REPLACE_MBSTATE_T
=1
22923 if test $ac_cv_func_mbsrtowcs = no
; then
22925 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
22926 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22928 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22929 included before <wchar.h>. */
22930 #include <stddef.h>
22936 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
22942 cat >>confdefs.h
<<_ACEOF
22943 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
22946 if test $ac_cv_have_decl_mbsrtowcs = yes; then
22947 REPLACE_MBSRTOWCS
=1
22950 if test $REPLACE_MBSTATE_T = 1; then
22951 REPLACE_MBSRTOWCS
=1
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
22960 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
22961 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
22962 $as_echo_n "(cached) " >&6
22966 # Guess no on HP-UX, Solaris, mingw.
22967 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
22968 # Guess yes otherwise.
22969 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
22971 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
22972 if test "$cross_compiling" = yes; then :
22975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22976 /* end confdefs.h. */
22978 #include <locale.h>
22979 #include <string.h>
22980 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22982 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22983 included before <wchar.h>. */
22984 #include <stddef.h>
22991 /* Test whether the function supports a NULL destination argument.
22992 This fails on native Windows. */
22993 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
22995 const char input[] = "\337er";
22996 const char *src = input;
22999 memset (&state, '\0', sizeof (mbstate_t));
23000 if (mbsrtowcs (NULL, &src, 1, &state) != 3
23004 /* Test whether the function works when started with a conversion state
23005 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
23006 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23008 const char input[] = "B\303\274\303\237er";
23011 memset (&state, '\0', sizeof (mbstate_t));
23012 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
23013 if (!mbsinit (&state))
23015 const char *src = input + 2;
23016 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
23020 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23022 const char input[] = "<\306\374\313\334\270\354>";
23025 memset (&state, '\0', sizeof (mbstate_t));
23026 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
23027 if (!mbsinit (&state))
23029 const char *src = input + 4;
23030 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
23034 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23036 const char input[] = "B\250\271\201\060\211\070er";
23039 memset (&state, '\0', sizeof (mbstate_t));
23040 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
23041 if (!mbsinit (&state))
23043 const char *src = input + 2;
23044 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
23051 if ac_fn_c_try_run
"$LINENO"; then :
23052 gl_cv_func_mbsrtowcs_works
=yes
23054 gl_cv_func_mbsrtowcs_works
=no
23056 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23057 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
23064 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
23066 case "$gl_cv_func_mbsrtowcs_works" in
23068 *) REPLACE_MBSRTOWCS
=1 ;;
23073 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
23082 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
23092 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
23109 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
23114 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
23123 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
23126 for ac_header
in bp-sym.h
23128 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
23129 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
23130 cat >>confdefs.h
<<_ACEOF
23131 #define HAVE_BP_SYM_H 1
23151 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
23157 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
23159 $as_echo_n "checking whether memmem works in linear time... " >&6; }
23160 if ${gl_cv_func_memmem_works_fast+:} false
; then :
23161 $as_echo_n "(cached) " >&6
23163 if test "$cross_compiling" = yes; then :
23164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23165 /* end confdefs.h. */
23167 #include <features.h>
23168 #ifdef __GNU_LIBRARY__
23169 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
23170 && !defined __UCLIBC__
23175 #include <cygwin/version.h>
23176 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
23182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23183 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23184 gl_cv_func_memmem_works_fast
="guessing yes"
23186 gl_cv_func_memmem_works_fast
="guessing no"
23192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23193 /* end confdefs.h. */
23195 #include <signal.h> /* for signal */
23196 #include <string.h> /* for memmem */
23197 #include <stdlib.h> /* for malloc */
23198 #include <unistd.h> /* for alarm */
23199 static void quit (int sig) { _exit (sig + 128); }
23206 size_t m = 1000000;
23207 char *haystack = (char *) malloc (2 * m + 1);
23208 char *needle = (char *) malloc (m + 1);
23209 /* Failure to compile this test due to missing alarm is okay,
23210 since all such platforms (mingw) also lack memmem. */
23211 signal (SIGALRM, quit);
23213 /* Check for quadratic performance. */
23214 if (haystack && needle)
23216 memset (haystack, 'A', 2 * m);
23217 haystack[2 * m] = 'B';
23218 memset (needle, 'A', m);
23220 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
23229 if ac_fn_c_try_run
"$LINENO"; then :
23230 gl_cv_func_memmem_works_fast
=yes
23232 gl_cv_func_memmem_works_fast
=no
23234 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23235 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
23241 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
23242 case "$gl_cv_func_memmem_works_fast" in
23250 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
23259 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
23266 for ac_func
in memmem
23268 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
23269 if test "x$ac_cv_func_memmem" = xyes
; then :
23270 cat >>confdefs.h
<<_ACEOF
23271 #define HAVE_MEMMEM 1
23277 if test $ac_cv_func_memmem = yes; then
23289 if test $ac_cv_have_decl_memmem = no
; then
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
23293 $as_echo_n "checking whether memmem works... " >&6; }
23294 if ${gl_cv_func_memmem_works_always+:} false
; then :
23295 $as_echo_n "(cached) " >&6
23297 if test "$cross_compiling" = yes; then :
23298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23299 /* end confdefs.h. */
23301 #ifdef __GNU_LIBRARY__
23302 #include <features.h>
23303 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
23304 || __GLIBC_MINOR__ > 12)) \
23305 || (__GLIBC__ > 2)) \
23306 || defined __UCLIBC__
23309 #elif defined __CYGWIN__
23310 #include <cygwin/version.h>
23311 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23320 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23321 gl_cv_func_memmem_works_always
="guessing yes"
23323 gl_cv_func_memmem_works_always
="guessing no"
23329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23330 /* end confdefs.h. */
23332 #include <string.h> /* for memmem */
23333 #define P "_EF_BF_BD"
23334 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
23335 #define NEEDLE P P P P P
23342 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
23344 /* Check for empty needle behavior. */
23346 const char *haystack = "AAA";
23347 if (memmem (haystack, 3, NULL, 0) != haystack)
23356 if ac_fn_c_try_run
"$LINENO"; then :
23357 gl_cv_func_memmem_works_always
=yes
23359 gl_cv_func_memmem_works_always
=no
23361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23362 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
23368 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
23369 case "$gl_cv_func_memmem_works_always" in
23378 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
23387 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
23401 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
23411 for ac_func
in mempcpy
23413 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
23414 if test "x$ac_cv_func_mempcpy" = xyes
; then :
23415 cat >>confdefs.h
<<_ACEOF
23416 #define HAVE_MEMPCPY 1
23422 if test $ac_cv_func_mempcpy = no
; then
23426 if test $HAVE_MEMPCPY = 0; then
23435 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
23452 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
23467 if test $ac_cv_have_decl_memrchr = no
; then
23468 HAVE_DECL_MEMRCHR
=0
23471 for ac_func
in memrchr
23473 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
23474 if test "x$ac_cv_func_memrchr" = xyes
; then :
23475 cat >>confdefs.h
<<_ACEOF
23476 #define HAVE_MEMRCHR 1
23483 if test $ac_cv_func_memrchr = no
; then
23492 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
23507 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
23520 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
23521 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
23522 $as_echo_n "(cached) " >&6
23524 rm -rf conftest.dir
23525 if test "$cross_compiling" = yes; then :
23527 # Guess yes on glibc systems.
23528 *-gnu*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
23529 # If we don't know, assume the worst.
23530 *) gl_cv_func_mkdir_trailing_slash_works
="guessing no" ;;
23534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23535 /* end confdefs.h. */
23537 # include <sys/types.h>
23538 # include <sys/stat.h>
23543 return mkdir ("conftest.dir/", 0700);
23548 if ac_fn_c_try_run
"$LINENO"; then :
23549 gl_cv_func_mkdir_trailing_slash_works
=yes
23551 gl_cv_func_mkdir_trailing_slash_works
=no
23553 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23554 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23557 rm -rf conftest.dir
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
23562 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
23563 case "$gl_cv_func_mkdir_trailing_slash_works" in
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
23571 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
23572 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
23573 $as_echo_n "(cached) " >&6
23575 rm -rf conftest.dir
23576 if test "$cross_compiling" = yes; then :
23578 # Guess yes on glibc systems.
23579 *-gnu*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
23580 # If we don't know, assume the worst.
23581 *) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
23585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23586 /* end confdefs.h. */
23588 # include <sys/types.h>
23589 # include <sys/stat.h>
23594 return !mkdir ("conftest.dir/./", 0700);
23599 if ac_fn_c_try_run
"$LINENO"; then :
23600 gl_cv_func_mkdir_trailing_dot_works
=yes
23602 gl_cv_func_mkdir_trailing_dot_works
=no
23604 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23605 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23608 rm -rf conftest.dir
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
23613 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
23614 case "$gl_cv_func_mkdir_trailing_dot_works" in
23619 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
23624 if test $REPLACE_MKDIR = 1; then
23633 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
23638 for ac_func
in mkdtemp
23640 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
23641 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
23642 cat >>confdefs.h
<<_ACEOF
23643 #define HAVE_MKDTEMP 1
23649 if test $ac_cv_func_mkdtemp = no
; then
23653 if test $HAVE_MKDTEMP = 0; then
23662 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
23678 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
23694 if test $ac_cv_func_mkostemp != yes; then
23698 if test $HAVE_MKOSTEMP = 0; then
23707 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
23714 cat >>confdefs.h
<<_ACEOF
23715 #define GNULIB_MKOSTEMP 1
23730 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
23735 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23744 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
23748 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23757 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
23763 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
23764 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
23765 $as_echo_n "(cached) " >&6
23768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23770 #include <netinet/in.h>
23779 if ac_fn_c_try_compile
"$LINENO"; then :
23780 gl_cv_header_netinet_in_h_selfcontained
=yes
23782 gl_cv_header_netinet_in_h_selfcontained
=no
23784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
23788 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
23789 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
23792 NETINET_IN_H
='netinet/in.h'
23793 for ac_header
in netinet
/in.h
23795 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23796 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
23797 cat >>confdefs.h
<<_ACEOF
23798 #define HAVE_NETINET_IN_H 1
23820 if test $gl_cv_have_include_next = yes; then
23821 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
23824 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
23825 if ${gl_cv_next_netinet_in_h+:} false
; then :
23826 $as_echo_n "(cached) " >&6
23829 if test $ac_cv_header_netinet_in_h = yes; then
23834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23835 /* end confdefs.h. */
23836 #include <netinet/in.h>
23839 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23840 *) gl_absname_cpp
="$ac_cpp" ;;
23845 gl_dirsep_regex
='[/\\]'
23848 gl_dirsep_regex
='\/'
23851 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23852 gl_header_literal_regex
=`echo 'netinet/in.h' \
23853 | sed -e "$gl_make_literal_regex_sed"`
23854 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23855 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23861 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23862 sed -n "$gl_absolute_header_sed"`
23864 gl_header
=$gl_cv_absolute_netinet_in_h
23865 gl_cv_next_netinet_in_h
='"'$gl_header'"'
23867 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
23873 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
23875 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
23877 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23879 gl_next_as_first_directive
='<'netinet
/in.h
'>'
23881 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23882 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
23884 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
23889 if test $ac_cv_header_netinet_in_h = yes; then
23890 HAVE_NETINET_IN_H
=1
23892 HAVE_NETINET_IN_H
=0
23897 if test -n "$NETINET_IN_H"; then
23898 GL_GENERATE_NETINET_IN_H_TRUE
=
23899 GL_GENERATE_NETINET_IN_H_FALSE
='#'
23901 GL_GENERATE_NETINET_IN_H_TRUE
='#'
23902 GL_GENERATE_NETINET_IN_H_FALSE
=
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
23922 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
23923 if ${gl_cv_func_open_slash+:} false
; then :
23924 $as_echo_n "(cached) " >&6
23926 # Assume that if we have lstat, we can also check symlinks.
23927 if test $ac_cv_func_lstat = yes; then
23929 ln -s conftest.tmp conftest.lnk
23931 if test "$cross_compiling" = yes; then :
23934 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
23935 gl_cv_func_open_slash
="guessing no" ;;
23937 gl_cv_func_open_slash
="guessing yes" ;;
23941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23942 /* end confdefs.h. */
23946 # include <unistd.h>
23952 if (open ("conftest.lnk/", O_RDONLY) != -1)
23955 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
23960 if ac_fn_c_try_run
"$LINENO"; then :
23961 gl_cv_func_open_slash
=yes
23963 gl_cv_func_open_slash
=no
23965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23966 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23969 rm -f conftest.sl conftest.tmp conftest.lnk
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
23973 $as_echo "$gl_cv_func_open_slash" >&6; }
23974 case "$gl_cv_func_open_slash" in
23977 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
23985 if test $REPLACE_OPEN = 0; then
23995 if test $ac_cv_func_fchdir = no
; then
23999 if test $HAVE_FCHDIR = 0; then
24006 if test $REPLACE_OPEN = 1; then
24015 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
24033 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
24048 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
24052 # Solaris 9 has *at functions, but uniformly mishandles trailing
24053 # slash in all of them.
24061 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
24070 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
24079 cat >>confdefs.h
<<_ACEOF
24080 #define GNULIB_OPENAT 1
24094 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
24101 for ac_func
in opendir
24103 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
24104 if test "x$ac_cv_func_opendir" = xyes
; then :
24105 cat >>confdefs.h
<<_ACEOF
24106 #define HAVE_OPENDIR 1
24112 if test $ac_cv_func_opendir = no
; then
24125 if test $ac_cv_func_fchdir = no
; then
24129 if test $HAVE_FCHDIR = 0; then
24130 if test $HAVE_OPENDIR = 1; then
24135 case $host_os,$HAVE_OPENDIR in
24137 REPLACE_OPENDIR
=1;;
24140 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
24149 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
24163 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
24180 for ac_func
in rawmemchr
24182 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
24183 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
24184 cat >>confdefs.h
<<_ACEOF
24185 #define HAVE_RAWMEMCHR 1
24191 if test $ac_cv_func_rawmemchr = no
; then
24195 if test $HAVE_RAWMEMCHR = 0; then
24204 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
24219 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
24226 for ac_func
in readdir
24228 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
24229 if test "x$ac_cv_func_readdir" = xyes
; then :
24230 cat >>confdefs.h
<<_ACEOF
24231 #define HAVE_READDIR 1
24237 if test $ac_cv_func_readdir = no
; then
24241 if test $HAVE_READDIR = 0; then
24250 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
24264 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
24277 if test $ac_cv_func_readlink = no
; then
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
24281 $as_echo_n "checking whether readlink signature is correct... " >&6; }
24282 if ${gl_cv_decl_readlink_works+:} false
; then :
24283 $as_echo_n "(cached) " >&6
24285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24286 /* end confdefs.h. */
24287 #include <unistd.h>
24288 /* Cause compilation failure if original declaration has wrong type. */
24289 ssize_t readlink (const char *, char *, size_t);
24298 if ac_fn_c_try_compile
"$LINENO"; then :
24299 gl_cv_decl_readlink_works
=yes
24301 gl_cv_decl_readlink_works
=no
24303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
24306 $as_echo "$gl_cv_decl_readlink_works" >&6; }
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
24308 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
24309 if ${gl_cv_func_readlink_works+:} false
; then :
24310 $as_echo_n "(cached) " >&6
24312 # We have readlink, so assume ln -s works.
24313 ln -s conftest.no-such conftest.link
24314 ln -s conftest.link conftest.lnk2
24315 if test "$cross_compiling" = yes; then :
24317 # Guess yes on glibc systems.
24318 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
24319 # If we don't know, assume the worst.
24320 *) gl_cv_func_readlink_works
="guessing no" ;;
24324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24325 /* end confdefs.h. */
24326 #include <unistd.h>
24332 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
24337 if ac_fn_c_try_run
"$LINENO"; then :
24338 gl_cv_func_readlink_works
=yes
24340 gl_cv_func_readlink_works
=no
24342 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24343 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24346 rm -f conftest.link conftest.lnk2
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
24349 $as_echo "$gl_cv_func_readlink_works" >&6; }
24350 case "$gl_cv_func_readlink_works" in
24352 if test "$gl_cv_decl_readlink_works" != yes; then
24358 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
24365 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
24374 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
24391 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
24398 if test $gl_cv_func_malloc_posix = yes; then
24400 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
24406 if test $REPLACE_REALLOC = 1; then
24415 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
24423 GNULIB_REALLOC_POSIX
=1
24429 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
24445 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
24446 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
24447 $as_echo_n "(cached) " >&6
24449 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
24450 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
24451 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
24452 # Assume that if we have lstat, we can also check symlinks.
24453 if test $ac_cv_func_lstat = yes; then
24454 ln -s conftest.f conftest.lnk
24456 if test "$cross_compiling" = yes; then :
24458 # Guess yes on glibc systems.
24459 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
24460 # If we don't know, assume the worst.
24461 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
24465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24466 /* end confdefs.h. */
24468 # include <stdio.h>
24469 # include <stdlib.h>
24475 if (rename ("conftest.f1", "conftest.f2/") == 0)
24477 if (rename ("conftest.d1", "conftest.d2/") != 0)
24480 if (rename ("conftest.f", "conftest.lnk/") == 0)
24489 if ac_fn_c_try_run
"$LINENO"; then :
24490 gl_cv_func_rename_slash_dst_works
=yes
24492 gl_cv_func_rename_slash_dst_works
=no
24494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24498 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
24502 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
24503 case "$gl_cv_func_rename_slash_dst_works" in
24508 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
24514 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
24515 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
24516 $as_echo_n "(cached) " >&6
24518 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
24519 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
24520 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
24521 # Assume that if we have lstat, we can also check symlinks.
24522 if test $ac_cv_func_lstat = yes; then
24523 ln -s conftest.f conftest.lnk
24525 if test "$cross_compiling" = yes; then :
24527 # Guess yes on glibc systems.
24528 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
24529 # If we don't know, assume the worst.
24530 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
24534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24535 /* end confdefs.h. */
24537 # include <stdio.h>
24538 # include <stdlib.h>
24544 if (rename ("conftest.f1/", "conftest.d3") == 0)
24546 if (rename ("conftest.d1/", "conftest.d2") != 0)
24549 if (rename ("conftest.lnk/", "conftest.f") == 0)
24558 if ac_fn_c_try_run
"$LINENO"; then :
24559 gl_cv_func_rename_slash_src_works
=yes
24561 gl_cv_func_rename_slash_src_works
=no
24563 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24564 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24567 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
24571 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
24572 case "$gl_cv_func_rename_slash_src_works" in
24577 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
24590 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
24591 if ${gl_cv_func_rename_link_works+:} false
; then :
24592 $as_echo_n "(cached) " >&6
24594 if test $ac_cv_func_link = yes; then
24595 rm -rf conftest.f conftest.f1
24596 if touch conftest.f
&& ln conftest.f conftest.f1
&&
24597 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
24598 if test "$cross_compiling" = yes; then :
24600 # Guess yes on glibc systems.
24601 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
24602 # If we don't know, assume the worst.
24603 *) gl_cv_func_rename_link_works
="guessing no" ;;
24607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24608 /* end confdefs.h. */
24610 # include <stdio.h>
24611 # include <stdlib.h>
24612 # include <unistd.h>
24618 if (rename ("conftest.f", "conftest.f1"))
24620 if (unlink ("conftest.f1"))
24622 if (rename ("conftest.f", "conftest.f"))
24624 if (rename ("conftest.f1", "conftest.f1") == 0)
24632 if ac_fn_c_try_run
"$LINENO"; then :
24633 gl_cv_func_rename_link_works
=yes
24635 gl_cv_func_rename_link_works
=no
24637 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24638 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24642 gl_cv_func_rename_link_works
="guessing no"
24644 rm -rf conftest.f conftest.f1
24646 gl_cv_func_rename_link_works
=yes
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
24651 $as_echo "$gl_cv_func_rename_link_works" >&6; }
24652 case "$gl_cv_func_rename_link_works" in
24657 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
24663 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
24664 if ${gl_cv_func_rename_dest_works+:} false
; then :
24665 $as_echo_n "(cached) " >&6
24667 rm -rf conftest.f conftest.d1 conftest.d2
24668 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
24669 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
24670 if test "$cross_compiling" = yes; then :
24672 # Guess yes on glibc systems.
24673 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
24674 # If we don't know, assume the worst.
24675 *) gl_cv_func_rename_dest_works
="guessing no" ;;
24679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24680 /* end confdefs.h. */
24682 # include <stdio.h>
24683 # include <stdlib.h>
24689 if (rename ("conftest.d1", "conftest.d2") != 0)
24691 if (rename ("conftest.d2", "conftest.f") == 0)
24699 if ac_fn_c_try_run
"$LINENO"; then :
24700 gl_cv_func_rename_dest_works
=yes
24702 gl_cv_func_rename_dest_works
=no
24704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24705 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24708 rm -rf conftest.f conftest.d1 conftest.d2
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
24712 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
24713 case "$gl_cv_func_rename_dest_works" in
24718 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
24723 if test $REPLACE_RENAME = 1; then
24732 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
24746 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
24753 for ac_func
in rewinddir
24755 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
24756 if test "x$ac_cv_func_rewinddir" = xyes
; then :
24757 cat >>confdefs.h
<<_ACEOF
24758 #define HAVE_REWINDDIR 1
24764 if test $ac_cv_func_rewinddir = no
; then
24768 if test $HAVE_REWINDDIR = 0; then
24777 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
24791 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
24805 $as_echo_n "checking whether rmdir works... " >&6; }
24806 if ${gl_cv_func_rmdir_works+:} false
; then :
24807 $as_echo_n "(cached) " >&6
24810 touch conftest.
file
24811 if test "$cross_compiling" = yes; then :
24813 # Guess yes on glibc systems.
24814 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
24815 # If we don't know, assume the worst.
24816 *) gl_cv_func_rmdir_works
="guessing no" ;;
24820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24821 /* end confdefs.h. */
24825 # include <unistd.h>
24826 #else /* on Windows with MSVC */
24827 # include <direct.h>
24834 if (!rmdir ("conftest.file/"))
24836 else if (errno != ENOTDIR)
24838 if (!rmdir ("conftest.dir/./"))
24846 if ac_fn_c_try_run
"$LINENO"; then :
24847 gl_cv_func_rmdir_works
=yes
24849 gl_cv_func_rmdir_works
=no
24851 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24852 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24855 rm -rf conftest.dir conftest.
file
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
24858 $as_echo "$gl_cv_func_rmdir_works" >&6; }
24859 case "$gl_cv_func_rmdir_works" in
24866 if test $REPLACE_RMDIR = 1; then
24875 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
24889 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
24913 if test $ac_cv_func_secure_getenv = no
; then
24914 HAVE_SECURE_GETENV
=0
24917 if test $HAVE_SECURE_GETENV = 0; then
24926 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
24929 for ac_func
in __secure_getenv
24931 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
24932 if test "x$ac_cv_func___secure_getenv" = xyes
; then :
24933 cat >>confdefs.h
<<_ACEOF
24934 #define HAVE___SECURE_GETENV 1
24940 if test $ac_cv_func___secure_getenv = no
; then
24941 for ac_func
in issetugid
24943 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
24944 if test "x$ac_cv_func_issetugid" = xyes
; then :
24945 cat >>confdefs.h
<<_ACEOF
24946 #define HAVE_ISSETUGID 1
24976 GNULIB_SECURE_GETENV
=1
24982 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
24988 if test $ac_cv_func_setenv = no
; then
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
24992 $as_echo_n "checking whether setenv validates arguments... " >&6; }
24993 if ${gl_cv_func_setenv_works+:} false
; then :
24994 $as_echo_n "(cached) " >&6
24996 if test "$cross_compiling" = yes; then :
24998 # Guess yes on glibc systems.
24999 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
25000 # If we don't know, assume the worst.
25001 *) gl_cv_func_setenv_works
="guessing no" ;;
25005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25006 /* end confdefs.h. */
25008 #include <stdlib.h>
25010 #include <string.h>
25018 if (setenv ("", "", 0) != -1)
25020 else if (errno != EINVAL)
25024 if (setenv ("a", "=", 1) != 0)
25026 else if (strcmp (getenv ("a"), "=") != 0)
25035 if ac_fn_c_try_run
"$LINENO"; then :
25036 gl_cv_func_setenv_works
=yes
25038 gl_cv_func_setenv_works
=no
25040 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25041 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
25046 $as_echo "$gl_cv_func_setenv_works" >&6; }
25047 case "$gl_cv_func_setenv_works" in
25055 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
25064 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
25078 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
25093 if test $gl_cv_have_include_next = yes; then
25094 gl_cv_next_signal_h
='<'signal.h
'>'
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25097 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25098 if ${gl_cv_next_signal_h+:} false
; then :
25099 $as_echo_n "(cached) " >&6
25104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25105 /* end confdefs.h. */
25106 #include <signal.h>
25109 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25110 *) gl_absname_cpp
="$ac_cpp" ;;
25115 gl_dirsep_regex
='[/\\]'
25118 gl_dirsep_regex
='\/'
25121 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25122 gl_header_literal_regex
=`echo 'signal.h' \
25123 | sed -e "$gl_make_literal_regex_sed"`
25124 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25125 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25131 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25132 sed -n "$gl_absolute_header_sed"`
25134 gl_header
=$gl_cv_absolute_signal_h
25135 gl_cv_next_signal_h
='"'$gl_header'"'
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25140 $as_echo "$gl_cv_next_signal_h" >&6; }
25142 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
25144 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25145 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25146 gl_next_as_first_directive
='<'signal.h
'>'
25148 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25149 gl_next_as_first_directive
=$gl_cv_next_signal_h
25151 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
25157 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25158 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25159 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25160 #include <signal.h>
25163 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
25166 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
25175 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25176 #include <signal.h>
25179 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
25182 HAVE_SIGHANDLER_T
=0
25187 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
25188 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25190 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25191 if eval \
${$as_gl_Symbol+:} false
; then :
25192 $as_echo_n "(cached) " >&6
25194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25196 #include <signal.h>
25207 if ac_fn_c_try_compile
"$LINENO"; then :
25208 eval "$as_gl_Symbol=yes"
25210 eval "$as_gl_Symbol=no"
25212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25214 eval ac_res
=\$
$as_gl_Symbol
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25216 $as_echo "$ac_res" >&6; }
25217 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25218 cat >>confdefs.h
<<_ACEOF
25219 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25222 eval ac_cv_have_decl_
$gl_func=yes
25227 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25228 /* <sys/types.h> is not needed according to POSIX, but the
25229 <sys/socket.h> in i386-unknown-freebsd4.10 and
25230 powerpc-apple-darwin5.5 required it. */
25231 #include <sys/types.h>
25232 #if HAVE_SYS_SOCKET_H
25233 # include <sys/socket.h>
25234 #elif HAVE_WS2TCPIP_H
25235 # include <ws2tcpip.h>
25239 if test "x$ac_cv_type_socklen_t" = xyes
; then :
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25243 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25244 if ${gl_cv_socklen_t_equiv+:} false
; then :
25245 $as_echo_n "(cached) " >&6
25247 # Systems have either "struct sockaddr *" or
25248 # "void *" as the second argument to getpeername
25249 gl_cv_socklen_t_equiv
=
25250 for arg2
in "struct sockaddr" void
; do
25251 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
25252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25253 /* end confdefs.h. */
25254 #include <sys/types.h>
25255 #include <sys/socket.h>
25257 int getpeername (int, $arg2 *, $t *);
25262 getpeername (0, 0, &len);
25267 if ac_fn_c_try_compile
"$LINENO"; then :
25268 gl_cv_socklen_t_equiv
="$t"
25270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25271 test "$gl_cv_socklen_t_equiv" != "" && break
25273 test "$gl_cv_socklen_t_equiv" != "" && break
25278 if test "$gl_cv_socklen_t_equiv" = ""; then
25279 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25282 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25284 cat >>confdefs.h
<<_ACEOF
25285 #define socklen_t $gl_cv_socklen_t_equiv
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25292 $as_echo_n "checking for ssize_t... " >&6; }
25293 if ${gt_cv_ssize_t+:} false
; then :
25294 $as_echo_n "(cached) " >&6
25296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25297 /* end confdefs.h. */
25298 #include <sys/types.h>
25302 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25308 if ac_fn_c_try_compile
"$LINENO"; then :
25313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25316 $as_echo "$gt_cv_ssize_t" >&6; }
25317 if test $gt_cv_ssize_t = no
; then
25319 $as_echo "#define ssize_t int" >>confdefs.h
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
25333 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
25334 if ${gl_cv_func_stat_dir_slash+:} false
; then :
25335 $as_echo_n "(cached) " >&6
25337 if test "$cross_compiling" = yes; then :
25339 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
25340 *) gl_cv_func_stat_dir_slash
="guessing yes";;
25343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25344 /* end confdefs.h. */
25345 #include <sys/stat.h>
25350 struct stat st; return stat (".", &st) != stat ("./", &st);
25355 if ac_fn_c_try_run
"$LINENO"; then :
25356 gl_cv_func_stat_dir_slash
=yes
25358 gl_cv_func_stat_dir_slash
=no
25360 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25361 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
25366 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25368 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25369 if ${gl_cv_func_stat_file_slash+:} false
; then :
25370 $as_echo_n "(cached) " >&6
25373 # Assume that if we have lstat, we can also check symlinks.
25374 if test $ac_cv_func_lstat = yes; then
25375 ln -s conftest.tmp conftest.lnk
25377 if test "$cross_compiling" = yes; then :
25379 # Guess yes on glibc systems.
25380 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
25381 # If we don't know, assume the worst.
25382 *) gl_cv_func_stat_file_slash
="guessing no" ;;
25386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25387 /* end confdefs.h. */
25388 #include <sys/stat.h>
25395 if (!stat ("conftest.tmp/", &st))
25398 if (!stat ("conftest.lnk/", &st))
25407 if ac_fn_c_try_run
"$LINENO"; then :
25408 gl_cv_func_stat_file_slash
=yes
25410 gl_cv_func_stat_file_slash
=no
25412 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25413 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25416 rm -f conftest.tmp conftest.lnk
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25419 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25420 case $gl_cv_func_stat_dir_slash in
25421 *no
) REPLACE_STAT
=1
25423 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25426 case $gl_cv_func_stat_file_slash in
25427 *no
) REPLACE_STAT
=1
25429 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25433 if test $REPLACE_STAT = 1; then
25442 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
25457 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25463 $as_echo_n "checking for working stdalign.h... " >&6; }
25464 if ${gl_cv_header_working_stdalign_h+:} false
; then :
25465 $as_echo_n "(cached) " >&6
25467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25468 /* end confdefs.h. */
25469 #include <stdalign.h>
25470 #include <stddef.h>
25472 /* Test that alignof yields a result consistent with offsetof.
25473 This catches GCC bug 52023
25474 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25476 template <class t> struct alignof_helper { char a; t b; };
25477 # define ao(type) offsetof (alignof_helper<type>, b)
25479 # define ao(type) offsetof (struct { char a; type b; }, b)
25481 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25482 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25483 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25485 /* Test _Alignas only on platforms where gnulib can help. */
25487 ((defined __cplusplus && 201103 <= __cplusplus) \
25488 || (defined __APPLE__ && defined __MACH__ \
25489 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
25491 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
25492 || __ICC || 0x5110 <= __SUNPRO_C \
25493 || 1300 <= _MSC_VER)
25494 struct alignas_test { char c; char alignas (8) alignas_8; };
25495 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
25507 if ac_fn_c_try_compile
"$LINENO"; then :
25508 gl_cv_header_working_stdalign_h
=yes
25510 gl_cv_header_working_stdalign_h
=no
25512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25515 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25517 if test $gl_cv_header_working_stdalign_h = yes; then
25520 STDALIGN_H
='stdalign.h'
25524 if test -n "$STDALIGN_H"; then
25525 GL_GENERATE_STDALIGN_H_TRUE
=
25526 GL_GENERATE_STDALIGN_H_FALSE
='#'
25528 GL_GENERATE_STDALIGN_H_TRUE
='#'
25529 GL_GENERATE_STDALIGN_H_FALSE
=
25536 # Define two additional variables used in the Makefile substitution.
25538 if test "$ac_cv_header_stdbool_h" = yes; then
25541 STDBOOL_H
='stdbool.h'
25544 if test -n "$STDBOOL_H"; then
25545 GL_GENERATE_STDBOOL_H_TRUE
=
25546 GL_GENERATE_STDBOOL_H_FALSE
='#'
25548 GL_GENERATE_STDBOOL_H_TRUE
='#'
25549 GL_GENERATE_STDBOOL_H_FALSE
=
25553 if test "$ac_cv_type__Bool" = yes; then
25564 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
25567 if test "x$ac_cv_type_max_align_t" = xyes
; then :
25570 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
25573 if test $gt_cv_c_wchar_t = no
; then
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25578 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25579 if ${gl_cv_decl_null_works+:} false
; then :
25580 $as_echo_n "(cached) " >&6
25582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h. */
25584 #include <stddef.h>
25585 int test[2 * (sizeof NULL == sizeof (void *)) -1];
25595 if ac_fn_c_try_compile
"$LINENO"; then :
25596 gl_cv_decl_null_works
=yes
25598 gl_cv_decl_null_works
=no
25600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25603 $as_echo "$gl_cv_decl_null_works" >&6; }
25604 if test $gl_cv_decl_null_works = no
; then
25609 if test -n "$STDDEF_H"; then
25610 GL_GENERATE_STDDEF_H_TRUE
=
25611 GL_GENERATE_STDDEF_H_FALSE
='#'
25613 GL_GENERATE_STDDEF_H_TRUE
='#'
25614 GL_GENERATE_STDDEF_H_FALSE
=
25617 if test -n "$STDDEF_H"; then
25626 if test $gl_cv_have_include_next = yes; then
25627 gl_cv_next_stddef_h
='<'stddef.h
'>'
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25630 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25631 if ${gl_cv_next_stddef_h+:} false
; then :
25632 $as_echo_n "(cached) " >&6
25637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25638 /* end confdefs.h. */
25639 #include <stddef.h>
25642 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25643 *) gl_absname_cpp
="$ac_cpp" ;;
25648 gl_dirsep_regex
='[/\\]'
25651 gl_dirsep_regex
='\/'
25654 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25655 gl_header_literal_regex
=`echo 'stddef.h' \
25656 | sed -e "$gl_make_literal_regex_sed"`
25657 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25658 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25664 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25665 sed -n "$gl_absolute_header_sed"`
25667 gl_header
=$gl_cv_absolute_stddef_h
25668 gl_cv_next_stddef_h
='"'$gl_header'"'
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25673 $as_echo "$gl_cv_next_stddef_h" >&6; }
25675 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
25677 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25678 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25679 gl_next_as_first_directive
='<'stddef.h
'>'
25681 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25682 gl_next_as_first_directive
=$gl_cv_next_stddef_h
25684 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
25694 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
25705 if test $gl_cv_have_include_next = yes; then
25706 gl_cv_next_stdio_h
='<'stdio.h
'>'
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25709 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25710 if ${gl_cv_next_stdio_h+:} false
; then :
25711 $as_echo_n "(cached) " >&6
25716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25717 /* end confdefs.h. */
25721 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25722 *) gl_absname_cpp
="$ac_cpp" ;;
25727 gl_dirsep_regex
='[/\\]'
25730 gl_dirsep_regex
='\/'
25733 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25734 gl_header_literal_regex
=`echo 'stdio.h' \
25735 | sed -e "$gl_make_literal_regex_sed"`
25736 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25737 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25743 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25744 sed -n "$gl_absolute_header_sed"`
25746 gl_header
=$gl_cv_absolute_stdio_h
25747 gl_cv_next_stdio_h
='"'$gl_header'"'
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
25752 $as_echo "$gl_cv_next_stdio_h" >&6; }
25754 NEXT_STDIO_H
=$gl_cv_next_stdio_h
25756 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25757 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25758 gl_next_as_first_directive
='<'stdio.h
'>'
25760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25761 gl_next_as_first_directive
=$gl_cv_next_stdio_h
25763 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
25770 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
25771 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
25772 $as_echo_n "(cached) " >&6
25774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25775 /* end confdefs.h. */
25777 #define __STDC_FORMAT_MACROS 1
25779 #include <inttypes.h>
25780 /* For non-mingw systems, compilation will trivially succeed.
25781 For mingw, compilation will succeed for older mingw (system
25782 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
25783 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
25784 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
25785 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
25796 if ac_fn_c_try_compile
"$LINENO"; then :
25797 gl_cv_func_printf_attribute_flavor
=system
25799 gl_cv_func_printf_attribute_flavor
=gnu
25801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
25804 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
25805 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
25807 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
25814 cat >>confdefs.h
<<_ACEOF
25815 #define GNULIB_FSCANF 1
25822 cat >>confdefs.h
<<_ACEOF
25823 #define GNULIB_SCANF 1
25848 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
25849 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25851 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25852 if eval \
${$as_gl_Symbol+:} false
; then :
25853 $as_echo_n "(cached) " >&6
25855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h. */
25868 if ac_fn_c_try_compile
"$LINENO"; then :
25869 eval "$as_gl_Symbol=yes"
25871 eval "$as_gl_Symbol=no"
25873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25875 eval ac_res
=\$
$as_gl_Symbol
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25877 $as_echo "$ac_res" >&6; }
25878 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25879 cat >>confdefs.h
<<_ACEOF
25880 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25883 eval ac_cv_have_decl_
$gl_func=yes
25898 if test $gl_cv_have_include_next = yes; then
25899 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
25902 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
25903 if ${gl_cv_next_stdlib_h+:} false
; then :
25904 $as_echo_n "(cached) " >&6
25909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25910 /* end confdefs.h. */
25911 #include <stdlib.h>
25914 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25915 *) gl_absname_cpp
="$ac_cpp" ;;
25920 gl_dirsep_regex
='[/\\]'
25923 gl_dirsep_regex
='\/'
25926 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25927 gl_header_literal_regex
=`echo 'stdlib.h' \
25928 | sed -e "$gl_make_literal_regex_sed"`
25929 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25930 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25936 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25937 sed -n "$gl_absolute_header_sed"`
25939 gl_header
=$gl_cv_absolute_stdlib_h
25940 gl_cv_next_stdlib_h
='"'$gl_header'"'
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
25945 $as_echo "$gl_cv_next_stdlib_h" >&6; }
25947 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
25949 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25951 gl_next_as_first_directive
='<'stdlib.h
'>'
25953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25954 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
25956 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
25963 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
25964 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25966 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25967 if eval \
${$as_gl_Symbol+:} false
; then :
25968 $as_echo_n "(cached) " >&6
25970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25971 /* end confdefs.h. */
25972 #include <stdlib.h>
25973 #if HAVE_SYS_LOADAVG_H
25974 # include <sys/loadavg.h>
25977 # include <random.h>
25989 if ac_fn_c_try_compile
"$LINENO"; then :
25990 eval "$as_gl_Symbol=yes"
25992 eval "$as_gl_Symbol=no"
25994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25996 eval ac_res
=\$
$as_gl_Symbol
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25998 $as_echo "$ac_res" >&6; }
25999 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
26000 cat >>confdefs.h
<<_ACEOF
26001 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26004 eval ac_cv_have_decl_
$gl_func=yes
26013 for ac_func
in strchrnul
26015 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
26016 if test "x$ac_cv_func_strchrnul" = xyes
; then :
26017 cat >>confdefs.h
<<_ACEOF
26018 #define HAVE_STRCHRNUL 1
26024 if test $ac_cv_func_strchrnul = no
; then
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
26028 $as_echo_n "checking whether strchrnul works... " >&6; }
26029 if ${gl_cv_func_strchrnul_works+:} false
; then :
26030 $as_echo_n "(cached) " >&6
26032 if test "$cross_compiling" = yes; then :
26033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26034 /* end confdefs.h. */
26036 #if defined __CYGWIN__
26037 #include <cygwin/version.h>
26038 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
26046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26047 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26048 gl_cv_func_strchrnul_works
="guessing yes"
26050 gl_cv_func_strchrnul_works
="guessing no"
26056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26057 /* end confdefs.h. */
26059 #include <string.h> /* for strchrnul */
26064 const char *buf = "a";
26065 return strchrnul (buf, 'b') != buf + 1;
26071 if ac_fn_c_try_run
"$LINENO"; then :
26072 gl_cv_func_strchrnul_works
=yes
26074 gl_cv_func_strchrnul_works
=no
26076 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26077 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
26083 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
26084 case "$gl_cv_func_strchrnul_works" in
26086 *) REPLACE_STRCHRNUL
=1 ;;
26090 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
26099 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
26114 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
26128 if test $ac_cv_func_strdup = yes; then
26129 if test $gl_cv_func_malloc_posix != yes; then
26140 if test $ac_cv_have_decl_strdup = no
; then
26144 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
26153 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
26168 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
26179 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
26181 $as_echo_n "checking for working strerror function... " >&6; }
26182 if ${gl_cv_func_working_strerror+:} false
; then :
26183 $as_echo_n "(cached) " >&6
26185 if test "$cross_compiling" = yes; then :
26187 # Guess yes on glibc systems.
26188 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
26189 # If we don't know, assume the worst.
26190 *) gl_cv_func_working_strerror
="guessing no" ;;
26194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26195 /* end confdefs.h. */
26196 #include <string.h>
26201 if (!*strerror (-2)) return 1;
26206 if ac_fn_c_try_run
"$LINENO"; then :
26207 gl_cv_func_working_strerror
=yes
26209 gl_cv_func_working_strerror
=no
26211 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26212 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
26218 $as_echo "$gl_cv_func_working_strerror" >&6; }
26219 case "$gl_cv_func_working_strerror" in
26226 case "$gl_cv_func_strerror_r_works" in
26227 *no
) REPLACE_STRERROR
=1 ;;
26234 if test $REPLACE_STRERROR = 1; then
26243 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
26248 cat >>confdefs.h
<<_ACEOF
26249 #define GNULIB_STRERROR 1
26264 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
26270 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
26279 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
26291 if test $ac_cv_header_sys_socket_h != yes; then
26292 for ac_header
in winsock2.h
26294 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26295 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
26296 cat >>confdefs.h
<<_ACEOF
26297 #define HAVE_WINSOCK2_H 1
26305 if test "$ac_cv_header_winsock2_h" = yes; then
26307 UNISTD_H_HAVE_WINSOCK2_H
=1
26308 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
26321 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26322 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
26323 HAVE_DECL_STRERROR_R
=1
26325 HAVE_DECL_STRERROR_R
=0
26329 cat >>confdefs.h
<<_ACEOF
26330 #define HAVE_DECL_STRERROR_R_ORIG $HAVE_DECL_STRERROR_R
26334 if test $ac_cv_func_strerror_r = yes; then
26335 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26336 if test $gl_cv_func_strerror_r_posix_signature = yes; then
26337 case "$gl_cv_func_strerror_r_works" in
26338 *no
) REPLACE_STRERROR_R
=1 ;;
26341 REPLACE_STRERROR_R
=1
26344 REPLACE_STRERROR_R
=1
26348 # Overwrite the findings of AC_FUNC_STRERROR_R (for code that uses that).
26351 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
26360 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
26391 GNULIB_STRERROR_R
=1
26397 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
26406 if test $REPLACE_STRSTR = 0; then
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
26408 $as_echo_n "checking whether strstr works in linear time... " >&6; }
26409 if ${gl_cv_func_strstr_linear+:} false
; then :
26410 $as_echo_n "(cached) " >&6
26412 if test "$cross_compiling" = yes; then :
26413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26414 /* end confdefs.h. */
26416 #include <features.h>
26417 #ifdef __GNU_LIBRARY__
26418 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
26419 && !(defined __i386__ || defined __x86_64__) \
26420 && !defined __UCLIBC__
26425 #include <cygwin/version.h>
26426 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
26432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26433 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26434 gl_cv_func_strstr_linear
="guessing yes"
26436 gl_cv_func_strstr_linear
="guessing no"
26442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26443 /* end confdefs.h. */
26446 /* z/OS does not deliver signals while strstr() is running (thanks to
26447 restrictions on its LE runtime), which prevents us from limiting the
26448 running time of this test. */
26449 # error "This test does not work properly on z/OS"
26451 #include <signal.h> /* for signal */
26452 #include <string.h> /* for strstr */
26453 #include <stdlib.h> /* for malloc */
26454 #include <unistd.h> /* for alarm */
26455 static void quit (int sig) { _exit (sig + 128); }
26462 size_t m = 1000000;
26463 char *haystack = (char *) malloc (2 * m + 2);
26464 char *needle = (char *) malloc (m + 2);
26465 /* Failure to compile this test due to missing alarm is okay,
26466 since all such platforms (mingw) also have quadratic strstr. */
26467 signal (SIGALRM, quit);
26469 /* Check for quadratic performance. */
26470 if (haystack && needle)
26472 memset (haystack, 'A', 2 * m);
26473 haystack[2 * m] = 'B';
26474 haystack[2 * m + 1] = 0;
26475 memset (needle, 'A', m);
26478 if (!strstr (haystack, needle))
26487 if ac_fn_c_try_run
"$LINENO"; then :
26488 gl_cv_func_strstr_linear
=yes
26490 gl_cv_func_strstr_linear
=no
26492 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26493 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
26499 $as_echo "$gl_cv_func_strstr_linear" >&6; }
26500 case "$gl_cv_func_strstr_linear" in
26508 if test $REPLACE_STRSTR = 1; then
26517 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
26523 if test "$gl_cv_func_memchr_works" != yes; then
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
26527 $as_echo_n "checking whether strstr works... " >&6; }
26528 if ${gl_cv_func_strstr_works_always+:} false
; then :
26529 $as_echo_n "(cached) " >&6
26531 if test "$cross_compiling" = yes; then :
26532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26533 /* end confdefs.h. */
26535 #ifdef __GNU_LIBRARY__
26536 #include <features.h>
26537 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
26538 || defined __UCLIBC__
26541 #elif defined __CYGWIN__
26542 #include <cygwin/version.h>
26543 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
26551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26552 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26553 gl_cv_func_strstr_works_always
="guessing yes"
26555 gl_cv_func_strstr_works_always
="guessing no"
26561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26562 /* end confdefs.h. */
26564 #include <string.h> /* for strstr */
26565 #define P "_EF_BF_BD"
26566 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
26567 #define NEEDLE P P P P P
26572 return !!strstr (HAYSTACK, NEEDLE);
26578 if ac_fn_c_try_run
"$LINENO"; then :
26579 gl_cv_func_strstr_works_always
=yes
26581 gl_cv_func_strstr_works_always
=no
26583 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26584 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
26590 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
26591 case "$gl_cv_func_strstr_works_always" in
26599 if test $REPLACE_STRSTR = 1; then
26608 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
26622 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
26630 for ac_func
in strtok_r
26632 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
26633 if test "x$ac_cv_func_strtok_r" = xyes
; then :
26634 cat >>confdefs.h
<<_ACEOF
26635 #define HAVE_STRTOK_R 1
26641 if test $ac_cv_func_strtok_r = yes; then
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
26644 $as_echo_n "checking whether strtok_r works... " >&6; }
26645 if ${gl_cv_func_strtok_r_works+:} false
; then :
26646 $as_echo_n "(cached) " >&6
26648 if test "$cross_compiling" = yes; then :
26651 # Guess no on glibc systems.
26652 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
26653 *) gl_cv_func_strtok_r_works
="guessing yes";;
26657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26658 /* end confdefs.h. */
26660 #ifndef __OPTIMIZE__
26661 # define __OPTIMIZE__ 1
26663 #undef __OPTIMIZE_SIZE__
26664 #undef __NO_INLINE__
26665 #include <stdlib.h>
26666 #include <string.h>
26671 static const char dummy[] = "\177\01a";
26672 char delimiters[] = "xxxxxxxx";
26673 char *save_ptr = (char *) dummy;
26674 strtok_r (delimiters, "x", &save_ptr);
26675 strtok_r (NULL, "x", &save_ptr);
26683 if ac_fn_c_try_run
"$LINENO"; then :
26684 gl_cv_func_strtok_r_works
=yes
26686 gl_cv_func_strtok_r_works
=no
26688 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26689 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
26695 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
26696 case "$gl_cv_func_strtok_r_works" in
26698 UNDEFINE_STRTOK_R
=1
26711 if test $ac_cv_have_decl_strtok_r = no
; then
26712 HAVE_DECL_STRTOK_R
=0
26715 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
26724 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
26741 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
26767 if test $gl_cv_have_include_next = yes; then
26768 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26771 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26772 if ${gl_cv_next_sys_stat_h+:} false
; then :
26773 $as_echo_n "(cached) " >&6
26776 if test $ac_cv_header_sys_stat_h = yes; then
26781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h. */
26783 #include <sys/stat.h>
26786 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26787 *) gl_absname_cpp
="$ac_cpp" ;;
26792 gl_dirsep_regex
='[/\\]'
26795 gl_dirsep_regex
='\/'
26798 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26799 gl_header_literal_regex
=`echo 'sys/stat.h' \
26800 | sed -e "$gl_make_literal_regex_sed"`
26801 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26802 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26808 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26809 sed -n "$gl_absolute_header_sed"`
26811 gl_header
=$gl_cv_absolute_sys_stat_h
26812 gl_cv_next_sys_stat_h
='"'$gl_header'"'
26814 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26820 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26822 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
26824 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26825 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26826 gl_next_as_first_directive
='<'sys
/stat.h
'>'
26828 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26829 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
26831 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
26843 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
26845 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
26849 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26850 #include <sys/stat.h>
26852 if test "x$ac_cv_type_nlink_t" = xyes
; then :
26856 $as_echo "#define nlink_t int" >>confdefs.h
26862 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
26863 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26865 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26866 if eval \
${$as_gl_Symbol+:} false
; then :
26867 $as_echo_n "(cached) " >&6
26869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26870 /* end confdefs.h. */
26871 #include <sys/stat.h>
26882 if ac_fn_c_try_compile
"$LINENO"; then :
26883 eval "$as_gl_Symbol=yes"
26885 eval "$as_gl_Symbol=no"
26887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26889 eval ac_res
=\$
$as_gl_Symbol
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26891 $as_echo "$ac_res" >&6; }
26892 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
26893 cat >>confdefs.h
<<_ACEOF
26894 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26897 eval ac_cv_have_decl_
$gl_func=yes
26926 if test $gl_cv_have_include_next = yes; then
26927 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
26930 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
26931 if ${gl_cv_next_sys_uio_h+:} false
; then :
26932 $as_echo_n "(cached) " >&6
26935 if test $ac_cv_header_sys_uio_h = yes; then
26940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26941 /* end confdefs.h. */
26942 #include <sys/uio.h>
26945 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26946 *) gl_absname_cpp
="$ac_cpp" ;;
26951 gl_dirsep_regex
='[/\\]'
26954 gl_dirsep_regex
='\/'
26957 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26958 gl_header_literal_regex
=`echo 'sys/uio.h' \
26959 | sed -e "$gl_make_literal_regex_sed"`
26960 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26961 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26967 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26968 sed -n "$gl_absolute_header_sed"`
26970 gl_header
=$gl_cv_absolute_sys_uio_h
26971 gl_cv_next_sys_uio_h
='"'$gl_header'"'
26973 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
26979 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
26981 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
26983 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26985 gl_next_as_first_directive
='<'sys
/uio.h
'>'
26987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26988 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
26990 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
26995 if test $ac_cv_header_sys_uio_h = yes; then
27033 if test $gl_cv_have_include_next = yes; then
27034 gl_cv_next_unistd_h
='<'unistd.h
'>'
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27037 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27038 if ${gl_cv_next_unistd_h+:} false
; then :
27039 $as_echo_n "(cached) " >&6
27042 if test $ac_cv_header_unistd_h = yes; then
27047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27048 /* end confdefs.h. */
27049 #include <unistd.h>
27052 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27053 *) gl_absname_cpp
="$ac_cpp" ;;
27058 gl_dirsep_regex
='[/\\]'
27061 gl_dirsep_regex
='\/'
27064 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27065 gl_header_literal_regex
=`echo 'unistd.h' \
27066 | sed -e "$gl_make_literal_regex_sed"`
27067 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27068 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27074 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27075 sed -n "$gl_absolute_header_sed"`
27077 gl_header
=$gl_cv_absolute_unistd_h
27078 gl_cv_next_unistd_h
='"'$gl_header'"'
27080 gl_cv_next_unistd_h
='<'unistd.h
'>'
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27086 $as_echo "$gl_cv_next_unistd_h" >&6; }
27088 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27090 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27091 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27092 gl_next_as_first_directive
='<'unistd.h
'>'
27094 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27095 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27097 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27102 if test $ac_cv_header_unistd_h = yes; then
27114 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
27115 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27117 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27118 if eval \
${$as_gl_Symbol+:} false
; then :
27119 $as_echo_n "(cached) " >&6
27121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27122 /* end confdefs.h. */
27125 # include <unistd.h>
27127 /* Some systems declare various items in the wrong headers. */
27128 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27129 # include <fcntl.h>
27130 # include <stdio.h>
27131 # include <stdlib.h>
27132 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
27146 if ac_fn_c_try_compile
"$LINENO"; then :
27147 eval "$as_gl_Symbol=yes"
27149 eval "$as_gl_Symbol=no"
27151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27153 eval ac_res
=\$
$as_gl_Symbol
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27155 $as_echo "$ac_res" >&6; }
27156 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
27157 cat >>confdefs.h
<<_ACEOF
27158 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27161 eval ac_cv_have_decl_
$gl_func=yes
27184 if test $ac_cv_have_decl_unsetenv = no
; then
27185 HAVE_DECL_UNSETENV
=0
27187 for ac_func
in unsetenv
27189 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27190 if test "x$ac_cv_func_unsetenv" = xyes
; then :
27191 cat >>confdefs.h
<<_ACEOF
27192 #define HAVE_UNSETENV 1
27198 if test $ac_cv_func_unsetenv = no
; then
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27203 $as_echo_n "checking for unsetenv() return type... " >&6; }
27204 if ${gt_cv_func_unsetenv_ret+:} false
; then :
27205 $as_echo_n "(cached) " >&6
27207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h. */
27211 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27212 #include <stdlib.h>
27217 int unsetenv (const char *name);
27227 if ac_fn_c_try_compile
"$LINENO"; then :
27228 gt_cv_func_unsetenv_ret
='int'
27230 gt_cv_func_unsetenv_ret
='void'
27232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27235 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27236 if test $gt_cv_func_unsetenv_ret = 'void'; then
27238 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27244 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27245 if ${gl_cv_func_unsetenv_works+:} false
; then :
27246 $as_echo_n "(cached) " >&6
27248 if test "$cross_compiling" = yes; then :
27250 # Guess yes on glibc systems.
27251 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27252 # If we don't know, assume the worst.
27253 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27258 /* end confdefs.h. */
27260 #include <stdlib.h>
27262 extern char **environ;
27268 char entry1[] = "a=1";
27269 char entry2[] = "b=2";
27270 char *env[] = { entry1, entry2, NULL };
27271 if (putenv ((char *) "a=1")) return 1;
27272 if (putenv (entry2)) return 2;
27275 if (getenv ("a")) return 3;
27276 if (!unsetenv ("") || errno != EINVAL) return 4;
27279 if (!getenv ("a")) return 5;
27282 if (getenv ("a")) return 6;
27288 if ac_fn_c_try_run
"$LINENO"; then :
27289 gl_cv_func_unsetenv_works
=yes
27291 gl_cv_func_unsetenv_works
=no
27293 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27294 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27299 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27300 case "$gl_cv_func_unsetenv_works" in
27308 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
27317 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
27341 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
27363 if test $gl_cv_have_include_next = yes; then
27364 gl_cv_next_wchar_h
='<'wchar.h
'>'
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
27367 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
27368 if ${gl_cv_next_wchar_h+:} false
; then :
27369 $as_echo_n "(cached) " >&6
27372 if test $ac_cv_header_wchar_h = yes; then
27377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27378 /* end confdefs.h. */
27382 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27383 *) gl_absname_cpp
="$ac_cpp" ;;
27388 gl_dirsep_regex
='[/\\]'
27391 gl_dirsep_regex
='\/'
27394 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27395 gl_header_literal_regex
=`echo 'wchar.h' \
27396 | sed -e "$gl_make_literal_regex_sed"`
27397 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27398 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27404 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27405 sed -n "$gl_absolute_header_sed"`
27407 gl_header
=$gl_cv_absolute_wchar_h
27408 gl_cv_next_wchar_h
='"'$gl_header'"'
27410 gl_cv_next_wchar_h
='<'wchar.h
'>'
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
27416 $as_echo "$gl_cv_next_wchar_h" >&6; }
27418 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
27420 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27421 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27422 gl_next_as_first_directive
='<'wchar.h
'>'
27424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27425 gl_next_as_first_directive
=$gl_cv_next_wchar_h
27427 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
27432 if test $ac_cv_header_wchar_h = yes; then
27442 if test $gt_cv_c_wint_t = yes; then
27450 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
27451 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27453 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27454 if eval \
${$as_gl_Symbol+:} false
; then :
27455 $as_echo_n "(cached) " >&6
27457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h. */
27460 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27462 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27463 included before <wchar.h>. */
27464 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27465 # include <stddef.h>
27466 # include <stdio.h>
27480 if ac_fn_c_try_compile
"$LINENO"; then :
27481 eval "$as_gl_Symbol=yes"
27483 eval "$as_gl_Symbol=no"
27485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27487 eval ac_res
=\$
$as_gl_Symbol
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27489 $as_echo "$ac_res" >&6; }
27490 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
27491 cat >>confdefs.h
<<_ACEOF
27492 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27495 eval ac_cv_have_decl_
$gl_func=yes
27511 if test $ac_cv_func_iswcntrl = yes; then
27519 if test $gt_cv_c_wint_t = yes; then
27541 if test $gl_cv_have_include_next = yes; then
27542 gl_cv_next_wctype_h
='<'wctype.h
'>'
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
27545 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
27546 if ${gl_cv_next_wctype_h+:} false
; then :
27547 $as_echo_n "(cached) " >&6
27550 if test $ac_cv_header_wctype_h = yes; then
27555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27556 /* end confdefs.h. */
27557 #include <wctype.h>
27560 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27561 *) gl_absname_cpp
="$ac_cpp" ;;
27566 gl_dirsep_regex
='[/\\]'
27569 gl_dirsep_regex
='\/'
27572 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27573 gl_header_literal_regex
=`echo 'wctype.h' \
27574 | sed -e "$gl_make_literal_regex_sed"`
27575 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27576 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27582 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27583 sed -n "$gl_absolute_header_sed"`
27585 gl_header
=$gl_cv_absolute_wctype_h
27586 gl_cv_next_wctype_h
='"'$gl_header'"'
27588 gl_cv_next_wctype_h
='<'wctype.h
'>'
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
27594 $as_echo "$gl_cv_next_wctype_h" >&6; }
27596 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
27598 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27599 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27600 gl_next_as_first_directive
='<'wctype.h
'>'
27602 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27603 gl_next_as_first_directive
=$gl_cv_next_wctype_h
27605 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
27610 if test $ac_cv_header_wctype_h = yes; then
27611 if test $ac_cv_func_iswcntrl = yes; then
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
27613 $as_echo_n "checking whether iswcntrl works... " >&6; }
27614 if ${gl_cv_func_iswcntrl_works+:} false
; then :
27615 $as_echo_n "(cached) " >&6
27618 if test "$cross_compiling" = yes; then :
27619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27620 /* end confdefs.h. */
27621 #include <stdlib.h>
27622 #if __GNU_LIBRARY__ == 1
27623 Linux libc5 i18n is broken.
27633 if ac_fn_c_try_compile
"$LINENO"; then :
27634 gl_cv_func_iswcntrl_works
="guessing yes"
27636 gl_cv_func_iswcntrl_works
="guessing no"
27638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27642 /* end confdefs.h. */
27644 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27645 included before <wchar.h>.
27646 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27647 must be included before <wchar.h>. */
27648 #include <stddef.h>
27652 #include <wctype.h>
27653 int main () { return iswprint ('x') == 0; }
27656 if ac_fn_c_try_run
"$LINENO"; then :
27657 gl_cv_func_iswcntrl_works
=yes
27659 gl_cv_func_iswcntrl_works
=no
27661 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27662 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
27668 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
27676 case "$gl_cv_func_iswcntrl_works" in
27677 *yes) REPLACE_ISWCNTRL
=0 ;;
27678 *) REPLACE_ISWCNTRL
=1 ;;
27682 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
27686 if test $REPLACE_ISWCNTRL = 1; then
27689 for ac_func
in towlower
27691 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
27692 if test "x$ac_cv_func_towlower" = xyes
; then :
27693 cat >>confdefs.h
<<_ACEOF
27694 #define HAVE_TOWLOWER 1
27700 if test $ac_cv_func_towlower = yes; then
27703 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27704 included before <wchar.h>.
27705 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27706 must be included before <wchar.h>. */
27707 #include <stddef.h>
27712 # include <wctype.h>
27716 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
27722 cat >>confdefs.h
<<_ACEOF
27723 #define HAVE_DECL_TOWLOWER $ac_have_decl
27726 if test $ac_cv_have_decl_towlower = yes; then
27735 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
27740 $as_echo_n "checking for wctype_t... " >&6; }
27741 if ${gl_cv_type_wctype_t+:} false
; then :
27742 $as_echo_n "(cached) " >&6
27744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27745 /* end confdefs.h. */
27746 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27747 included before <wchar.h>.
27748 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27749 must be included before <wchar.h>. */
27750 #include <stddef.h>
27755 # include <wctype.h>
27767 if ac_fn_c_try_compile
"$LINENO"; then :
27768 gl_cv_type_wctype_t
=yes
27770 gl_cv_type_wctype_t
=no
27772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
27776 $as_echo "$gl_cv_type_wctype_t" >&6; }
27777 if test $gl_cv_type_wctype_t = no
; then
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
27782 $as_echo_n "checking for wctrans_t... " >&6; }
27783 if ${gl_cv_type_wctrans_t+:} false
; then :
27784 $as_echo_n "(cached) " >&6
27786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27787 /* end confdefs.h. */
27788 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27789 included before <wchar.h>.
27790 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27791 must be included before <wchar.h>. */
27792 #include <stddef.h>
27796 #include <wctype.h>
27807 if ac_fn_c_try_compile
"$LINENO"; then :
27808 gl_cv_type_wctrans_t
=yes
27810 gl_cv_type_wctrans_t
=no
27812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
27816 $as_echo "$gl_cv_type_wctrans_t" >&6; }
27817 if test $gl_cv_type_wctrans_t = no
; then
27822 for gl_func
in wctype iswctype wctrans towctrans
; do
27823 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27825 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27826 if eval \
${$as_gl_Symbol+:} false
; then :
27827 $as_echo_n "(cached) " >&6
27829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27830 /* end confdefs.h. */
27832 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27834 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27835 included before <wchar.h>. */
27836 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27837 # include <stddef.h>
27838 # include <stdio.h>
27840 # include <wchar.h>
27842 #include <wctype.h>
27853 if ac_fn_c_try_compile
"$LINENO"; then :
27854 eval "$as_gl_Symbol=yes"
27856 eval "$as_gl_Symbol=no"
27858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27860 eval ac_res
=\$
$as_gl_Symbol
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27862 $as_echo "$ac_res" >&6; }
27863 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
27864 cat >>confdefs.h
<<_ACEOF
27865 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27868 eval ac_cv_have_decl_
$gl_func=yes
27873 # End of code from modules
27894 gl_source_base
='tests'
27895 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
27897 gl_module_indicator_condition
=$gltests_WITNESS
27907 LIBGNU_LIBDEPS
="$gl_libdeps"
27909 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
27913 # We don't use automake, but gnulib does. This line lets us generate
27915 am__api_version
='1.15'
27917 # Find a good install program. We prefer a C program (faster),
27918 # so one script is as good as another. But avoid the broken or
27919 # incompatible versions:
27920 # SysV /etc/install, /usr/sbin/install
27921 # SunOS /usr/etc/install
27922 # IRIX /sbin/install
27924 # AmigaOS /C/install, which installs bootblocks on floppy discs
27925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
27926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
27927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
27928 # OS/2's system install, which has a completely different semantic
27929 # ./install, which can be erroneously created by make from ./install.sh.
27930 # Reject install programs that cannot install multiple files.
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
27932 $as_echo_n "checking for a BSD-compatible install... " >&6; }
27933 if test -z "$INSTALL"; then
27934 if ${ac_cv_path_install+:} false
; then :
27935 $as_echo_n "(cached) " >&6
27937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27938 for as_dir
in $PATH
27941 test -z "$as_dir" && as_dir
=.
27942 # Account for people who put trailing slashes in PATH elements.
27943 case $as_dir/ in #((
27944 .
/ | .
// |
/[cC
]/* | \
27945 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
27946 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
27949 # OSF1 and SCO ODT 3.0 have their own names for install.
27950 # Don't use installbsd from OSF since it installs stuff as root
27952 for ac_prog
in ginstall scoinst
install; do
27953 for ac_exec_ext
in '' $ac_executable_extensions; do
27954 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
27955 if test $ac_prog = install &&
27956 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
27957 # AIX install. It has an incompatible calling convention.
27959 elif test $ac_prog = install &&
27960 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
27961 # program-specific install script used by HP pwplus--don't use.
27964 rm -rf conftest.one conftest.two conftest.dir
27965 echo one
> conftest.one
27966 echo two
> conftest.two
27968 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
27969 test -s conftest.one
&& test -s conftest.two
&&
27970 test -s conftest.dir
/conftest.one
&&
27971 test -s conftest.dir
/conftest.two
27973 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
27986 rm -rf conftest.one conftest.two conftest.dir
27989 if test "${ac_cv_path_install+set}" = set; then
27990 INSTALL
=$ac_cv_path_install
27992 # As a last resort, use the slow shell script. Don't cache a
27993 # value for INSTALL within a source directory, because that will
27994 # break other packages using the cache if that directory is
27995 # removed, or if the value is a relative name.
27996 INSTALL
=$ac_install_sh
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
28000 $as_echo "$INSTALL" >&6; }
28002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
28003 # It thinks the first close brace ends the variable substitution.
28004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
28006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
28008 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
28011 $as_echo_n "checking whether build environment is sane... " >&6; }
28012 # Reject unsafe characters in $srcdir or the absolute working directory
28013 # name. Accept space and tab only in the latter.
28017 *[\\\"\
#\$\&\'\`$am_lf]*)
28018 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
28021 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
28022 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
28025 # Do 'set' in a subshell so we don't clobber the current shell's
28026 # arguments. Must try -L first in case configure is actually a
28027 # symlink; some systems play weird games with the mod time of symlinks
28028 # (eg FreeBSD returns the mod time of the symlink's containing
28032 for am_try
in 1 2; do
28033 echo "timestamp, slept: $am_has_slept" > conftest.
file
28034 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
28035 if test "$*" = "X"; then
28037 set X
`ls -t "$srcdir/configure" conftest.file`
28039 if test "$*" != "X $srcdir/configure conftest.file" \
28040 && test "$*" != "X conftest.file $srcdir/configure"; then
28042 # If neither matched, then we have a broken ls. This can happen
28043 # if, for instance, CONFIG_SHELL is bash and it inherits a
28044 # broken ls alias from the environment. This has actually
28045 # happened. Such a system could not be considered "sane".
28046 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
28047 alias in your environment" "$LINENO" 5
28049 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
28056 test "$2" = conftest.
file
28062 as_fn_error $?
"newly created file is older than distributed files!
28063 Check your system clock" "$LINENO" 5
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28066 $as_echo "yes" >&6; }
28067 # If we didn't sleep, we still need to ensure time stamps of config.status and
28068 # generated files are strictly newer.
28070 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
28075 rm -f conftest.
file
28077 test "$program_prefix" != NONE
&&
28078 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
28079 # Use a double $ so make ignores it.
28080 test "$program_suffix" != NONE
&&
28081 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
28082 # Double any \ or $.
28083 # By default was `s,x,x', remove it if useless.
28084 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
28085 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
28087 if test x
"${MISSING+set}" != xset
; then
28088 case $am_aux_dir in
28090 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
28092 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
28095 # Use eval to expand $SHELL
28096 if eval "$MISSING --is-lightweight"; then
28097 am_missing_run
="$MISSING "
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
28101 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
28104 if test x
"${install_sh+set}" != xset
; then
28105 case $am_aux_dir in
28107 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
28109 install_sh
="\${SHELL} $am_aux_dir/install-sh"
28113 # Installed binaries are usually stripped using 'strip' when the user
28114 # run "make install-strip". However 'strip' might not be the right
28115 # tool to use in cross-compilation environments, therefore Automake
28116 # will honor the 'STRIP' environment variable to overrule this program.
28117 if test "$cross_compiling" != no
; then
28118 if test -n "$ac_tool_prefix"; then
28119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
28120 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28122 $as_echo_n "checking for $ac_word... " >&6; }
28123 if ${ac_cv_prog_STRIP+:} false
; then :
28124 $as_echo_n "(cached) " >&6
28126 if test -n "$STRIP"; then
28127 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
28129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28130 for as_dir
in $PATH
28133 test -z "$as_dir" && as_dir
=.
28134 for ac_exec_ext
in '' $ac_executable_extensions; do
28135 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28136 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
28137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28146 STRIP
=$ac_cv_prog_STRIP
28147 if test -n "$STRIP"; then
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
28149 $as_echo "$STRIP" >&6; }
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28152 $as_echo "no" >&6; }
28157 if test -z "$ac_cv_prog_STRIP"; then
28159 # Extract the first word of "strip", so it can be a program name with args.
28160 set dummy strip
; ac_word
=$2
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28162 $as_echo_n "checking for $ac_word... " >&6; }
28163 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
28164 $as_echo_n "(cached) " >&6
28166 if test -n "$ac_ct_STRIP"; then
28167 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
28169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28170 for as_dir
in $PATH
28173 test -z "$as_dir" && as_dir
=.
28174 for ac_exec_ext
in '' $ac_executable_extensions; do
28175 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28176 ac_cv_prog_ac_ct_STRIP
="strip"
28177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28186 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
28187 if test -n "$ac_ct_STRIP"; then
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
28189 $as_echo "$ac_ct_STRIP" >&6; }
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28192 $as_echo "no" >&6; }
28195 if test "x$ac_ct_STRIP" = x
; then
28198 case $cross_compiling:$ac_tool_warned in
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28202 ac_tool_warned
=yes ;;
28207 STRIP
="$ac_cv_prog_STRIP"
28211 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
28213 for ac_prog
in gawk mawk nawk
awk
28215 # Extract the first word of "$ac_prog", so it can be a program name with args.
28216 set dummy
$ac_prog; ac_word
=$2
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28218 $as_echo_n "checking for $ac_word... " >&6; }
28219 if ${ac_cv_prog_AWK+:} false
; then :
28220 $as_echo_n "(cached) " >&6
28222 if test -n "$AWK"; then
28223 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
28225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28226 for as_dir
in $PATH
28229 test -z "$as_dir" && as_dir
=.
28230 for ac_exec_ext
in '' $ac_executable_extensions; do
28231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28232 ac_cv_prog_AWK
="$ac_prog"
28233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28242 AWK
=$ac_cv_prog_AWK
28243 if test -n "$AWK"; then
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28245 $as_echo "$AWK" >&6; }
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28248 $as_echo "no" >&6; }
28252 test -n "$AWK" && break
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
28256 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28258 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
28259 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
28260 $as_echo_n "(cached) " >&6
28262 cat >conftest.
make <<\_ACEOF
28265 @
echo '@@@%%%=$(MAKE)=@@@%%%'
28267 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28268 case `${MAKE-make} -f conftest.make 2>/dev/null` in
28269 *@@@
%%%=?
*=@@@
%%%*)
28270 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
28272 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
28274 rm -f conftest.
make
28276 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28278 $as_echo "yes" >&6; }
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28282 $as_echo "no" >&6; }
28283 SET_MAKE
="MAKE=${MAKE-make}"
28286 rm -rf .tst
2>/dev
/null
28287 mkdir .tst
2>/dev
/null
28288 if test -d .tst
; then
28293 rmdir .tst
2>/dev
/null
28295 DEPDIR
="${am__leading_dot}deps"
28297 ac_config_commands
="$ac_config_commands depfiles"
28300 am_make
=${MAKE-make}
28301 cat > confinc
<< 'END'
28303 @
echo this is the am__doit target
28306 # If we don't find an include directive, just comment out the code.
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
28308 $as_echo_n "checking for style of include used by $am_make... " >&6; }
28312 # First try GNU make style include.
28313 echo "include confinc" > confmf
28314 # Ignore all kinds of additional output from 'make'.
28315 case `$am_make -s -f confmf 2> /dev/null` in #(
28316 *the\ am__doit\ target
*)
28317 am__include
=include
28322 # Now try BSD make style include.
28323 if test "$am__include" = "#"; then
28324 echo '.include "confinc"' > confmf
28325 case `$am_make -s -f confmf 2> /dev/null` in #(
28326 *the\ am__doit\ target
*)
28327 am__include
=.include
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
28336 $as_echo "$_am_result" >&6; }
28337 rm -f confinc confmf
28339 # Check whether --enable-dependency-tracking was given.
28340 if test "${enable_dependency_tracking+set}" = set; then :
28341 enableval
=$enable_dependency_tracking;
28344 if test "x$enable_dependency_tracking" != xno
; then
28345 am_depcomp
="$ac_aux_dir/depcomp"
28349 if test "x$enable_dependency_tracking" != xno; then
28358 # Check whether --enable-silent-rules was given.
28359 if test "${enable_silent_rules+set}" = set; then :
28360 enableval
=$enable_silent_rules;
28363 case $enable_silent_rules in # (((
28364 yes) AM_DEFAULT_VERBOSITY
=0;;
28365 no
) AM_DEFAULT_VERBOSITY
=1;;
28366 *) AM_DEFAULT_VERBOSITY
=1;;
28368 am_make
=${MAKE-make}
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
28370 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
28371 if ${am_cv_make_support_nested_variables+:} false
; then :
28372 $as_echo_n "(cached) " >&6
28374 if $as_echo 'TRUE=$(BAR$(V))
28380 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
28381 am_cv_make_support_nested_variables
=yes
28383 am_cv_make_support_nested_variables
=no
28386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
28387 $as_echo "$am_cv_make_support_nested_variables" >&6; }
28388 if test $am_cv_make_support_nested_variables = yes; then
28390 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
28392 AM_V
=$AM_DEFAULT_VERBOSITY
28393 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
28397 if test "`cd $srcdir && pwd`" != "`pwd`"; then
28398 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
28399 # is not polluted with repeated "-I."
28400 am__isrc
=' -I$(srcdir)'
28401 # test to see if srcdir already configured
28402 if test -f $srcdir/config.status
; then
28403 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
28407 # test whether we have cygpath
28408 if test -z "$CYGPATH_W"; then
28409 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
28410 CYGPATH_W
='cygpath -w'
28417 # Define the identity of the package.
28419 VERSION
='UNUSED-VERSION'
28422 # Some tools Automake needs.
28424 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
28427 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
28430 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
28433 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
28436 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
28438 # For better backward compatibility. To be removed once Automake 1.9.x
28439 # dies out for good. For more background, see:
28440 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
28441 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
28442 mkdir_p
='$(MKDIR_P)'
28444 # We need awk for the "check" target (and possibly the TAP driver). The
28445 # system "awk" is bad on some platforms.
28446 # Always define AMTAR for backward compatibility. Yes, it's still used
28447 # in the wild :-( We should find a proper way to deprecate it ...
28448 AMTAR
='$${TAR-tar}'
28451 # We'll loop over all known methods to create a tar archive until one works.
28452 _am_tools
='gnutar pax cpio none'
28454 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
28460 depcc
="$CC" am_compiler_list
=
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
28463 $as_echo_n "checking dependency style of $depcc... " >&6; }
28464 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
28465 $as_echo_n "(cached) " >&6
28467 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
28468 # We make a subdir and do the tests there. Otherwise we can end up
28469 # making bogus files that we don't know about and never remove. For
28470 # instance it was reported that on HP-UX the gcc test will end up
28471 # making a dummy file named 'D' -- because '-MD' means "put the output
28473 rm -rf conftest.dir
28475 # Copy depcomp to subdir because otherwise we won't find it if we're
28476 # using a relative directory.
28477 cp "$am_depcomp" conftest.dir
28479 # We will build objects and dependencies in a subdirectory because
28480 # it helps to detect inapplicable dependency modes. For instance
28481 # both Tru64's cc and ICC support -MD to output dependencies as a
28482 # side effect of compilation, but ICC will put the dependencies in
28483 # the current directory while Tru64 will put them in the object
28487 am_cv_CC_dependencies_compiler_type
=none
28488 if test "$am_compiler_list" = ""; then
28489 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
28491 am__universal
=false
28492 case " $depcc " in #(
28493 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
28496 for depmode
in $am_compiler_list; do
28497 # Setup a source with many dependencies, because some compilers
28498 # like to wrap large dependency lists on column 80 (with \), and
28499 # we should not choose a depcomp mode which is confused by this.
28501 # We need to recreate these files for each test, as the compiler may
28502 # overwrite some of them when testing with obscure command lines.
28503 # This happens at least with the AIX C compiler.
28505 for i
in 1 2 3 4 5 6; do
28506 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
28507 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
28508 # Solaris 10 /bin/sh.
28509 echo '/* dummy */' > sub
/conftst
$i.h
28511 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
28513 # We check with '-c' and '-o' for the sake of the "dashmstdout"
28514 # mode. It turns out that the SunPro C++ compiler does not properly
28515 # handle '-M -o', and we need to detect this. Also, some Intel
28516 # versions had trouble with output in subdirs.
28517 am__obj
=sub
/conftest.
${OBJEXT-o}
28518 am__minus_obj
="-o $am__obj"
28521 # This depmode causes a compiler race in universal mode.
28522 test "$am__universal" = false ||
continue
28525 # After this tag, mechanisms are not by side-effect, so they'll
28526 # only be used when explicitly requested.
28527 if test "x$enable_dependency_tracking" = xyes
; then
28533 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
28534 # This compiler won't grok '-c -o', but also, the minuso test has
28535 # not run yet. These depmodes are late enough in the game, and
28536 # so weak that their functioning should not be impacted.
28537 am__obj
=conftest.
${OBJEXT-o}
28542 if depmode
=$depmode \
28543 source=sub
/conftest.c object
=$am__obj \
28544 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
28545 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
28546 >/dev
/null
2>conftest.err
&&
28547 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
28548 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
28549 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
28550 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
28551 # icc doesn't choke on unknown options, it will just issue warnings
28552 # or remarks (even with -Werror). So we grep stderr for any message
28553 # that says an option was ignored or not supported.
28554 # When given -MP, icc 7.0 and 7.1 complain thusly:
28555 # icc: Command line warning: ignoring option '-M'; no argument required
28556 # The diagnosis changed in icc 8.0:
28557 # icc: Command line remark: option '-MP' not supported
28558 if (grep 'ignoring option' conftest.err ||
28559 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
28560 am_cv_CC_dependencies_compiler_type
=$depmode
28567 rm -rf conftest.dir
28569 am_cv_CC_dependencies_compiler_type
=none
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
28574 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
28575 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
28578 test "x$enable_dependency_tracking" != xno \
28579 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
28580 am__fastdepCC_TRUE
=
28581 am__fastdepCC_FALSE
='#'
28583 am__fastdepCC_TRUE
='#'
28584 am__fastdepCC_FALSE
=
28589 # POSIX will say in a future version that running "rm -f" with no argument
28590 # is OK; and we want to be able to make that assumption in our Makefile
28591 # recipes. So use an aggressive probe to check that the usage we want is
28592 # actually supported "in the wild" to an acceptable degree.
28593 # See automake bug#10828.
28594 # To make any issue more visible, cause the running configure to be aborted
28595 # by default if the 'rm' program in use doesn't match our expectations; the
28596 # user can still override this though.
28597 if rm -f && rm -fr && rm -rf; then : OK
; else
28601 Your 'rm' program seems unable to run without file operands specified
28602 on the command line, even when the '-f' option is present. This is contrary
28603 to the behaviour of most rm programs out there, and not conforming with
28604 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
28606 Please tell bug-automake@gnu.org about your system, including the value
28607 of your $PATH and any error possibly output before this message. This
28608 can help us improve future automake versions.
28611 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
28612 echo 'Configuration will proceed anyway, since you have set the' >&2
28613 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
28617 Aborting the configuration process, to ensure you take notice of the issue.
28619 You can download and install GNU coreutils to get an 'rm' implementation
28620 that behaves properly: <http://www.gnu.org/software/coreutils/>.
28622 If you want to complete the configuration process using your problematic
28623 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
28624 to "yes", and re-run configure.
28627 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
28632 # Check whether --enable-silent-rules was given.
28633 if test "${enable_silent_rules+set}" = set; then :
28634 enableval
=$enable_silent_rules;
28637 case $enable_silent_rules in # (((
28638 yes) AM_DEFAULT_VERBOSITY
=0;;
28639 no
) AM_DEFAULT_VERBOSITY
=1;;
28640 *) AM_DEFAULT_VERBOSITY
=0;;
28642 am_make
=${MAKE-make}
28643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
28644 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
28645 if ${am_cv_make_support_nested_variables+:} false
; then :
28646 $as_echo_n "(cached) " >&6
28648 if $as_echo 'TRUE=$(BAR$(V))
28654 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
28655 am_cv_make_support_nested_variables
=yes
28657 am_cv_make_support_nested_variables
=no
28660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
28661 $as_echo "$am_cv_make_support_nested_variables" >&6; }
28662 if test $am_cv_make_support_nested_variables = yes; then
28664 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
28666 AM_V
=$AM_DEFAULT_VERBOSITY
28667 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
28672 # --------------------- #
28673 # Checks for programs. #
28674 # --------------------- #
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
28678 $as_echo_n "checking whether ln -s works... " >&6; }
28680 if test "$LN_S" = "ln -s"; then
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28682 $as_echo "yes" >&6; }
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
28685 $as_echo "no, using $LN_S" >&6; }
28688 if test -n "$ac_tool_prefix"; then
28689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
28690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28692 $as_echo_n "checking for $ac_word... " >&6; }
28693 if ${ac_cv_prog_RANLIB+:} false; then :
28694 $as_echo_n "(cached) " >&6
28696 if test -n "$RANLIB"; then
28697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
28699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28700 for as_dir in $PATH
28703 test -z "$as_dir" && as_dir=.
28704 for ac_exec_ext in '' $ac_executable_extensions; do
28705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
28707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28716 RANLIB=$ac_cv_prog_RANLIB
28717 if test -n "$RANLIB"; then
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
28719 $as_echo "$RANLIB" >&6; }
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28722 $as_echo "no" >&6; }
28727 if test -z "$ac_cv_prog_RANLIB"; then
28728 ac_ct_RANLIB=$RANLIB
28729 # Extract the first word of "ranlib", so it can be a program name with args.
28730 set dummy ranlib; ac_word=$2
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28732 $as_echo_n "checking for $ac_word... " >&6; }
28733 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
28734 $as_echo_n "(cached) " >&6
28736 if test -n "$ac_ct_RANLIB"; then
28737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
28739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28740 for as_dir in $PATH
28743 test -z "$as_dir" && as_dir=.
28744 for ac_exec_ext in '' $ac_executable_extensions; do
28745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28746 ac_cv_prog_ac_ct_RANLIB="ranlib"
28747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28756 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
28757 if test -n "$ac_ct_RANLIB"; then
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
28759 $as_echo "$ac_ct_RANLIB" >&6; }
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28762 $as_echo "no" >&6; }
28765 if test "x$ac_ct_RANLIB" = x; then
28768 case $cross_compiling:$ac_tool_warned in
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28772 ac_tool_warned=yes ;;
28774 RANLIB=$ac_ct_RANLIB
28777 RANLIB="$ac_cv_prog_RANLIB"
28781 if test -n "$ac_tool_prefix"; then
28782 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
28783 set dummy ${ac_tool_prefix}ar; ac_word=$2
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28785 $as_echo_n "checking for $ac_word... " >&6; }
28786 if ${ac_cv_prog_AR+:} false; then :
28787 $as_echo_n "(cached) " >&6
28789 if test -n "$AR"; then
28790 ac_cv_prog_AR="$AR" # Let the user override the test.
28792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28793 for as_dir in $PATH
28796 test -z "$as_dir" && as_dir=.
28797 for ac_exec_ext in '' $ac_executable_extensions; do
28798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28799 ac_cv_prog_AR="${ac_tool_prefix}ar"
28800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28810 if test -n "$AR"; then
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
28812 $as_echo "$AR" >&6; }
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28815 $as_echo "no" >&6; }
28820 if test -z "$ac_cv_prog_AR"; then
28822 # Extract the first word of "ar", so it can be a program name with args.
28823 set dummy ar; ac_word=$2
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28825 $as_echo_n "checking for $ac_word... " >&6; }
28826 if ${ac_cv_prog_ac_ct_AR+:} false; then :
28827 $as_echo_n "(cached) " >&6
28829 if test -n "$ac_ct_AR"; then
28830 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
28832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28833 for as_dir in $PATH
28836 test -z "$as_dir" && as_dir=.
28837 for ac_exec_ext in '' $ac_executable_extensions; do
28838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28839 ac_cv_prog_ac_ct_AR="ar"
28840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28849 ac_ct_AR=$ac_cv_prog_ac_ct_AR
28850 if test -n "$ac_ct_AR"; then
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
28852 $as_echo "$ac_ct_AR" >&6; }
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28855 $as_echo "no" >&6; }
28858 if test "x$ac_ct_AR" = x; then
28861 case $cross_compiling:$ac_tool_warned in
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28865 ac_tool_warned=yes ;;
28870 AR="$ac_cv_prog_AR"
28874 # ---------------------- #
28875 # Checks for libraries. #
28876 # ---------------------- #
28878 ac_config_files="$ac_config_files Makefile import/Makefile"
28880 ac_config_commands="$ac_config_commands default"
28882 cat >confcache <<\_ACEOF
28883 # This file is a shell script that caches the results of configure
28884 # tests run on this system so they can be shared between configure
28885 # scripts and configure runs, see configure's option
--config-cache.
28886 # It is not useful on other systems. If it contains results you don't
28887 # want to keep, you may remove or edit it.
28889 # config.status only pays attention to the cache file if you give it
28890 # the --recheck option to rerun configure.
28892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28894 # following values.
28898 # The following way of writing the cache mishandles newlines in values,
28899 # but we know of no workaround that is simple, portable, and efficient.
28900 # So, we kill variables containing newlines.
28901 # Ultrix sh set writes to stderr and can't be redirected directly,
28902 # and sets the high bit in the cache file unless we assign to the vars.
28904 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28905 eval ac_val
=\$
$ac_var
28909 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28910 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28913 _ | IFS | as_nl
) ;; #(
28914 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28915 *) { eval $ac_var=; unset $ac_var;} ;;
28921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28922 *${as_nl}ac_space
=\
*)
28923 # `set' does not quote correctly, so add quotes: double-quote
28924 # substitution turns \\\\ into \\, and sed turns \\ into \.
28927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28930 # `set' quotes correctly as required by POSIX, so do not add quotes.
28931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28944 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28945 if test -w "$cache_file"; then
28946 if test "x$cache_file" != "x/dev/null"; then
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28948 $as_echo "$as_me: updating cache $cache_file" >&6;}
28949 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
28950 cat confcache
>"$cache_file"
28952 case $cache_file in #(
28954 mv -f confcache
"$cache_file"$$
&&
28955 mv -f "$cache_file"$$
"$cache_file" ;; #(
28957 mv -f confcache
"$cache_file" ;;
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28963 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28968 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28969 # Let make expand exec_prefix.
28970 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28972 DEFS
=-DHAVE_CONFIG_H
28976 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28977 # 1. Remove the extension, and $U if already installed.
28978 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28979 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28981 # will be set to the directory where LIBOBJS objects are built.
28982 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28983 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28985 LIBOBJS
=$ac_libobjs
28987 LTLIBOBJS
=$ac_ltlibobjs
28990 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28991 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
28992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28994 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28995 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
28996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28998 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28999 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29002 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29003 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29006 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
29007 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
29008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29010 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
29011 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
29012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29014 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
29015 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
29016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29018 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
29019 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
29020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29022 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
29023 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
29024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29026 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29027 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
29028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29032 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
29033 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
29034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29036 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29037 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29040 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29041 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29044 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29045 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29051 if test -n "$gl_LIBOBJS"; then
29052 # Remove the extension.
29053 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29054 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29055 gl_libobjs
="$gl_libobjs $i.$ac_objext"
29056 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
29059 gl_LIBOBJS
=$gl_libobjs
29061 gl_LTLIBOBJS
=$gl_ltlibobjs
29067 if test -n "$gltests_LIBOBJS"; then
29068 # Remove the extension.
29069 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29070 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29071 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
29072 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
29075 gltests_LIBOBJS
=$gltests_libobjs
29077 gltests_LTLIBOBJS
=$gltests_ltlibobjs
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
29081 $as_echo_n "checking that generated files are newer than configure... " >&6; }
29082 if test -n "$am_sleep_pid"; then
29083 # Hide warnings about reused PIDs.
29084 wait $am_sleep_pid 2>/dev
/null
29086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
29087 $as_echo "done" >&6; }
29088 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29089 as_fn_error $?
"conditional \"AMDEP\" was never defined.
29090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29092 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29093 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
29094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29096 if test -n "$EXEEXT"; then
29098 am__EXEEXT_FALSE
='#'
29100 am__EXEEXT_TRUE
='#'
29105 : "${CONFIG_STATUS=./config.status}"
29107 ac_clean_files_save
=$ac_clean_files
29108 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29110 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29112 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29114 # Generated by $as_me.
29115 # Run this file to recreate the current configuration.
29116 # Compiler output produced by configure, useful for debugging
29117 # configure, is in config.log if it exists.
29120 ac_cs_recheck=false
29123 SHELL=\${CONFIG_SHELL-$SHELL}
29126 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29127 ## -------------------- ##
29128 ## M4sh Initialization. ##
29129 ## -------------------- ##
29131 # Be more Bourne compatible
29132 DUALCASE
=1; export DUALCASE
# for MKS sh
29133 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29136 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29137 # is contrary to our usage. Disable this feature.
29138 alias -g '${1+"$@"}'='"$@"'
29139 setopt NO_GLOB_SUBST
29141 case `(set -o) 2>/dev/null` in #(
29153 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29154 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29155 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29156 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29157 # Prefer a ksh shell builtin over an external printf program on Solaris,
29158 # but without wasting forks for bash or zsh.
29159 if test -z "$BASH_VERSION$ZSH_VERSION" \
29160 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29161 as_echo='print
-r --'
29162 as_echo_n='print
-rn --'
29163 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29164 as_echo='printf %s
\n'
29165 as_echo_n='printf %s
'
29167 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29168 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29169 as_echo_n='/usr
/ucb
/echo -n'
29171 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29172 as_echo_n_body='eval
29176 expr "X$arg" : "X\\(.*\\)$as_nl";
29177 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29179 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29181 export as_echo_n_body
29182 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29184 export as_echo_body
29185 as_echo='sh
-c $as_echo_body as_echo
'
29188 # The user is always right.
29189 if test "${PATH_SEPARATOR+set}" != set; then
29191 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29192 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29199 # We need space, tab and new line, in precisely that order. Quoting is
29200 # there to prevent editors from complaining about space-tab.
29201 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29202 # splitting by setting IFS to empty value.)
29205 # Find who we are. Look in the path if we contain no directory separator.
29208 *[\\/]* ) as_myself=$0 ;;
29209 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29210 for as_dir in $PATH
29213 test -z "$as_dir" && as_dir=.
29214 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29220 # We did not find ourselves, most probably we were run as `sh COMMAND'
29221 # in which case we are not to be found in the path.
29222 if test "x$as_myself" = x
; then
29225 if test ! -f "$as_myself"; then
29226 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29230 # Unset variables that we do not need and which cause bugs (e.g. in
29231 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29232 # suppresses any "Segmentation fault" message there. '((' could
29233 # trigger a bug in pdksh 5.2.14.
29234 for as_var
in BASH_ENV ENV MAIL MAILPATH
29235 do eval test x\
${$as_var+set} = xset \
29236 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29249 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29252 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29253 # ----------------------------------------
29254 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29255 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29256 # script with STATUS, using 1 if that was 0.
29259 as_status
=$1; test $as_status -eq 0 && as_status
=1
29261 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29262 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29264 $as_echo "$as_me: error: $2" >&2
29265 as_fn_exit
$as_status
29269 # as_fn_set_status STATUS
29270 # -----------------------
29271 # Set $? to STATUS, without forking.
29272 as_fn_set_status
()
29275 } # as_fn_set_status
29277 # as_fn_exit STATUS
29278 # -----------------
29279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29283 as_fn_set_status
$1
29289 # Portably unset VAR.
29292 { eval $1=; unset $1;}
29294 as_unset
=as_fn_unset
29295 # as_fn_append VAR VALUE
29296 # ----------------------
29297 # Append the text in VALUE to the end of the definition contained in VAR. Take
29298 # advantage of any shell optimizations that allow amortized linear growth over
29299 # repeated appends, instead of the typical quadratic growth present in naive
29301 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29302 eval 'as_fn_append ()
29313 # as_fn_arith ARG...
29314 # ------------------
29315 # Perform arithmetic evaluation on the ARGs, and store the result in the
29316 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29317 # must be portable across $(()) and expr.
29318 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29319 eval 'as_fn_arith ()
29326 as_val
=`expr "$@" || test $? -eq 1`
29331 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29332 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29338 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29339 as_basename
=basename
29344 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29350 as_me
=`$as_basename -- "$0" ||
29351 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29352 X"$0" : 'X\(//\)$' \| \
29353 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29355 sed '/^.*\/\([^/][^/]*\)\/*$/{
29369 # Avoid depending upon Character Ranges.
29370 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29371 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29372 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29373 as_cr_digits
='0123456789'
29374 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29376 ECHO_C
= ECHO_N
= ECHO_T
=
29377 case `echo -n x` in #(((((
29379 case `echo 'xy\c'` in
29380 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29382 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29389 rm -f conf$$ conf$$.exe conf$$.
file
29390 if test -d conf$$.dir
; then
29391 rm -f conf$$.dir
/conf$$.
file
29394 mkdir conf$$.dir
2>/dev
/null
29396 if (echo >conf$$.
file) 2>/dev
/null
; then
29397 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29399 # ... but there are two gotchas:
29400 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29401 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29402 # In both cases, we have to default to `cp -pR'.
29403 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29405 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29413 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29414 rmdir conf$$.dir
2>/dev
/null
29419 # Create "$as_dir" as a directory, including parents if necessary.
29424 -*) as_dir
=.
/$as_dir;;
29426 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29430 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29431 *) as_qdir
=$as_dir;;
29433 as_dirs
="'$as_qdir' $as_dirs"
29434 as_dir
=`$as_dirname -- "$as_dir" ||
29435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29436 X"$as_dir" : 'X\(//\)[^/]' \| \
29437 X"$as_dir" : 'X\(//\)$' \| \
29438 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29439 $as_echo X"$as_dir" |
29440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29444 /^X\(\/\/\)[^/].*/{
29457 test -d "$as_dir" && break
29459 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29460 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
29464 if mkdir
-p .
2>/dev
/null
; then
29465 as_mkdir_p
='mkdir -p "$as_dir"'
29467 test -d .
/-p && rmdir .
/-p
29472 # as_fn_executable_p FILE
29473 # -----------------------
29474 # Test if FILE is an executable regular file.
29475 as_fn_executable_p
()
29477 test -f "$1" && test -x "$1"
29478 } # as_fn_executable_p
29479 as_test_x
='test -x'
29480 as_executable_p
=as_fn_executable_p
29482 # Sed expression to map a string onto a valid CPP name.
29483 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29485 # Sed expression to map a string onto a valid variable name.
29486 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29490 ## ----------------------------------- ##
29491 ## Main body of $CONFIG_STATUS script. ##
29492 ## ----------------------------------- ##
29494 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29497 # Save the log message, to keep $0 and so on meaningful, and to
29498 # report actual input values of CONFIG_FILES etc. instead of their
29499 # values after options handling.
29501 This file was extended by libgnu $as_me UNUSED-VERSION, which was
29502 generated by GNU Autoconf 2.69. Invocation command line was
29504 CONFIG_FILES = $CONFIG_FILES
29505 CONFIG_HEADERS = $CONFIG_HEADERS
29506 CONFIG_LINKS = $CONFIG_LINKS
29507 CONFIG_COMMANDS = $CONFIG_COMMANDS
29510 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29515 case $ac_config_files in *"
29516 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29519 case $ac_config_headers in *"
29520 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29525 # Files that config.status was made for.
29526 config_files="$ac_config_files"
29527 config_headers="$ac_config_headers"
29528 config_commands="$ac_config_commands"
29532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29534 \`$as_me' instantiates files and other configuration actions
29535 from templates according to the current configuration. Unless the files
29536 and actions are specified as TAGs, all are instantiated by default.
29538 Usage: $0 [OPTION]... [TAG]...
29540 -h, --help print this help, then exit
29541 -V, --version print version number and configuration settings, then exit
29542 --config print configuration, then exit
29543 -q, --quiet, --silent
29544 do not print progress messages
29545 -d, --debug don't remove temporary files
29546 --recheck update $as_me by reconfiguring in the same conditions
29547 --file=FILE[:TEMPLATE]
29548 instantiate the configuration file FILE
29549 --header=FILE[:TEMPLATE]
29550 instantiate the configuration header FILE
29552 Configuration files:
29555 Configuration headers:
29558 Configuration commands:
29561 Report bugs to the package provider."
29564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29565 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29567 libgnu config.status UNUSED-VERSION
29568 configured by $0, generated by GNU Autoconf 2.69,
29569 with options \\"\$ac_cs_config\\"
29571 Copyright (C) 2012 Free Software Foundation, Inc.
29572 This config.status script is free software; the Free Software Foundation
29573 gives unlimited permission to copy, distribute and modify it."
29580 test -n "\$AWK" || AWK=awk
29583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29584 # The default lists apply if the user does not specify any file.
29590 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29591 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29595 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29607 # Handling of the options.
29608 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29610 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29611 $as_echo "$ac_cs_version"; exit ;;
29612 --config |
--confi |
--conf |
--con |
--co |
--c )
29613 $as_echo "$ac_cs_config"; exit ;;
29614 --debug |
--debu |
--deb |
--de |
--d |
-d )
29616 --file |
--fil |
--fi |
--f )
29619 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29620 '') as_fn_error $?
"missing file argument" ;;
29622 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29623 ac_need_defaults
=false
;;
29624 --header |
--heade |
--head |
--hea )
29627 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29629 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29630 ac_need_defaults
=false
;;
29632 # Conflict between --help and --header
29633 as_fn_error $?
"ambiguous option: \`$1'
29634 Try \`$0 --help' for more information.";;
29635 --help |
--hel |
-h )
29636 $as_echo "$ac_cs_usage"; exit ;;
29637 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29638 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29641 # This is an error.
29642 -*) as_fn_error $?
"unrecognized option: \`$1'
29643 Try \`$0 --help' for more information." ;;
29645 *) as_fn_append ac_config_targets
" $1"
29646 ac_need_defaults
=false
;;
29652 ac_configure_extra_args
=
29654 if $ac_cs_silent; then
29656 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29661 if \$ac_cs_recheck; then
29662 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29664 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29665 CONFIG_SHELL='$SHELL'
29666 export CONFIG_SHELL
29671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29676 ## Running $as_me. ##
29682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29686 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29692 # Handling of arguments.
29693 for ac_config_target
in $ac_config_targets
29695 case $ac_config_target in
29696 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
29697 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29698 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29699 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
29700 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29702 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29707 # If the user did not use the arguments to specify the items to instantiate,
29708 # then the envvar interface is used. Set only those that are not.
29709 # We use the long form for the default assignment because of an extremely
29710 # bizarre bug on SunOS 4.1.3.
29711 if $ac_need_defaults; then
29712 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29713 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29714 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29717 # Have a temporary directory for convenience. Make it in the build tree
29718 # simply because there is no reason against having it here, and in addition,
29719 # creating and moving files from /tmp can sometimes cause problems.
29720 # Hook for its removal unless debugging.
29721 # Note that there is a small window in which the directory will not be cleaned:
29722 # after its creation but before its name has been assigned to `$tmp'.
29726 trap 'exit_status=$?
29727 : "${ac_tmp:=$tmp}"
29728 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29730 trap 'as_fn_exit 1' 1 2 13 15
29732 # Create a (secure) tmp directory for tmp files.
29735 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29739 tmp
=.
/conf$$
-$RANDOM
29740 (umask 077 && mkdir
"$tmp")
29741 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
29744 # Set up the scripts for CONFIG_FILES section.
29745 # No need to generate them if there are no CONFIG_FILES.
29746 # This happens for instance with `./config.status config.h'.
29747 if test -n "$CONFIG_FILES"; then
29750 ac_cr
=`echo X | tr X '\015'`
29751 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29752 # But we know of no other shell where ac_cr would be empty at this
29753 # point, so we can use a bashism as a fallback.
29754 if test "x$ac_cr" = x
; then
29755 eval ac_cr
=\$
\'\\r
\'
29757 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29758 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29761 ac_cs_awk_cr
=$ac_cr
29764 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29769 echo "cat >conf$$subs.awk <<_ACEOF" &&
29770 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29772 } >conf$$subs.sh ||
29773 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29774 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29776 for ac_last_try in false false false false false :; do
29777 . ./conf$$subs.sh ||
29778 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29780 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29781 if test $ac_delim_n = $ac_delim_num; then
29783 elif $ac_last_try; then
29784 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29786 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29789 rm -f conf$$subs.sh
29791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29792 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
29796 s/^/S["/; s
/!.
*/"]=/
29806 s/\(.\{148\}\)..*/\1/
29808 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29813 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29820 s/\(.\{148\}\)..*/\1/
29822 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29826 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29831 ' <conf$$subs.awk | sed '
29836 ' >>$CONFIG_STATUS || ac_write_fail=1
29837 rm -f conf$$subs.awk
29838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29840 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
29841 for (key in S) S_is_set[key] = 1
29847 nfields = split(line, field, "@
")
29849 len = length(field[1])
29850 for (i = 2; i < nfields; i++) {
29852 keylen = length(key)
29853 if (S_is_set[key]) {
29855 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29856 len += length(value) + length(field[++i])
29867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29868 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29869 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29872 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
29873 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
29876 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29877 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
29878 # trailing colons and then remove the whole line if VPATH becomes empty
29879 # (actually we leave an empty line to preserve line numbers).
29880 if test "x
$srcdir" = x.; then
29881 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29900 fi # test -n "$CONFIG_FILES"
29902 # Set up the scripts for CONFIG_HEADERS section.
29903 # No need to generate them if there are no CONFIG_HEADERS.
29904 # This happens for instance with `./config.status Makefile'.
29905 if test -n "$CONFIG_HEADERS"; then
29906 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
29910 # Transform confdefs.h into an awk script `defines.awk', embedded as
29911 # here-document in config.status, that substitutes the proper values into
29912 # config.h.in to produce config.h.
29914 # Create a delimiter string that does not exist in confdefs.h, to ease
29915 # handling of long lines.
29917 for ac_last_try in false false :; do
29918 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
29919 if test -z "$ac_tt"; then
29921 elif $ac_last_try; then
29922 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
29924 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29928 # For the awk script, D is an array of macro values keyed by name,
29929 # likewise P contains macro parameters if any. Preserve backslash
29930 # newline sequences.
29932 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29934 s/.\{148\}/&'"$ac_delim"'/g
29937 s/^[ ]*#[ ]*define[ ][ ]*/ /
29944 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29946 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29950 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29951 D["\
1"]=" \
3\\\\\\n
"\\/p
29953 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29958 s/.\{148\}/&'"$ac_delim"'/g
29963 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29966 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29968 ' <confdefs.h | sed '
29969 s/'"$ac_delim"'/"\\\
29970 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29973 for (key in D) D_is_set[key] = 1
29976 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29978 split(line, arg, " ")
29979 if (arg[1] == "#") {
29983 defundef
= substr
(arg
[1], 2)
29986 split(mac1
, mac2
, "(") #)
29988 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29989 if (D_is_set
[macro
]) {
29990 # Preserve the white space surrounding the "#".
29991 print prefix
"define", macro P
[macro
] D
[macro
]
29994 # Replace #undef with comments. This is necessary, for example,
29995 # in the case of _POSIX_SOURCE, which is predefined and required
29996 # on some systems where configure will not decide to define it.
29997 if (defundef
== "undef") {
29998 print
"/*", prefix defundef
, macro
, "*/"
30006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30007 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
30008 fi # test -n "$CONFIG_HEADERS"
30011 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30016 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30018 case $ac_mode$ac_tag in
30020 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30021 :[FH
]-) ac_tag
=-:-;;
30022 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30039 -) ac_f
="$ac_tmp/stdin";;
30040 *) # Look for the file first in the build tree, then in the source tree
30041 # (if the path is not absolute). The absolute path cannot be DOS-style,
30042 # because $ac_f cannot contain `:'.
30046 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30048 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30050 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30051 as_fn_append ac_file_inputs
" '$ac_f'"
30054 # Let's still pretend it is `configure' which instantiates (i.e., don't
30055 # use $as_me), people would be surprised to read:
30056 # /* config.h. Generated by config.status. */
30057 configure_input
='Generated from '`
30058 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30060 if test x
"$ac_file" != x-
; then
30061 configure_input
="$ac_file. $configure_input"
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30063 $as_echo "$as_me: creating $ac_file" >&6;}
30065 # Neutralize special characters interpreted by sed in replacement strings.
30066 case $configure_input in #(
30067 *\
&* |
*\|
* |
*\\* )
30068 ac_sed_conf_input
=`$as_echo "$configure_input" |
30069 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30070 *) ac_sed_conf_input
=$configure_input;;
30074 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
30075 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
30080 ac_dir
=`$as_dirname -- "$ac_file" ||
30081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30082 X"$ac_file" : 'X\(//\)[^/]' \| \
30083 X"$ac_file" : 'X\(//\)$' \| \
30084 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30085 $as_echo X"$ac_file" |
30086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30090 /^X\(\/\/\)[^/].*/{
30103 as_dir
="$ac_dir"; as_fn_mkdir_p
30107 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30109 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30110 # A ".." for each directory in $ac_dir_suffix.
30111 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30112 case $ac_top_builddir_sub in
30113 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30114 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30117 ac_abs_top_builddir
=$ac_pwd
30118 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30119 # for backward compatibility:
30120 ac_top_builddir
=$ac_top_build_prefix
30123 .
) # We are building in place.
30125 ac_top_srcdir
=$ac_top_builddir_sub
30126 ac_abs_top_srcdir
=$ac_pwd ;;
30127 [\\/]* | ?
:[\\/]* ) # Absolute name.
30128 ac_srcdir
=$srcdir$ac_dir_suffix;
30129 ac_top_srcdir
=$srcdir
30130 ac_abs_top_srcdir
=$srcdir ;;
30131 *) # Relative name.
30132 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30133 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30134 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30136 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30146 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30147 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30149 ac_MKDIR_P
=$MKDIR_P
30151 [\\/$
]* | ?
:[\\/]* ) ;;
30152 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30157 # If the template does not know about datarootdir, expand it.
30158 # FIXME: This hack should be removed a few years after 2.60.
30159 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30170 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30171 *datarootdir
*) ac_datarootdir_seen
=yes;;
30172 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30174 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30177 ac_datarootdir_hack='
30178 s&@datadir@&$datadir&g
30179 s&@docdir@&$docdir&g
30180 s&@infodir@&$infodir&g
30181 s&@localedir@&$localedir&g
30182 s&@mandir@&$mandir&g
30183 s&\\\${datarootdir}&$datarootdir&g' ;;
30187 # Neutralize VPATH when `$srcdir' = `.'.
30188 # Shell code in configure.ac might set extrasub.
30189 # FIXME: do we really want to maintain this feature?
30190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30191 ac_sed_extra="$ac_vpsub
30194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30196 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30197 s|@configure_input@|
$ac_sed_conf_input|
;t t
30198 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30199 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30200 s
&@srcdir@
&$ac_srcdir&;t t
30201 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30202 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30203 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30204 s
&@builddir@
&$ac_builddir&;t t
30205 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30206 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30207 s
&@INSTALL@
&$ac_INSTALL&;t t
30208 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30209 $ac_datarootdir_hack
30211 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
30212 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
30214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30215 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
30216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30217 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30219 which seems to be undefined. Please make sure it is defined" >&5
30220 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30221 which seems to be undefined. Please make sure it is defined" >&2;}
30223 rm -f "$ac_tmp/stdin"
30225 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30226 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30234 if test x"$ac_file" != x-; then
30236 $as_echo "/* $configure_input */" \
30237 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30238 } >"$ac_tmp/config.h" \
30239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30240 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30242 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30245 mv "$ac_tmp/config.h" "$ac_file" \
30246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30249 $as_echo "/* $configure_input */" \
30250 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30251 || as_fn_error $? "could not create -" "$LINENO" 5
30253 # Compute "$ac_file"'s index
in $config_headers.
30256 for _am_header
in $config_headers :; do
30257 case $_am_header in
30258 $_am_arg |
$_am_arg:* )
30261 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30264 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30265 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30266 X"$_am_arg" : 'X\(//\)[^/]' \| \
30267 X"$_am_arg" : 'X\(//\)$' \| \
30268 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30269 $as_echo X"$_am_arg" |
30270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30274 /^X\(\/\/\)[^/].*/{
30286 s/.*/./; q'`/stamp-h
$_am_stamp_count
30289 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30290 $as_echo "$as_me: executing $ac_file commands" >&6;}
30295 case $ac_file$ac_mode in
30296 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30297 # Older Autoconf quotes --file arguments for eval, but not when files
30298 # are listed without --file. Let's play safe and only enable the eval
30299 # if we detect the quoting.
30300 case $CONFIG_FILES in
30301 *\'*) eval set x
"$CONFIG_FILES" ;;
30302 *) set x
$CONFIG_FILES ;;
30307 # Strip MF so we end up with the name of the file.
30308 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30309 # Check whether this is an Automake generated Makefile or not.
30310 # We used to match only the files named 'Makefile.in', but
30311 # some people rename them; so instead we look at the file content.
30312 # Grep'ing the first line is not enough: some people post-process
30313 # each Makefile.in and add a new line on top of each file to say so.
30314 # Grep'ing the whole file is not good either: AIX grep has a line
30315 # limit of 2048, but all sed's we know have understand at least 4000.
30316 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30317 dirpart
=`$as_dirname -- "$mf" ||
30318 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30319 X"$mf" : 'X\(//\)[^/]' \| \
30320 X"$mf" : 'X\(//\)$' \| \
30321 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30327 /^X\(\/\/\)[^/].*/{
30343 # Extract the definition of DEPDIR, am__include, and am__quote
30344 # from the Makefile without running 'make'.
30345 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30346 test -z "$DEPDIR" && continue
30347 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30348 test -z "$am__include" && continue
30349 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30350 # Find all dependency output files, they are included files with
30351 # $(DEPDIR) in their names. We invoke sed twice because it is the
30352 # simplest approach to changing $(DEPDIR) to its actual value in the
30354 for file in `sed -n "
30355 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30356 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
30357 # Make sure the directory exists.
30358 test -f "$dirpart/$file" && continue
30359 fdir
=`$as_dirname -- "$file" ||
30360 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30361 X"$file" : 'X\(//\)[^/]' \| \
30362 X"$file" : 'X\(//\)$' \| \
30363 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30364 $as_echo X"$file" |
30365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30369 /^X\(\/\/\)[^/].*/{
30382 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30383 # echo "creating $dirpart/$file"
30384 echo '# dummy' > "$dirpart/$file"
30390 case x
$CONFIG_HEADERS in
30391 xconfig.h
:config.
in)
30402 ac_clean_files
=$ac_clean_files_save
30404 test $ac_write_fail = 0 ||
30405 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30408 # configure is writing to config.log, and then calls config.status.
30409 # config.status does its own redirection, appending to config.log.
30410 # Unfortunately, on DOS this fails, as config.log is still kept open
30411 # by configure, so config.status won't be able to write to it; its
30412 # output is simply discarded. So we exec the FD to /dev/null,
30413 # effectively closing config.log, so it can be properly (re)opened and
30414 # appended to by config.status. When coming back to configure, we
30415 # need to make the FD available again.
30416 if test "$no_create" != yes; then
30418 ac_config_status_args
=
30419 test "$silent" = yes &&
30420 ac_config_status_args
="$ac_config_status_args --quiet"
30422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30425 # would make configure fail if this is the last instruction.
30426 $ac_cs_success || as_fn_exit
1
30428 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30430 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}