2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU tar 1.29.
5 # Report bugs to <bug-tar@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-tar@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='GNU tar'
582 PACKAGE_TARNAME='tar'
583 PACKAGE_VERSION='1.29'
584 PACKAGE_STRING='GNU tar 1.29'
585 PACKAGE_BUGREPORT='bug-tar@gnu.org'
586 PACKAGE_URL='http://www.gnu.org/software/tar/'
588 ac_unique_file="src/tar.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
627 gl_fnmatch_required=POSIX
628 gl_getopt_required=POSIX
629 gl_getopt_required=POSIX
631 ac_subst_vars='gltests_LTLIBOBJS
640 BACKUP_LIBEXEC_SCRIPTS
645 XGETTEXT_EXTRA_OPTIONS
653 GETTEXT_MACRO_VERSION
658 DEFAULT_QUOTING_STYLE
661 DEFAULT_ARCHIVE_FORMAT
664 TAR_COND_XATTR_H_FALSE
665 TAR_COND_XATTR_H_TRUE
666 GNULIB_TEST_WARN_CFLAGS
679 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
682 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
683 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
684 LIBUNISTRING_UNIWIDTH_H
685 LIBUNISTRING_UNITYPES_H
687 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
689 UNISTD_H_DEFINES_STRUCT_TIMESPEC
690 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
691 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
692 TIME_H_DEFINES_STRUCT_TIMESPEC
693 NEXT_AS_FIRST_DIRECTIVE_TIME_H
695 GL_GENERATE_SYSEXITS_H_FALSE
696 GL_GENERATE_SYSEXITS_H_TRUE
699 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
702 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
704 NEXT_AS_FIRST_DIRECTIVE_STRING_H
706 HAVE_DECL_STRNCASECMP
710 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
712 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
714 GL_GENERATE_STDARG_H_FALSE
715 GL_GENERATE_STDARG_H_TRUE
717 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
719 GL_GENERATE_STDALIGN_H_FALSE
720 GL_GENERATE_STDALIGN_H_TRUE
722 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
724 GL_GENERATE_SELINUX_CONTEXT_H_FALSE
725 GL_GENERATE_SELINUX_CONTEXT_H_TRUE
727 NEXT_AS_FIRST_DIRECTIVE_SELINUX_SELINUX_H
728 NEXT_SELINUX_SELINUX_H
731 REPLACE_PTHREAD_SIGMASK
733 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
734 HAVE_STRUCT_SIGACTION_SA_SIGACTION
740 HAVE_POSIX_SIGNALBLOCKING
743 GNULIB_SIGNAL_H_SIGPIPE
745 GNULIB_PTHREAD_SIGMASK
747 GL_GENERATE_STDBOOL_H_FALSE
748 GL_GENERATE_STDBOOL_H_TRUE
759 HAVE_DECL_LOCALTIME_R
842 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
845 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
847 GL_GENERATE_STDDEF_H_FALSE
848 GL_GENERATE_STDDEF_H_TRUE
861 LOCALCHARSET_TESTS_ENVIRONMENT
863 HAVE_LANGINFO_YESEXPR
865 HAVE_LANGINFO_T_FMT_AMPM
866 HAVE_LANGINFO_CODESET
868 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
876 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
889 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
891 UINT64_MAX_EQ_ULONG_MAX
892 UINT32_MAX_LT_UINTMAX_MAX
895 INT64_MAX_EQ_LONG_MAX
896 INT32_MAX_LT_INTMAX_MAX
907 GL_GENERATE_STDINT_H_FALSE
908 GL_GENERATE_STDINT_H_TRUE
917 HAVE_SIGNED_SIG_ATOMIC_T
920 BITSIZEOF_SIG_ATOMIC_T
923 APPLE_UNIVERSAL_BUILD
927 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
932 HAVE_UNSIGNED_LONG_LONG_INT
934 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
936 REPLACE_STRUCT_TIMEVAL
945 GNULIB_GL_UNISTD_H_GETOPT
948 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
950 WINDOWS_64_BIT_ST_SIZE
951 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
954 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
963 REPLACE_STDIO_WRITE_FUNCS
964 REPLACE_STDIO_READ_FUNCS
973 REPLACE_OBSTACK_PRINTF
998 HAVE_DECL_OBSTACK_PRINTF
1004 GNULIB_VSPRINTF_POSIX
1006 GNULIB_VPRINTF_POSIX
1008 GNULIB_VFPRINTF_POSIX
1015 GNULIB_STDIO_H_SIGPIPE
1016 GNULIB_STDIO_H_NONBLOCKING
1017 GNULIB_SPRINTF_POSIX
1031 GNULIB_OBSTACK_PRINTF_POSIX
1032 GNULIB_OBSTACK_PRINTF
1048 GNULIB_FPRINTF_POSIX
1057 GL_GENERATE_FNMATCH_H_FALSE
1058 GL_GENERATE_FNMATCH_H_TRUE
1061 GL_GENERATE_FLOAT_H_FALSE
1062 GL_GENERATE_FLOAT_H_TRUE
1064 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1067 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1118 GL_GENERATE_ERRNO_H_FALSE
1119 GL_GENERATE_ERRNO_H_TRUE
1121 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1124 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1127 PRAGMA_SYSTEM_HEADER
1128 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1155 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1157 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1158 UNISTD_H_HAVE_WINSOCK2_H
1181 REPLACE_GETDTABLESIZE
1182 REPLACE_GETDOMAINNAME
1193 HAVE_DECL_SETHOSTNAME
1194 HAVE_DECL_GETUSERSHELL
1195 HAVE_DECL_GETPAGESIZE
1196 HAVE_DECL_GETLOGIN_R
1197 HAVE_DECL_GETDOMAINNAME
1236 GNULIB_UNISTD_H_SIGPIPE
1237 GNULIB_UNISTD_H_NONBLOCKING
1263 GNULIB_GETDTABLESIZE
1264 GNULIB_GETDOMAINNAME
1294 REPLACE_CANONICALIZE_FILE_NAME
1299 HAVE_STRUCT_RANDOM_DATA
1321 HAVE_DECL_GETLOADAVG
1322 HAVE_CANONICALIZE_FILE_NAME
1333 GNULIB_SECURE_GETENV
1336 GNULIB_REALLOC_POSIX
1354 GNULIB_CANONICALIZE_FILE_NAME
1458 GL_GENERATE_ALLOCA_H_FALSE
1459 GL_GENERATE_ALLOCA_H_TRUE
1464 GL_COND_LIBTOOL_FALSE
1465 GL_COND_LIBTOOL_TRUE
1493 AM_DEFAULT_VERBOSITY
1504 INSTALL_STRIP_PROGRAM
1546 program_transform_name
1559 enable_option_checking
1561 enable_dependency_tracking
1568 with_packager_version
1569 with_packager_bug_reports
1582 with_libiconv_prefix
1585 enable_backup_scripts
1587 ac_precious_vars='build_alias
1600 DEFAULT_ARCHIVE_FORMAT
1603 DEFAULT_QUOTING_STYLE'
1606 # Initialize some variables set by options.
1608 ac_init_version=false
1609 ac_unrecognized_opts=
1610 ac_unrecognized_sep=
1611 # The variables have the same names as the options, with
1612 # dashes changed to underlines.
1613 cache_file=/dev/null
1620 program_transform_name=s,x,x,
1628 # Installation directory options.
1629 # These are left unexpanded so users can "make install exec_prefix=/foo"
1630 # and all the variables that are supposed to be based on exec_prefix
1631 # by default will actually change.
1632 # Use braces instead of parens because sh, perl, etc. also accept them.
1633 # (The list follows the same order as the GNU Coding Standards.)
1634 bindir='${exec_prefix}/bin'
1635 sbindir='${exec_prefix}/sbin'
1636 libexecdir='${exec_prefix}/libexec'
1637 datarootdir='${prefix}/share'
1638 datadir='${datarootdir}'
1639 sysconfdir='${prefix}/etc'
1640 sharedstatedir='${prefix}/com'
1641 localstatedir='${prefix}/var'
1642 includedir='${prefix}/include'
1643 oldincludedir='/usr/include'
1644 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1645 infodir='${datarootdir}/info'
1650 libdir='${exec_prefix}/lib'
1651 localedir='${datarootdir}/locale'
1652 mandir='${datarootdir}/man'
1658 # If the previous option needs an argument, assign it.
1659 if test -n "$ac_prev"; then
1660 eval $ac_prev=\$ac_option
1666 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1671 # Accept the important Cygnus configure options, so we can diagnose typos.
1673 case $ac_dashdash$ac_option in
1677 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1679 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1680 bindir=$ac_optarg ;;
1682 -build | --build | --buil | --bui | --bu)
1683 ac_prev=build_alias ;;
1684 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1685 build_alias=$ac_optarg ;;
1687 -cache-file | --cache-file | --cache-fil | --cache-fi \
1688 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1689 ac_prev=cache_file ;;
1690 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1691 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1692 cache_file=$ac_optarg ;;
1694 --config-cache | -C)
1695 cache_file=config.cache ;;
1697 -datadir | --datadir | --datadi | --datad)
1699 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1700 datadir=$ac_optarg ;;
1702 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1703 | --dataroo | --dataro | --datar)
1704 ac_prev=datarootdir ;;
1705 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1706 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1707 datarootdir=$ac_optarg ;;
1709 -disable-* | --disable-*)
1710 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1711 # Reject names that are not valid shell variable names.
1712 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1713 as_fn_error $? "invalid feature name: $ac_useropt"
1714 ac_useropt_orig=$ac_useropt
1715 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1716 case $ac_user_opts in
1718 "enable_$ac_useropt"
1720 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1721 ac_unrecognized_sep=', ';;
1723 eval enable_$ac_useropt=no ;;
1725 -docdir | --docdir | --docdi | --doc | --do)
1727 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1728 docdir=$ac_optarg ;;
1730 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1732 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1733 dvidir=$ac_optarg ;;
1735 -enable-* | --enable-*)
1736 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1737 # Reject names that are not valid shell variable names.
1738 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1739 as_fn_error $? "invalid feature name: $ac_useropt"
1740 ac_useropt_orig=$ac_useropt
1741 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1742 case $ac_user_opts in
1744 "enable_$ac_useropt"
1746 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1747 ac_unrecognized_sep=', ';;
1749 eval enable_$ac_useropt=\$ac_optarg ;;
1751 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1752 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1753 | --exec | --exe | --ex)
1754 ac_prev=exec_prefix ;;
1755 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1756 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1757 | --exec=* | --exe=* | --ex=*)
1758 exec_prefix=$ac_optarg ;;
1760 -gas | --gas | --ga | --g)
1761 # Obsolete; use --with-gas.
1764 -help | --help | --hel | --he | -h)
1765 ac_init_help=long ;;
1766 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1767 ac_init_help=recursive ;;
1768 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1769 ac_init_help=short ;;
1771 -host | --host | --hos | --ho)
1772 ac_prev=host_alias ;;
1773 -host=* | --host=* | --hos=* | --ho=*)
1774 host_alias=$ac_optarg ;;
1776 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1778 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1780 htmldir=$ac_optarg ;;
1782 -includedir | --includedir | --includedi | --included | --include \
1783 | --includ | --inclu | --incl | --inc)
1784 ac_prev=includedir ;;
1785 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1786 | --includ=* | --inclu=* | --incl=* | --inc=*)
1787 includedir=$ac_optarg ;;
1789 -infodir | --infodir | --infodi | --infod | --info | --inf)
1791 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1792 infodir=$ac_optarg ;;
1794 -libdir | --libdir | --libdi | --libd)
1796 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1797 libdir=$ac_optarg ;;
1799 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1800 | --libexe | --libex | --libe)
1801 ac_prev=libexecdir ;;
1802 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1803 | --libexe=* | --libex=* | --libe=*)
1804 libexecdir=$ac_optarg ;;
1806 -localedir | --localedir | --localedi | --localed | --locale)
1807 ac_prev=localedir ;;
1808 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1809 localedir=$ac_optarg ;;
1811 -localstatedir | --localstatedir | --localstatedi | --localstated \
1812 | --localstate | --localstat | --localsta | --localst | --locals)
1813 ac_prev=localstatedir ;;
1814 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1815 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1816 localstatedir=$ac_optarg ;;
1818 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1820 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1821 mandir=$ac_optarg ;;
1823 -nfp | --nfp | --nf)
1824 # Obsolete; use --without-fp.
1827 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1828 | --no-cr | --no-c | -n)
1831 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1832 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1835 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1836 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1837 | --oldin | --oldi | --old | --ol | --o)
1838 ac_prev=oldincludedir ;;
1839 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1840 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1841 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1842 oldincludedir=$ac_optarg ;;
1844 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1846 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1847 prefix=$ac_optarg ;;
1849 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1850 | --program-pre | --program-pr | --program-p)
1851 ac_prev=program_prefix ;;
1852 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1853 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1854 program_prefix=$ac_optarg ;;
1856 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1857 | --program-suf | --program-su | --program-s)
1858 ac_prev=program_suffix ;;
1859 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1860 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1861 program_suffix=$ac_optarg ;;
1863 -program-transform-name | --program-transform-name \
1864 | --program-transform-nam | --program-transform-na \
1865 | --program-transform-n | --program-transform- \
1866 | --program-transform | --program-transfor \
1867 | --program-transfo | --program-transf \
1868 | --program-trans | --program-tran \
1869 | --progr-tra | --program-tr | --program-t)
1870 ac_prev=program_transform_name ;;
1871 -program-transform-name=* | --program-transform-name=* \
1872 | --program-transform-nam=* | --program-transform-na=* \
1873 | --program-transform-n=* | --program-transform-=* \
1874 | --program-transform=* | --program-transfor=* \
1875 | --program-transfo=* | --program-transf=* \
1876 | --program-trans=* | --program-tran=* \
1877 | --progr-tra=* | --program-tr=* | --program-t=*)
1878 program_transform_name=$ac_optarg ;;
1880 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1882 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1883 pdfdir=$ac_optarg ;;
1885 -psdir | --psdir | --psdi | --psd | --ps)
1887 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891 | -silent | --silent | --silen | --sile | --sil)
1894 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1896 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1898 sbindir=$ac_optarg ;;
1900 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1901 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1902 | --sharedst | --shareds | --shared | --share | --shar \
1904 ac_prev=sharedstatedir ;;
1905 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1906 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1907 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1909 sharedstatedir=$ac_optarg ;;
1911 -site | --site | --sit)
1913 -site=* | --site=* | --sit=*)
1916 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1918 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1919 srcdir=$ac_optarg ;;
1921 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1922 | --syscon | --sysco | --sysc | --sys | --sy)
1923 ac_prev=sysconfdir ;;
1924 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1925 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1926 sysconfdir=$ac_optarg ;;
1928 -target | --target | --targe | --targ | --tar | --ta | --t)
1929 ac_prev=target_alias ;;
1930 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1931 target_alias=$ac_optarg ;;
1933 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1936 -version | --version | --versio | --versi | --vers | -V)
1937 ac_init_version=: ;;
1940 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1941 # Reject names that are not valid shell variable names.
1942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1943 as_fn_error $? "invalid package name: $ac_useropt"
1944 ac_useropt_orig=$ac_useropt
1945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1946 case $ac_user_opts in
1950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1951 ac_unrecognized_sep=', ';;
1953 eval with_$ac_useropt=\$ac_optarg ;;
1955 -without-* | --without-*)
1956 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1957 # Reject names that are not valid shell variable names.
1958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1959 as_fn_error $? "invalid package name: $ac_useropt"
1960 ac_useropt_orig=$ac_useropt
1961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1962 case $ac_user_opts in
1966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1967 ac_unrecognized_sep=', ';;
1969 eval with_$ac_useropt=no ;;
1972 # Obsolete; use --with-x.
1975 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1976 | --x-incl | --x-inc | --x-in | --x-i)
1977 ac_prev=x_includes ;;
1978 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1979 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1980 x_includes=$ac_optarg ;;
1982 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1983 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1984 ac_prev=x_libraries ;;
1985 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1986 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1987 x_libraries=$ac_optarg ;;
1989 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1990 Try \`$0 --help' for more information"
1994 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1995 # Reject names that are not valid shell variable names.
1996 case $ac_envvar in #(
1997 '' | [0-9]* | *[!_$as_cr_alnum]* )
1998 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2000 eval $ac_envvar=\$ac_optarg
2001 export $ac_envvar ;;
2004 # FIXME: should be removed in autoconf 3.0.
2005 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2006 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2007 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2008 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2014 if test -n "$ac_prev"; then
2015 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2016 as_fn_error $? "missing argument to $ac_option"
2019 if test -n "$ac_unrecognized_opts"; then
2020 case $enable_option_checking in
2022 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2023 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2027 # Check all directory arguments for consistency.
2028 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2029 datadir sysconfdir sharedstatedir localstatedir includedir \
2030 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2031 libdir localedir mandir
2033 eval ac_val=\$$ac_var
2034 # Remove trailing slashes.
2037 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2038 eval $ac_var=\$ac_val;;
2040 # Be sure to have absolute directory names.
2042 [\\/$]* | ?:[\\/]* ) continue;;
2043 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2045 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2048 # There might be people who depend on the old broken behavior: `$host'
2049 # used to hold the argument of --host etc.
2050 # FIXME: To remove some day.
2053 target=$target_alias
2055 # FIXME: To remove some day.
2056 if test "x$host_alias" != x; then
2057 if test "x$build_alias" = x; then
2058 cross_compiling=maybe
2059 elif test "x$build_alias" != "x$host_alias"; then
2065 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2067 test "$silent" = yes && exec 6>/dev/null
2070 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2071 ac_ls_di=`ls -di .` &&
2072 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2073 as_fn_error $? "working directory cannot be determined"
2074 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2075 as_fn_error $? "pwd does not report name of working directory"
2078 # Find the source files, if location was not specified.
2079 if test -z "$srcdir"; then
2080 ac_srcdir_defaulted=yes
2081 # Try the directory containing this script, then the parent directory.
2082 ac_confdir=`$as_dirname -- "$as_myself" ||
2083 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2084 X"$as_myself" : 'X\(//\)[^/]' \| \
2085 X"$as_myself" : 'X\(//\)$' \| \
2086 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2087 $as_echo X"$as_myself" |
2088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2106 if test ! -r "$srcdir/$ac_unique_file"; then
2110 ac_srcdir_defaulted=no
2112 if test ! -r "$srcdir/$ac_unique_file"; then
2113 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2114 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2116 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2118 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2120 # When building in place, set srcdir=.
2121 if test "$ac_abs_confdir" = "$ac_pwd"; then
2124 # Remove unnecessary trailing slashes from srcdir.
2125 # Double slashes in file names in object file debugging info
2126 # mess up M-x gdb in Emacs.
2128 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2130 for ac_var in $ac_precious_vars; do
2131 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2132 eval ac_env_${ac_var}_value=\$${ac_var}
2133 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2134 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2138 # Report the --help message.
2140 if test "$ac_init_help" = "long"; then
2141 # Omit some internal or obsolete options to make the list less imposing.
2142 # This message is too long to be a string in the A/UX 3.1 sh.
2144 \`configure' configures GNU tar 1.29 to adapt to many kinds of systems.
2146 Usage: $0 [OPTION]... [VAR=VALUE]...
2148 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2149 VAR=VALUE. See below for descriptions of some of the useful variables.
2151 Defaults for the options are specified in brackets.
2154 -h, --help display this help and exit
2155 --help=short display options specific to this package
2156 --help=recursive display the short help of all the included packages
2157 -V, --version display version information and exit
2158 -q, --quiet, --silent do not print \`checking ...' messages
2159 --cache-file=FILE cache test results in FILE [disabled]
2160 -C, --config-cache alias for \`--cache-file=config.cache'
2161 -n, --no-create do not create output files
2162 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2164 Installation directories:
2165 --prefix=PREFIX install architecture-independent files in PREFIX
2166 [$ac_default_prefix]
2167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2170 By default, \`make install' will install all the files in
2171 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2172 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2173 for instance \`--prefix=\$HOME'.
2175 For better control, use the options below.
2177 Fine tuning of the installation directories:
2178 --bindir=DIR user executables [EPREFIX/bin]
2179 --sbindir=DIR system admin executables [EPREFIX/sbin]
2180 --libexecdir=DIR program executables [EPREFIX/libexec]
2181 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2182 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2183 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2184 --libdir=DIR object code libraries [EPREFIX/lib]
2185 --includedir=DIR C header files [PREFIX/include]
2186 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2187 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2188 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2189 --infodir=DIR info documentation [DATAROOTDIR/info]
2190 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2191 --mandir=DIR man documentation [DATAROOTDIR/man]
2192 --docdir=DIR documentation root [DATAROOTDIR/doc/tar]
2193 --htmldir=DIR html documentation [DOCDIR]
2194 --dvidir=DIR dvi documentation [DOCDIR]
2195 --pdfdir=DIR pdf documentation [DOCDIR]
2196 --psdir=DIR ps documentation [DOCDIR]
2202 --program-prefix=PREFIX prepend PREFIX to installed program names
2203 --program-suffix=SUFFIX append SUFFIX to installed program names
2204 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2207 --build=BUILD configure for building on BUILD [guessed]
2208 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2212 if test -n "$ac_init_help"; then
2213 case $ac_init_help in
2214 short | recursive ) echo "Configuration of GNU tar 1.29:";;
2219 --disable-option-checking ignore unrecognized --enable/--with options
2220 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2221 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2222 --enable-silent-rules less verbose build output (undo: "make V=1")
2223 --disable-silent-rules verbose build output (undo: "make V=0")
2224 --enable-dependency-tracking
2225 do not reject slow dependency extractors
2226 --disable-dependency-tracking
2227 speeds up one-time build
2228 --disable-largefile omit support for large files
2229 --disable-acl do not support ACLs
2230 --enable-gcc-warnings turn on many GCC warnings (for developers; best with
2232 --disable-rpath do not hardcode runtime library paths
2233 --disable-nls do not use Native Language Support
2234 --enable-backup-scripts Create and install backup and restore scripts
2237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2239 --without-posix-acls do not use POSIX.1e access control lists
2240 --without-included-regex
2241 don't compile regex; this is the default on systems
2242 with recent-enough versions of the GNU C Library
2243 (use with caution on other systems).
2244 --without-selinux do not use SELinux, even on systems with SELinux
2245 --with-packager String identifying the packager of this software
2246 --with-packager-version Packager-specific version information
2247 --with-packager-bug-reports
2248 Packager info for bug reports (URL/e-mail/...)
2249 --with-rmt=FILE Use FILE as the default `rmt' program. Do not build
2250 included copy of `rmt'.
2251 --without-xattrs don't use linux extended attributes
2252 --with-compress=PROG use PROG as compress compressor program
2253 --with-gzip=PROG use PROG as gzip compressor program
2254 --with-bzip2=PROG use PROG as bzip2 compressor program
2255 --with-lzip=PROG use PROG as lzip compressor program
2256 --with-lzma=PROG use PROG as lzma compressor program
2257 --with-lzop=PROG use PROG as lzop compressor program
2258 --with-xz=PROG use PROG as xz compressor program
2259 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2260 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2261 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2262 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2263 --without-libintl-prefix don't search for libintl in includedir and libdir
2265 Some influential environment variables:
2266 CC C compiler command
2267 CFLAGS C compiler flags
2268 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2269 nonstandard directory <lib dir>
2270 LIBS libraries to pass to the linker, e.g. -l<library>
2271 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2272 you have headers in a nonstandard directory <include dir>
2273 YACC The `Yet Another Compiler Compiler' implementation to use.
2274 Defaults to the first program found out of: `bison -y', `byacc',
2276 YFLAGS The list of arguments that will be passed by default to $YACC.
2277 This script will default YFLAGS to the empty string to avoid a
2278 default value of `-d' given by some make applications.
2281 Define full file name of the directory where to install `rmt'.
2282 (default: $(libexecdir))
2283 RSH Configure absolute path to default remote shell binary
2284 DEFAULT_ARCHIVE_FORMAT
2285 Set the default archive format. Allowed values are: V7, OLDGNU,
2286 USTAR, POSIX, GNU. Default is GNU
2288 Set the name of the default archive (default: -)
2290 Define default blocking factor (default: 20)
2291 DEFAULT_QUOTING_STYLE
2292 Set the default quoting style. Allowed values are: literal,
2293 shell, shell-always, c, escape, locale, clocale . Default is
2296 Use these variables to override the choices made by `configure' or to help
2297 it to find libraries and programs with nonstandard names/locations.
2299 Report bugs to <bug-tar@gnu.org>.
2300 GNU tar home page: <http://www.gnu.org/software/tar/>.
2301 General help using GNU software: <http://www.gnu.org/gethelp/>.
2306 if test "$ac_init_help" = "recursive"; then
2307 # If there are subdirs, report their specific --help.
2308 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2309 test -d "$ac_dir" ||
2310 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2317 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2318 # A ".." for each directory in $ac_dir_suffix.
2319 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2320 case $ac_top_builddir_sub in
2321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2325 ac_abs_top_builddir=$ac_pwd
2326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2327 # for backward compatibility:
2328 ac_top_builddir=$ac_top_build_prefix
2331 .) # We are building in place.
2333 ac_top_srcdir=$ac_top_builddir_sub
2334 ac_abs_top_srcdir=$ac_pwd ;;
2335 [\\/]* | ?:[\\/]* ) # Absolute name.
2336 ac_srcdir=$srcdir$ac_dir_suffix;
2337 ac_top_srcdir=$srcdir
2338 ac_abs_top_srcdir=$srcdir ;;
2340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2341 ac_top_srcdir=$ac_top_build_prefix$srcdir
2342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2346 cd "$ac_dir" || { ac_status=$?; continue; }
2347 # Check for guested configure.
2348 if test -f "$ac_srcdir/configure.gnu"; then
2350 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2351 elif test -f "$ac_srcdir/configure"; then
2353 $SHELL "$ac_srcdir/configure" --help=recursive
2355 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2357 cd "$ac_pwd" || { ac_status=$?; break; }
2361 test -n "$ac_init_help" && exit $ac_status
2362 if $ac_init_version; then
2364 GNU tar configure 1.29
2365 generated by GNU Autoconf 2.69
2367 Copyright (C) 2012 Free Software Foundation, Inc.
2368 This configure script is free software; the Free Software Foundation
2369 gives unlimited permission to copy, distribute and modify it.
2374 ## ------------------------ ##
2375 ## Autoconf initialization. ##
2376 ## ------------------------ ##
2378 # ac_fn_c_try_compile LINENO
2379 # --------------------------
2380 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_c_try_compile ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext
2385 if { { ac_try="$ac_compile"
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_compile") 2>conftest.err
2394 if test -s conftest.err; then
2395 grep -v '^ *+' conftest.err >conftest.er1
2396 cat conftest.er1 >&5
2397 mv -f conftest.er1 conftest.err
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest.$ac_objext; then :
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412 as_fn_set_status $ac_retval
2414 } # ac_fn_c_try_compile
2416 # ac_fn_c_try_cpp LINENO
2417 # ----------------------
2418 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 if { { ac_try="$ac_cpp conftest.$ac_ext"
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428 $as_echo "$ac_try_echo"; } >&5
2429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2431 if test -s conftest.err; then
2432 grep -v '^ *+' conftest.err >conftest.er1
2433 cat conftest.er1 >&5
2434 mv -f conftest.er1 conftest.err
2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437 test $ac_status = 0; } > conftest.i && {
2438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2439 test ! -s conftest.err
2443 $as_echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2448 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2449 as_fn_set_status $ac_retval
2453 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2454 # -------------------------------------------------------
2455 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2456 # the include files in INCLUDES and setting the cache variable VAR
2458 ac_fn_c_check_header_mongrel ()
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 if eval \${$3+:} false; then :
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if eval \${$3+:} false; then :
2465 $as_echo_n "(cached) " >&6
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2469 $as_echo "$ac_res" >&6; }
2471 # Is the header compilable?
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2473 $as_echo_n "checking $2 usability... " >&6; }
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480 ac_header_compiler=yes
2482 ac_header_compiler=no
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2486 $as_echo "$ac_header_compiler" >&6; }
2488 # Is the header present?
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2490 $as_echo_n "checking $2 presence... " >&6; }
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2495 if ac_fn_c_try_cpp "$LINENO"; then :
2496 ac_header_preproc=yes
2498 ac_header_preproc=no
2500 rm -f conftest.err conftest.i conftest.$ac_ext
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2502 $as_echo "$ac_header_preproc" >&6; }
2504 # So? What about this header?
2505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2508 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2510 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2514 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2516 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2518 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2520 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2522 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2523 ( $as_echo "## ------------------------------ ##
2524 ## Report this to bug-tar@gnu.org ##
2525 ## ------------------------------ ##"
2526 ) | sed "s/^/$as_me: WARNING: /" >&2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2530 $as_echo_n "checking for $2... " >&6; }
2531 if eval \${$3+:} false; then :
2532 $as_echo_n "(cached) " >&6
2534 eval "$3=\$ac_header_compiler"
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2542 } # ac_fn_c_check_header_mongrel
2544 # ac_fn_c_try_run LINENO
2545 # ----------------------
2546 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2547 # that executables *can* be run.
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 if { { ac_try="$ac_link"
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557 $as_echo "$ac_try_echo"; } >&5
2558 (eval "$ac_link") 2>&5
2560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2561 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2562 { { case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2567 $as_echo "$ac_try_echo"; } >&5
2568 (eval "$ac_try") 2>&5
2570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571 test $ac_status = 0; }; }; then :
2574 $as_echo "$as_me: program exited with status $ac_status" >&5
2575 $as_echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 ac_retval=$ac_status
2580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2582 as_fn_set_status $ac_retval
2586 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2587 # -------------------------------------------------------
2588 # Tests whether HEADER exists and can be compiled using the include files in
2589 # INCLUDES, setting the cache variable VAR accordingly.
2590 ac_fn_c_check_header_compile ()
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2594 $as_echo_n "checking for $2... " >&6; }
2595 if eval \${$3+:} false; then :
2596 $as_echo_n "(cached) " >&6
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2603 if ac_fn_c_try_compile "$LINENO"; then :
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2615 } # ac_fn_c_check_header_compile
2617 # ac_fn_c_try_link LINENO
2618 # -----------------------
2619 # Try to link conftest.$ac_ext, and return whether this succeeded.
2622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2623 rm -f conftest.$ac_objext conftest$ac_exeext
2624 if { { ac_try="$ac_link"
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631 (eval "$ac_link") 2>conftest.err
2633 if test -s conftest.err; then
2634 grep -v '^ *+' conftest.err >conftest.er1
2635 cat conftest.er1 >&5
2636 mv -f conftest.er1 conftest.err
2638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2639 test $ac_status = 0; } && {
2640 test -z "$ac_c_werror_flag" ||
2641 test ! -s conftest.err
2642 } && test -s conftest$ac_exeext && {
2643 test "$cross_compiling" = yes ||
2644 test -x conftest$ac_exeext
2648 $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2655 # interfere with the next link command; also delete a directory that is
2656 # left behind by Apple's compiler. We do this before executing the actions.
2657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659 as_fn_set_status $ac_retval
2661 } # ac_fn_c_try_link
2663 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2664 # -------------------------------------------
2665 # Tests whether TYPE exists after having included INCLUDES, setting cache
2666 # variable VAR accordingly.
2667 ac_fn_c_check_type ()
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2671 $as_echo_n "checking for $2... " >&6; }
2672 if eval \${$3+:} false; then :
2673 $as_echo_n "(cached) " >&6
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2701 if ac_fn_c_try_compile "$LINENO"; then :
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2712 $as_echo "$ac_res" >&6; }
2713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2715 } # ac_fn_c_check_type
2717 # ac_fn_c_check_func LINENO FUNC VAR
2718 # ----------------------------------
2719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2720 ac_fn_c_check_func ()
2722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2724 $as_echo_n "checking for $2... " >&6; }
2725 if eval \${$3+:} false; then :
2726 $as_echo_n "(cached) " >&6
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h. */
2730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2732 #define $2 innocuous_$2
2734 /* System header to define __stub macros and hopefully few prototypes,
2735 which can conflict with char $2 (); below.
2736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2737 <limits.h> exists even on freestanding compilers. */
2740 # include <limits.h>
2742 # include <assert.h>
2747 /* Override any GCC internal prototype to avoid an error.
2748 Use char because int might match the return type of a GCC
2749 builtin and then its argument prototype would still apply. */
2754 /* The GNU C library defines this for functions which it implements
2755 to always fail with ENOSYS. Some functions are actually named
2756 something starting with __ and the normal name is an alias. */
2757 #if defined __stub_$2 || defined __stub___$2
2769 if ac_fn_c_try_link "$LINENO"; then :
2774 rm -f core conftest.err conftest.$ac_objext \
2775 conftest$ac_exeext conftest.$ac_ext
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2779 $as_echo "$ac_res" >&6; }
2780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2782 } # ac_fn_c_check_func
2784 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2785 # ---------------------------------------------
2786 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2788 ac_fn_c_check_decl ()
2790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2791 as_decl_name=`echo $2|sed 's/ *(.*//'`
2792 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2794 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2795 if eval \${$3+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2804 #ifndef $as_decl_name
2806 (void) $as_decl_use;
2808 (void) $as_decl_name;
2816 if ac_fn_c_try_compile "$LINENO"; then :
2821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2828 } # ac_fn_c_check_decl
2830 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2831 # --------------------------------------------
2832 # Tries to find the compile-time value of EXPR in a program that includes
2833 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2835 ac_fn_c_compute_int ()
2837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2838 if test "$cross_compiling" = yes; then
2839 # Depending upon the size, compute the lo and hi bounds.
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841 /* end confdefs.h. */
2846 static int test_array [1 - 2 * !(($2) >= 0)];
2848 return test_array [0];
2854 if ac_fn_c_try_compile "$LINENO"; then :
2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h. */
2863 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2865 return test_array [0];
2871 if ac_fn_c_try_compile "$LINENO"; then :
2872 ac_hi=$ac_mid; break
2874 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2875 if test $ac_lo -le $ac_mid; then
2879 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2890 static int test_array [1 - 2 * !(($2) < 0)];
2892 return test_array [0];
2898 if ac_fn_c_try_compile "$LINENO"; then :
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2907 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2909 return test_array [0];
2915 if ac_fn_c_try_compile "$LINENO"; then :
2916 ac_lo=$ac_mid; break
2918 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2919 if test $ac_mid -le $ac_hi; then
2923 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933 # Binary search between lo and hi bounds.
2934 while test "x$ac_lo" != "x$ac_hi"; do
2935 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2937 /* end confdefs.h. */
2942 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2944 return test_array [0];
2950 if ac_fn_c_try_compile "$LINENO"; then :
2953 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963 /* end confdefs.h. */
2965 static long int longval () { return $2; }
2966 static unsigned long int ulongval () { return $2; }
2973 FILE *f = fopen ("conftest.val", "w");
2978 long int i = longval ();
2981 fprintf (f, "%ld", i);
2985 unsigned long int i = ulongval ();
2988 fprintf (f, "%lu", i);
2990 /* Do not output a trailing newline, as this causes \r\n confusion
2991 on some platforms. */
2992 return ferror (f) || fclose (f) != 0;
2998 if ac_fn_c_try_run "$LINENO"; then :
2999 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3004 conftest.$ac_objext conftest.beam conftest.$ac_ext
3008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3009 as_fn_set_status $ac_retval
3011 } # ac_fn_c_compute_int
3013 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3014 # ----------------------------------------------------
3015 # Tries to find if the field MEMBER exists in type AGGR, after including
3016 # INCLUDES, setting cache variable VAR accordingly.
3017 ac_fn_c_check_member ()
3019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3021 $as_echo_n "checking for $2.$3... " >&6; }
3022 if eval \${$4+:} false; then :
3023 $as_echo_n "(cached) " >&6
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026 /* end confdefs.h. */
3038 if ac_fn_c_try_compile "$LINENO"; then :
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3048 if (sizeof ac_aggr.$3)
3054 if ac_fn_c_try_compile "$LINENO"; then :
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3065 $as_echo "$ac_res" >&6; }
3066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3068 } # ac_fn_c_check_member
3069 cat >config.log <<_ACEOF
3070 This file contains any messages produced by compilers while
3071 running configure, to aid debugging if configure makes a mistake.
3073 It was created by GNU tar $as_me 1.29, which was
3074 generated by GNU Autoconf 2.69. Invocation command line was
3086 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3087 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3088 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3089 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3090 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3092 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3093 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3095 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3096 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3097 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3098 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3099 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3100 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3101 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 $as_echo "PATH: $as_dir"
3126 # Keep a trace of the command line.
3127 # Strip out --no-create and --no-recursion so they do not pile up.
3128 # Strip out --silent because we don't want to record it for future runs.
3129 # Also quote any args containing shell meta-characters.
3130 # Make two passes to allow for proper duplicate-argument suppression.
3134 ac_must_keep_next=false
3140 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3142 | -silent | --silent | --silen | --sile | --sil)
3145 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3148 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3150 as_fn_append ac_configure_args1 " '$ac_arg'"
3151 if test $ac_must_keep_next = true; then
3152 ac_must_keep_next=false # Got value, back to normal.
3155 *=* | --config-cache | -C | -disable-* | --disable-* \
3156 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3157 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3158 | -with-* | --with-* | -without-* | --without-* | --x)
3159 case "$ac_configure_args0 " in
3160 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3163 -* ) ac_must_keep_next=true ;;
3166 as_fn_append ac_configure_args " '$ac_arg'"
3171 { ac_configure_args0=; unset ac_configure_args0;}
3172 { ac_configure_args1=; unset ac_configure_args1;}
3174 # When interrupted or exit'd, cleanup temporary files, and complete
3175 # config.log. We remove comments because anyway the quotes in there
3176 # would cause problems or look ugly.
3177 # WARNING: Use '\'' to represent an apostrophe within the trap.
3178 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3179 trap 'exit_status=$?
3180 # Save into config.log some information that might help in debugging.
3184 $as_echo "## ---------------- ##
3185 ## Cache variables. ##
3186 ## ---------------- ##"
3188 # The following way of writing the cache mishandles newlines in values,
3190 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3191 eval ac_val=\$$ac_var
3195 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3196 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3199 _ | IFS | as_nl) ;; #(
3200 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3201 *) { eval $ac_var=; unset $ac_var;} ;;
3206 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3207 *${as_nl}ac_space=\ *)
3209 "s/'\''/'\''\\\\'\'''\''/g;
3210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3220 $as_echo "## ----------------- ##
3221 ## Output variables. ##
3222 ## ----------------- ##"
3224 for ac_var in $ac_subst_vars
3226 eval ac_val=\$$ac_var
3228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3230 $as_echo "$ac_var='\''$ac_val'\''"
3234 if test -n "$ac_subst_files"; then
3235 $as_echo "## ------------------- ##
3236 ## File substitutions. ##
3237 ## ------------------- ##"
3239 for ac_var in $ac_subst_files
3241 eval ac_val=\$$ac_var
3243 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3245 $as_echo "$ac_var='\''$ac_val'\''"
3250 if test -s confdefs.h; then
3251 $as_echo "## ----------- ##
3258 test "$ac_signal" != 0 &&
3259 $as_echo "$as_me: caught signal $ac_signal"
3260 $as_echo "$as_me: exit $exit_status"
3262 rm -f core *.core core.conftest.* &&
3263 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3266 for ac_signal in 1 2 13 15; do
3267 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3271 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3272 rm -f -r conftest* confdefs.h
3274 $as_echo "/* confdefs.h */" > confdefs.h
3276 # Predefined preprocessor variables.
3278 cat >>confdefs.h <<_ACEOF
3279 #define PACKAGE_NAME "$PACKAGE_NAME"
3282 cat >>confdefs.h <<_ACEOF
3283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3286 cat >>confdefs.h <<_ACEOF
3287 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3290 cat >>confdefs.h <<_ACEOF
3291 #define PACKAGE_STRING "$PACKAGE_STRING"
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE_URL "$PACKAGE_URL"
3303 # Let the site file select an alternate cache file if it wants to.
3304 # Prefer an explicitly selected file to automatically selected ones.
3307 if test -n "$CONFIG_SITE"; then
3308 # We do not want a PATH search for config.site.
3309 case $CONFIG_SITE in #((
3310 -*) ac_site_file1=./$CONFIG_SITE;;
3311 */*) ac_site_file1=$CONFIG_SITE;;
3312 *) ac_site_file1=./$CONFIG_SITE;;
3314 elif test "x$prefix" != xNONE; then
3315 ac_site_file1=$prefix/share/config.site
3316 ac_site_file2=$prefix/etc/config.site
3318 ac_site_file1=$ac_default_prefix/share/config.site
3319 ac_site_file2=$ac_default_prefix/etc/config.site
3321 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3323 test "x$ac_site_file" = xNONE && continue
3324 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3326 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3327 sed 's/^/| /' "$ac_site_file" >&5
3329 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error $? "failed to load site script $ac_site_file
3332 See \`config.log' for more details" "$LINENO" 5; }
3336 if test -r "$cache_file"; then
3337 # Some versions of bash will fail to source /dev/null (special files
3338 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3339 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3341 $as_echo "$as_me: loading cache $cache_file" >&6;}
3343 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3344 *) . "./$cache_file";;
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3349 $as_echo "$as_me: creating cache $cache_file" >&6;}
3353 as_fn_append ac_header_list " fcntl.h"
3354 as_fn_append ac_header_list " linux/fd.h"
3355 as_fn_append ac_header_list " memory.h"
3356 as_fn_append ac_header_list " net/errno.h"
3357 as_fn_append ac_header_list " sgtty.h"
3358 as_fn_append ac_header_list " string.h"
3359 as_fn_append ac_header_list " sys/param.h"
3360 as_fn_append ac_header_list " sys/device.h"
3361 as_fn_append ac_header_list " sys/gentape.h"
3362 as_fn_append ac_header_list " sys/inet.h"
3363 as_fn_append ac_header_list " sys/io/trioctl.h"
3364 as_fn_append ac_header_list " sys/mtio.h"
3365 as_fn_append ac_header_list " sys/time.h"
3366 as_fn_append ac_header_list " sys/tprintf.h"
3367 as_fn_append ac_header_list " sys/tape.h"
3368 as_fn_append ac_header_list " unistd.h"
3369 as_fn_append ac_header_list " locale.h"
3370 as_fn_append ac_func_list " fchmod"
3371 as_fn_append ac_func_list " flockfile"
3372 as_fn_append ac_func_list " funlockfile"
3373 as_fn_append ac_header_list " features.h"
3374 as_fn_append ac_header_list " linewrap.h"
3375 as_fn_append ac_func_list " pathconf"
3376 as_fn_append ac_func_list " btowc"
3377 as_fn_append ac_func_list " canonicalize_file_name"
3378 as_fn_append ac_func_list " getcwd"
3379 as_fn_append ac_func_list " readlink"
3380 as_fn_append ac_func_list " realpath"
3381 as_fn_append ac_func_list " readlinkat"
3382 as_fn_append ac_func_list " chown"
3383 as_fn_append ac_func_list " fchown"
3384 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3385 as_fn_append ac_header_list " sys/socket.h"
3386 as_fn_append ac_func_list " fchdir"
3387 as_fn_append ac_header_list " dirent.h"
3388 as_fn_append ac_func_list " fdopendir"
3389 as_fn_append ac_func_list " faccessat"
3390 as_fn_append ac_func_list " fchmodat"
3391 as_fn_append ac_func_list " lchmod"
3392 as_fn_append ac_func_list " fcntl"
3393 as_fn_append ac_func_list " symlink"
3394 as_fn_append ac_func_list " mempcpy"
3395 as_fn_append ac_func_list " isblank"
3396 as_fn_append ac_func_list " iswctype"
3397 as_fn_append ac_func_list " mbsrtowcs"
3398 as_fn_append ac_func_list " wmemchr"
3399 as_fn_append ac_func_list " wmemcpy"
3400 as_fn_append ac_func_list " wmempcpy"
3401 as_fn_append ac_header_list " wctype.h"
3402 gl_fnmatch_required=GNU
3403 as_fn_append ac_header_list " stdio_ext.h"
3404 as_fn_append ac_header_list " sys/stat.h"
3405 as_fn_append ac_func_list " fstatat"
3406 as_fn_append ac_func_list " futimens"
3407 as_fn_append ac_func_list " getdelim"
3408 as_fn_append ac_func_list " getdtablesize"
3409 gl_getopt_required=GNU
3410 as_fn_append ac_header_list " getopt.h"
3411 as_fn_append ac_func_list " gettimeofday"
3412 as_fn_append ac_func_list " nanotime"
3413 as_fn_append ac_header_list " wchar.h"
3414 as_fn_append ac_header_list " stdint.h"
3415 as_fn_append ac_header_list " inttypes.h"
3416 as_fn_append ac_func_list " iswcntrl"
3417 as_fn_append ac_func_list " iswblank"
3418 as_fn_append ac_header_list " langinfo.h"
3419 as_fn_append ac_func_list " link"
3420 as_fn_append ac_func_list " openat"
3421 as_fn_append ac_func_list " linkat"
3422 as_fn_append ac_header_list " xlocale.h"
3423 as_fn_append ac_func_list " lstat"
3424 as_fn_append ac_func_list " mbsinit"
3425 as_fn_append ac_func_list " mbrtowc"
3426 as_fn_append ac_header_list " sys/mman.h"
3427 as_fn_append ac_func_list " mprotect"
3428 as_fn_append ac_func_list " mkdirat"
3429 as_fn_append ac_func_list " mkfifo"
3430 as_fn_append ac_func_list " mkfifoat"
3431 as_fn_append ac_func_list " mknodat"
3432 as_fn_append ac_func_list " mknod"
3433 as_fn_append ac_func_list " nl_langinfo"
3434 as_fn_append ac_header_list " priv.h"
3435 as_fn_append ac_header_list " malloc.h"
3436 as_fn_append ac_func_list " renameat"
3437 as_fn_append ac_func_list " secure_getenv"
3438 as_fn_append ac_header_list " selinux/selinux.h"
3439 as_fn_append ac_func_list " setenv"
3440 as_fn_append ac_func_list " sleep"
3441 as_fn_append ac_func_list " snprintf"
3442 as_fn_append ac_func_list " strdup"
3443 as_fn_append ac_func_list " tzset"
3444 as_fn_append ac_header_list " strings.h"
3445 as_fn_append ac_func_list " strndup"
3446 as_fn_append ac_func_list " strtoimax"
3447 as_fn_append ac_func_list " strtoumax"
3448 as_fn_append ac_func_list " symlinkat"
3449 as_fn_append ac_header_list " sysexits.h"
3450 as_fn_append ac_func_list " localtime_r"
3451 as_fn_append ac_func_list " timegm"
3452 as_fn_append ac_func_list " pipe"
3453 as_fn_append ac_func_list " unlinkat"
3454 as_fn_append ac_header_list " utime.h"
3455 as_fn_append ac_func_list " futimes"
3456 as_fn_append ac_func_list " futimesat"
3457 as_fn_append ac_func_list " utimensat"
3458 as_fn_append ac_func_list " lutimes"
3459 as_fn_append ac_func_list " vasnprintf"
3460 as_fn_append ac_func_list " wcrtomb"
3461 as_fn_append ac_func_list " wcwidth"
3462 as_fn_append ac_header_list " netdb.h"
3463 as_fn_append ac_header_list " sys/wait.h"
3464 as_fn_append ac_header_list " pwd.h"
3465 as_fn_append ac_header_list " grp.h"
3466 as_fn_append ac_func_list " setlocale"
3467 as_fn_append ac_func_list " fsync"
3468 gt_needs="$gt_needs need-formatstring-macros"
3469 # Check that the precious variables saved in the cache have kept the same
3471 ac_cache_corrupted=false
3472 for ac_var in $ac_precious_vars; do
3473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3474 eval ac_new_set=\$ac_env_${ac_var}_set
3475 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3476 eval ac_new_val=\$ac_env_${ac_var}_value
3477 case $ac_old_set,$ac_new_set in
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3480 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3481 ac_cache_corrupted=: ;;
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3484 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3485 ac_cache_corrupted=: ;;
3488 if test "x$ac_old_val" != "x$ac_new_val"; then
3489 # differences in whitespace do not lead to failure.
3490 ac_old_val_w=`echo x $ac_old_val`
3491 ac_new_val_w=`echo x $ac_new_val`
3492 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3494 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3495 ac_cache_corrupted=:
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3498 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3499 eval $ac_var=\$ac_old_val
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3502 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3504 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3507 # Pass precious variables to config.status.
3508 if test "$ac_new_set" = set; then
3510 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3511 *) ac_arg=$ac_var=$ac_new_val ;;
3513 case " $ac_configure_args " in
3514 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3515 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3519 if $ac_cache_corrupted; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3523 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3524 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3526 ## -------------------- ##
3527 ## Main body of script. ##
3528 ## -------------------- ##
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 for ac_dir in build-aux "$srcdir"/build-aux; do
3540 if test -f "$ac_dir/install-sh"; then
3542 ac_install_sh="$ac_aux_dir/install-sh -c"
3544 elif test -f "$ac_dir/install.sh"; then
3546 ac_install_sh="$ac_aux_dir/install.sh -c"
3548 elif test -f "$ac_dir/shtool"; then
3550 ac_install_sh="$ac_aux_dir/shtool install -c"
3554 if test -z "$ac_aux_dir"; then
3555 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3558 # These three variables are undocumented and unsupported,
3559 # and are intended to be withdrawn in a future Autoconf release.
3560 # They can cause serious problems if a builder's source tree is in a directory
3561 # whose full name contains unusual characters.
3562 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3563 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3564 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3567 ac_config_headers="$ac_config_headers config.h"
3570 am__api_version='1.14'
3572 # Find a good install program. We prefer a C program (faster),
3573 # so one script is as good as another. But avoid the broken or
3574 # incompatible versions:
3575 # SysV /etc/install, /usr/sbin/install
3576 # SunOS /usr/etc/install
3577 # IRIX /sbin/install
3579 # AmigaOS /C/install, which installs bootblocks on floppy discs
3580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3583 # OS/2's system install, which has a completely different semantic
3584 # ./install, which can be erroneously created by make from ./install.sh.
3585 # Reject install programs that cannot install multiple files.
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3587 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3588 if test -z "$INSTALL"; then
3589 if ${ac_cv_path_install+:} false; then :
3590 $as_echo_n "(cached) " >&6
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 # Account for people who put trailing slashes in PATH elements.
3598 case $as_dir/ in #((
3599 ./ | .// | /[cC]/* | \
3600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3604 # OSF1 and SCO ODT 3.0 have their own names for install.
3605 # Don't use installbsd from OSF since it installs stuff as root
3607 for ac_prog in ginstall scoinst install; do
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3610 if test $ac_prog = install &&
3611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3612 # AIX install. It has an incompatible calling convention.
3614 elif test $ac_prog = install &&
3615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3616 # program-specific install script used by HP pwplus--don't use.
3619 rm -rf conftest.one conftest.two conftest.dir
3620 echo one > conftest.one
3621 echo two > conftest.two
3623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3624 test -s conftest.one && test -s conftest.two &&
3625 test -s conftest.dir/conftest.one &&
3626 test -s conftest.dir/conftest.two
3628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3641 rm -rf conftest.one conftest.two conftest.dir
3644 if test "${ac_cv_path_install+set}" = set; then
3645 INSTALL=$ac_cv_path_install
3647 # As a last resort, use the slow shell script. Don't cache a
3648 # value for INSTALL within a source directory, because that will
3649 # break other packages using the cache if that directory is
3650 # removed, or if the value is a relative name.
3651 INSTALL=$ac_install_sh
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3655 $as_echo "$INSTALL" >&6; }
3657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3658 # It thinks the first close brace ends the variable substitution.
3659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3666 $as_echo_n "checking whether build environment is sane... " >&6; }
3667 # Reject unsafe characters in $srcdir or the absolute working directory
3668 # name. Accept space and tab only in the latter.
3672 *[\\\"\#\$\&\'\`$am_lf]*)
3673 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3677 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3680 # Do 'set' in a subshell so we don't clobber the current shell's
3681 # arguments. Must try -L first in case configure is actually a
3682 # symlink; some systems play weird games with the mod time of symlinks
3683 # (eg FreeBSD returns the mod time of the symlink's containing
3687 for am_try in 1 2; do
3688 echo "timestamp, slept: $am_has_slept" > conftest.file
3689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3690 if test "$*" = "X"; then
3692 set X `ls -t "$srcdir/configure" conftest.file`
3694 if test "$*" != "X $srcdir/configure conftest.file" \
3695 && test "$*" != "X conftest.file $srcdir/configure"; then
3697 # If neither matched, then we have a broken ls. This can happen
3698 # if, for instance, CONFIG_SHELL is bash and it inherits a
3699 # broken ls alias from the environment. This has actually
3700 # happened. Such a system could not be considered "sane".
3701 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3702 alias in your environment" "$LINENO" 5
3704 if test "$2" = conftest.file || test $am_try -eq 2; then
3711 test "$2" = conftest.file
3717 as_fn_error $? "newly created file is older than distributed files!
3718 Check your system clock" "$LINENO" 5
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3721 $as_echo "yes" >&6; }
3722 # If we didn't sleep, we still need to ensure time stamps of config.status and
3723 # generated files are strictly newer.
3725 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3732 test "$program_prefix" != NONE &&
3733 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3734 # Use a double $ so make ignores it.
3735 test "$program_suffix" != NONE &&
3736 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3737 # Double any \ or $.
3738 # By default was `s,x,x', remove it if useless.
3739 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3740 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3742 # expand $ac_aux_dir to an absolute path
3743 am_aux_dir=`cd $ac_aux_dir && pwd`
3745 if test x"${MISSING+set}" != xset; then
3748 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3750 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3753 # Use eval to expand $SHELL
3754 if eval "$MISSING --is-lightweight"; then
3755 am_missing_run="$MISSING "
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3759 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3762 if test x"${install_sh}" != xset; then
3765 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3767 install_sh="\${SHELL} $am_aux_dir/install-sh"
3771 # Installed binaries are usually stripped using 'strip' when the user
3772 # run "make install-strip". However 'strip' might not be the right
3773 # tool to use in cross-compilation environments, therefore Automake
3774 # will honor the 'STRIP' environment variable to overrule this program.
3775 if test "$cross_compiling" != no; then
3776 if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3778 set dummy ${ac_tool_prefix}strip; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if ${ac_cv_prog_STRIP+:} false; then :
3782 $as_echo_n "(cached) " >&6
3784 if test -n "$STRIP"; then
3785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 STRIP=$ac_cv_prog_STRIP
3805 if test -n "$STRIP"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3807 $as_echo "$STRIP" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3815 if test -z "$ac_cv_prog_STRIP"; then
3817 # Extract the first word of "strip", so it can be a program name with args.
3818 set dummy strip; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 if test -n "$ac_ct_STRIP"; then
3825 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_ac_ct_STRIP="strip"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3845 if test -n "$ac_ct_STRIP"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3847 $as_echo "$ac_ct_STRIP" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3853 if test "x$ac_ct_STRIP" = x; then
3856 case $cross_compiling:$ac_tool_warned in
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3860 ac_tool_warned=yes ;;
3865 STRIP="$ac_cv_prog_STRIP"
3869 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3872 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3873 if test -z "$MKDIR_P"; then
3874 if ${ac_cv_path_mkdir+:} false; then :
3875 $as_echo_n "(cached) " >&6
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3881 test -z "$as_dir" && as_dir=.
3882 for ac_prog in mkdir gmkdir; do
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3885 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3886 'mkdir (GNU coreutils) '* | \
3887 'mkdir (coreutils) '* | \
3888 'mkdir (fileutils) '4.1*)
3889 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3899 test -d ./--version && rmdir ./--version
3900 if test "${ac_cv_path_mkdir+set}" = set; then
3901 MKDIR_P="$ac_cv_path_mkdir -p"
3903 # As a last resort, use the slow shell script. Don't cache a
3904 # value for MKDIR_P within a source directory, because that will
3905 # break other packages using the cache if that directory is
3906 # removed, or if the value is a relative name.
3907 MKDIR_P="$ac_install_sh -d"
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3911 $as_echo "$MKDIR_P" >&6; }
3913 for ac_prog in gawk mawk nawk awk
3915 # Extract the first word of "$ac_prog", so it can be a program name with args.
3916 set dummy $ac_prog; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if ${ac_cv_prog_AWK+:} false; then :
3920 $as_echo_n "(cached) " >&6
3922 if test -n "$AWK"; then
3923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_AWK="$ac_prog"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 if test -n "$AWK"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3945 $as_echo "$AWK" >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3952 test -n "$AWK" && break
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3956 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3958 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3959 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3960 $as_echo_n "(cached) " >&6
3962 cat >conftest.make <<\_ACEOF
3965 @echo '@@@%%%=$(MAKE)=@@@%%%'
3967 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3968 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3970 eval ac_cv_prog_make_${ac_make}_set=yes;;
3972 eval ac_cv_prog_make_${ac_make}_set=no;;
3976 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3978 $as_echo "yes" >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3983 SET_MAKE="MAKE=${MAKE-make}"
3986 rm -rf .tst 2>/dev/null
3987 mkdir .tst 2>/dev/null
3988 if test -d .tst; then
3993 rmdir .tst 2>/dev/null
3995 # Check whether --enable-silent-rules was given.
3996 if test "${enable_silent_rules+set}" = set; then :
3997 enableval=$enable_silent_rules;
4000 case $enable_silent_rules in # (((
4001 yes) AM_DEFAULT_VERBOSITY=0;;
4002 no) AM_DEFAULT_VERBOSITY=1;;
4003 *) AM_DEFAULT_VERBOSITY=1;;
4005 am_make=${MAKE-make}
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4007 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4008 if ${am_cv_make_support_nested_variables+:} false; then :
4009 $as_echo_n "(cached) " >&6
4011 if $as_echo 'TRUE=$(BAR$(V))
4017 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4018 am_cv_make_support_nested_variables=yes
4020 am_cv_make_support_nested_variables=no
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4024 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4025 if test $am_cv_make_support_nested_variables = yes; then
4027 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4029 AM_V=$AM_DEFAULT_VERBOSITY
4030 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4034 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4035 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4036 # is not polluted with repeated "-I."
4037 am__isrc=' -I$(srcdir)'
4038 # test to see if srcdir already configured
4039 if test -f $srcdir/config.status; then
4040 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4044 # test whether we have cygpath
4045 if test -z "$CYGPATH_W"; then
4046 if (cygpath --version) >/dev/null 2>/dev/null; then
4047 CYGPATH_W='cygpath -w'
4054 # Define the identity of the package.
4059 cat >>confdefs.h <<_ACEOF
4060 #define PACKAGE "$PACKAGE"
4064 cat >>confdefs.h <<_ACEOF
4065 #define VERSION "$VERSION"
4068 # Some tools Automake needs.
4070 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4073 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4076 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4079 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4082 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4084 # For better backward compatibility. To be removed once Automake 1.9.x
4085 # dies out for good. For more background, see:
4086 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4087 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4088 mkdir_p='$(MKDIR_P)'
4090 # We need awk for the "check" target. The system "awk" is bad on
4092 # Always define AMTAR for backward compatibility. Yes, it's still used
4093 # in the wild :-( We should find a proper way to deprecate it ...
4097 # We'll loop over all known methods to create a tar archive until one works.
4098 _am_tools='gnutar plaintar pax cpio none'
4100 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4101 # There is notably a 21 bits limit for the UID and the GID. In fact,
4102 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4104 am_max_uid=2097151 # 2^21 - 1
4105 am_max_gid=$am_max_uid
4106 # The $UID and $GID variables are not portable, so we need to resort
4107 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4108 # below are definitely unexpected, so allow the users to see them
4109 # (that is, avoid stderr redirection).
4110 am_uid=`id -u || echo unknown`
4111 am_gid=`id -g || echo unknown`
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4113 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4114 if test $am_uid -le $am_max_uid; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4116 $as_echo "yes" >&6; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4123 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4124 if test $am_gid -le $am_max_gid; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126 $as_echo "yes" >&6; }
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4134 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
4136 # Go ahead even if we have the value already cached. We do so because we
4137 # need to set the values for the 'am__tar' and 'am__untar' variables.
4138 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4140 for _am_tool in $_am_tools; do
4143 for _am_tar in tar gnutar gtar; do
4144 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4145 ($_am_tar --version) >&5 2>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } && break
4150 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4151 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4152 am__untar="$_am_tar -xf -"
4155 # Must skip GNU tar: if it does not support --format= it doesn't create
4156 # ustar tarball either.
4157 (tar --version) >/dev/null 2>&1 && continue
4158 am__tar='tar chf - "$$tardir"'
4159 am__tar_='tar chf - "$tardir"'
4160 am__untar='tar xf -'
4163 am__tar='pax -L -x ustar -w "$$tardir"'
4164 am__tar_='pax -L -x ustar -w "$tardir"'
4168 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4169 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4170 am__untar='cpio -i -H ustar -d'
4179 # If the value was cached, stop now. We just wanted to have am__tar
4180 # and am__untar set.
4181 test -n "${am_cv_prog_tar_ustar}" && break
4183 # tar/untar a dummy directory, and stop if the command works.
4186 echo GrepMe > conftest.dir/file
4187 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4188 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }
4193 if test -s conftest.tar; then
4194 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4195 ($am__untar <conftest.tar) >&5 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }
4199 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4200 (cat conftest.dir/file) >&5 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }
4204 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4209 if ${am_cv_prog_tar_ustar+:} false; then :
4210 $as_echo_n "(cached) " >&6
4212 am_cv_prog_tar_ustar=$_am_tool
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4216 $as_echo "$am_cv_prog_tar_ustar" >&6; }
4223 # POSIX will say in a future version that running "rm -f" with no argument
4224 # is OK; and we want to be able to make that assumption in our Makefile
4225 # recipes. So use an aggressive probe to check that the usage we want is
4226 # actually supported "in the wild" to an acceptable degree.
4227 # See automake bug#10828.
4228 # To make any issue more visible, cause the running configure to be aborted
4229 # by default if the 'rm' program in use doesn't match our expectations; the
4230 # user can still override this though.
4231 if rm -f && rm -fr && rm -rf; then : OK; else
4235 Your 'rm' program seems unable to run without file operands specified
4236 on the command line, even when the '-f' option is present. This is contrary
4237 to the behaviour of most rm programs out there, and not conforming with
4238 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4240 Please tell bug-automake@gnu.org about your system, including the value
4241 of your $PATH and any error possibly output before this message. This
4242 can help us improve future automake versions.
4245 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4246 echo 'Configuration will proceed anyway, since you have set the' >&2
4247 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4251 Aborting the configuration process, to ensure you take notice of the issue.
4253 You can download and install GNU coreutils to get an 'rm' implementation
4254 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4256 If you want to complete the configuration process using your problematic
4257 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4258 to "yes", and re-run configure.
4261 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4265 # Enable silent rules by default:
4266 # Check whether --enable-silent-rules was given.
4267 if test "${enable_silent_rules+set}" = set; then :
4268 enableval=$enable_silent_rules;
4271 case $enable_silent_rules in # (((
4272 yes) AM_DEFAULT_VERBOSITY=0;;
4273 no) AM_DEFAULT_VERBOSITY=1;;
4274 *) AM_DEFAULT_VERBOSITY=0;;
4276 am_make=${MAKE-make}
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4278 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4279 if ${am_cv_make_support_nested_variables+:} false; then :
4280 $as_echo_n "(cached) " >&6
4282 if $as_echo 'TRUE=$(BAR$(V))
4288 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4289 am_cv_make_support_nested_variables=yes
4291 am_cv_make_support_nested_variables=no
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4295 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4296 if test $am_cv_make_support_nested_variables = yes; then
4298 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4300 AM_V=$AM_DEFAULT_VERBOSITY
4301 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4306 DEPDIR="${am__leading_dot}deps"
4308 ac_config_commands="$ac_config_commands depfiles"
4311 am_make=${MAKE-make}
4312 cat > confinc << 'END'
4314 @echo this is the am__doit target
4317 # If we don't find an include directive, just comment out the code.
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4319 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4323 # First try GNU make style include.
4324 echo "include confinc" > confmf
4325 # Ignore all kinds of additional output from 'make'.
4326 case `$am_make -s -f confmf 2> /dev/null` in #(
4327 *the\ am__doit\ target*)
4333 # Now try BSD make style include.
4334 if test "$am__include" = "#"; then
4335 echo '.include "confinc"' > confmf
4336 case `$am_make -s -f confmf 2> /dev/null` in #(
4337 *the\ am__doit\ target*)
4338 am__include=.include
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4347 $as_echo "$_am_result" >&6; }
4348 rm -f confinc confmf
4350 # Check whether --enable-dependency-tracking was given.
4351 if test "${enable_dependency_tracking+set}" = set; then :
4352 enableval=$enable_dependency_tracking;
4355 if test "x$enable_dependency_tracking" != xno; then
4356 am_depcomp="$ac_aux_dir/depcomp"
4360 if test "x$enable_dependency_tracking" != xno; then
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 if test -n "$ac_tool_prefix"; then
4375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378 $as_echo_n "checking for $ac_word... " >&6; }
4379 if ${ac_cv_prog_CC+:} false; then :
4380 $as_echo_n "(cached) " >&6
4382 if test -n "$CC"; then
4383 ac_cv_prog_CC="$CC" # Let the user override the test.
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 if test -n "$CC"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4405 $as_echo "$CC" >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4413 if test -z "$ac_cv_prog_CC"; then
4415 # Extract the first word of "gcc", so it can be a program name with args.
4416 set dummy gcc; ac_word=$2
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4420 $as_echo_n "(cached) " >&6
4422 if test -n "$ac_ct_CC"; then
4423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4432 ac_cv_prog_ac_ct_CC="gcc"
4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4443 if test -n "$ac_ct_CC"; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4445 $as_echo "$ac_ct_CC" >&6; }
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4451 if test "x$ac_ct_CC" = x; then
4454 case $cross_compiling:$ac_tool_warned in
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4458 ac_tool_warned=yes ;;
4466 if test -z "$CC"; then
4467 if test -n "$ac_tool_prefix"; then
4468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4469 set dummy ${ac_tool_prefix}cc; ac_word=$2
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if ${ac_cv_prog_CC+:} false; then :
4473 $as_echo_n "(cached) " >&6
4475 if test -n "$CC"; then
4476 ac_cv_prog_CC="$CC" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_CC="${ac_tool_prefix}cc"
4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test -n "$CC"; then
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4498 $as_echo "$CC" >&6; }
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501 $as_echo "no" >&6; }
4507 if test -z "$CC"; then
4508 # Extract the first word of "cc", so it can be a program name with args.
4509 set dummy cc; ac_word=$2
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if ${ac_cv_prog_CC+:} false; then :
4513 $as_echo_n "(cached) " >&6
4515 if test -n "$CC"; then
4516 ac_cv_prog_CC="$CC" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527 ac_prog_rejected=yes
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 if test $ac_prog_rejected = yes; then
4539 # We found a bogon in the path, so make sure we never use it.
4540 set dummy $ac_cv_prog_CC
4542 if test $# != 0; then
4543 # We chose a different compiler from the bogus one.
4544 # However, it has the same basename, so the bogon will be chosen
4545 # first if we set CC to just the basename; use the full file name.
4547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4553 if test -n "$CC"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4555 $as_echo "$CC" >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4563 if test -z "$CC"; then
4564 if test -n "$ac_tool_prefix"; then
4565 for ac_prog in cl.exe
4567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if ${ac_cv_prog_CC+:} false; then :
4572 $as_echo_n "(cached) " >&6
4574 if test -n "$CC"; then
4575 ac_cv_prog_CC="$CC" # Let the user override the test.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 if test -n "$CC"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4597 $as_echo "$CC" >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4604 test -n "$CC" && break
4607 if test -z "$CC"; then
4609 for ac_prog in cl.exe
4611 # Extract the first word of "$ac_prog", so it can be a program name with args.
4612 set dummy $ac_prog; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4616 $as_echo_n "(cached) " >&6
4618 if test -n "$ac_ct_CC"; then
4619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_prog_ac_ct_CC="$ac_prog"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4639 if test -n "$ac_ct_CC"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4641 $as_echo "$ac_ct_CC" >&6; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4648 test -n "$ac_ct_CC" && break
4651 if test "x$ac_ct_CC" = x; then
4654 case $cross_compiling:$ac_tool_warned in
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4658 ac_tool_warned=yes ;;
4667 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4669 as_fn_error $? "no acceptable C compiler found in \$PATH
4670 See \`config.log' for more details" "$LINENO" 5; }
4672 # Provide some information about the compiler.
4673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4676 for ac_option in --version -v -V -qversion; do
4677 { { ac_try="$ac_compiler $ac_option >&5"
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683 $as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4686 if test -s conftest.err; then
4688 ... rest of stderr output deleted ...
4689 10q' conftest.err >conftest.er1
4690 cat conftest.er1 >&5
4692 rm -f conftest.er1 conftest.err
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4708 ac_clean_files_save=$ac_clean_files
4709 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4710 # Try to create an executable without -o first, disregard a.out.
4711 # It will help us diagnose broken compilers, and finding out an intuition
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4714 $as_echo_n "checking whether the C compiler works... " >&6; }
4715 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4717 # The possible output files:
4718 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4721 for ac_file in $ac_files
4724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4730 if { { ac_try="$ac_link_default"
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4736 $as_echo "$ac_try_echo"; } >&5
4737 (eval "$ac_link_default") 2>&5
4739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4740 test $ac_status = 0; }; then :
4741 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4742 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4743 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4744 # so that the user can short-circuit this test for compilers unknown to
4746 for ac_file in $ac_files ''
4748 test -f "$ac_file" || continue
4750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4753 # We found the default executable, but exeext='' is most
4757 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4761 # We set ac_cv_exeext here because the later test for it is not
4762 # safe: cross compilers may not add the suffix if given an `-o'
4763 # argument, so we may need to know it at that point already.
4764 # Even if this section looks crufty: it has the advantage of
4771 test "$ac_cv_exeext" = no && ac_cv_exeext=
4776 if test -z "$ac_file"; then :
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 $as_echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4784 as_fn_error 77 "C compiler cannot create executables
4785 See \`config.log' for more details" "$LINENO" 5; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4788 $as_echo "yes" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4791 $as_echo_n "checking for C compiler default output file name... " >&6; }
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4793 $as_echo "$ac_file" >&6; }
4794 ac_exeext=$ac_cv_exeext
4796 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4797 ac_clean_files=$ac_clean_files_save
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4799 $as_echo_n "checking for suffix of executables... " >&6; }
4800 if { { ac_try="$ac_link"
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4806 $as_echo "$ac_try_echo"; } >&5
4807 (eval "$ac_link") 2>&5
4809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4810 test $ac_status = 0; }; then :
4811 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4812 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4813 # work properly (i.e., refer to `conftest.exe'), while it won't with
4815 for ac_file in conftest.exe conftest conftest.*; do
4816 test -f "$ac_file" || continue
4818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4819 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4827 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4828 See \`config.log' for more details" "$LINENO" 5; }
4830 rm -f conftest conftest$ac_cv_exeext
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4832 $as_echo "$ac_cv_exeext" >&6; }
4834 rm -f conftest.$ac_ext
4835 EXEEXT=$ac_cv_exeext
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4843 FILE *f = fopen ("conftest.out", "w");
4844 return ferror (f) || fclose (f) != 0;
4850 ac_clean_files="$ac_clean_files conftest.out"
4851 # Check that the compiler produces executables we can run. If not, either
4852 # the compiler is broken, or we cross compile.
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4854 $as_echo_n "checking whether we are cross compiling... " >&6; }
4855 if test "$cross_compiling" != yes; then
4856 { { ac_try="$ac_link"
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4862 $as_echo "$ac_try_echo"; } >&5
4863 (eval "$ac_link") 2>&5
4865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4866 test $ac_status = 0; }
4867 if { ac_try='./conftest$ac_cv_exeext'
4868 { { case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4873 $as_echo "$ac_try_echo"; } >&5
4874 (eval "$ac_try") 2>&5
4876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877 test $ac_status = 0; }; }; then
4880 if test "$cross_compiling" = maybe; then
4883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4885 as_fn_error $? "cannot run C compiled programs.
4886 If you meant to cross compile, use \`--host'.
4887 See \`config.log' for more details" "$LINENO" 5; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4892 $as_echo "$cross_compiling" >&6; }
4894 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4895 ac_clean_files=$ac_clean_files_save
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4897 $as_echo_n "checking for suffix of object files... " >&6; }
4898 if ${ac_cv_objext+:} false; then :
4899 $as_echo_n "(cached) " >&6
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4912 rm -f conftest.o conftest.obj
4913 if { { ac_try="$ac_compile"
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4919 $as_echo "$ac_try_echo"; } >&5
4920 (eval "$ac_compile") 2>&5
4922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4923 test $ac_status = 0; }; then :
4924 for ac_file in conftest.o conftest.obj conftest.*; do
4925 test -f "$ac_file" || continue;
4927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4928 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4933 $as_echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4938 as_fn_error $? "cannot compute suffix of object files: cannot compile
4939 See \`config.log' for more details" "$LINENO" 5; }
4941 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4944 $as_echo "$ac_cv_objext" >&6; }
4945 OBJEXT=$ac_cv_objext
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4948 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4949 if ${ac_cv_c_compiler_gnu+:} false; then :
4950 $as_echo_n "(cached) " >&6
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4966 if ac_fn_c_try_compile "$LINENO"; then :
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4976 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4977 if test $ac_compiler_gnu = yes; then
4982 ac_test_CFLAGS=${CFLAGS+set}
4983 ac_save_CFLAGS=$CFLAGS
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4985 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4986 if ${ac_cv_prog_cc_g+:} false; then :
4987 $as_echo_n "(cached) " >&6
4989 ac_save_c_werror_flag=$ac_c_werror_flag
4990 ac_c_werror_flag=yes
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
5004 if ac_fn_c_try_compile "$LINENO"; then :
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5019 if ac_fn_c_try_compile "$LINENO"; then :
5022 ac_c_werror_flag=$ac_save_c_werror_flag
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5035 if ac_fn_c_try_compile "$LINENO"; then :
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 ac_c_werror_flag=$ac_save_c_werror_flag
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5046 $as_echo "$ac_cv_prog_cc_g" >&6; }
5047 if test "$ac_test_CFLAGS" = set; then
5048 CFLAGS=$ac_save_CFLAGS
5049 elif test $ac_cv_prog_cc_g = yes; then
5050 if test "$GCC" = yes; then
5056 if test "$GCC" = yes; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5063 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5064 if ${ac_cv_prog_cc_c89+:} false; then :
5065 $as_echo_n "(cached) " >&6
5067 ac_cv_prog_cc_c89=no
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5075 struct buf { int x; };
5076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5077 static char *e (p, i)
5083 static char *f (char * (*g) (char **, int), char **p, ...)
5088 s = g (p, va_arg (v,int));
5093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5094 function prototypes and stuff, but not '\xHH' hex character constants.
5095 These don't provoke an error unfortunately, instead are silently treated
5096 as 'x'. The following induces an error, until -std is added to get
5097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5098 array size at least. It's necessary to write '\x00'==0 to get something
5099 that's true only with -std. */
5100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5103 inside strings and character constants. */
5105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5107 int test (int i, double x);
5108 struct s1 {int (*f) (int a);};
5109 struct s2 {int (*f) (double a);};
5110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5124 CC="$ac_save_CC $ac_arg"
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126 ac_cv_prog_cc_c89=$ac_arg
5128 rm -f core conftest.err conftest.$ac_objext
5129 test "x$ac_cv_prog_cc_c89" != "xno" && break
5131 rm -f conftest.$ac_ext
5136 case "x$ac_cv_prog_cc_c89" in
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5139 $as_echo "none needed" >&6; } ;;
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5142 $as_echo "unsupported" >&6; } ;;
5144 CC="$CC $ac_cv_prog_cc_c89"
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5146 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5148 if test "x$ac_cv_prog_cc_c89" != xno; then :
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159 ac_cpp='$CPP $CPPFLAGS'
5160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5164 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5165 if ${am_cv_prog_cc_c_o+:} false; then :
5166 $as_echo_n "(cached) " >&6
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5179 # Make sure it works both with $CC and with simple cc.
5180 # Following AC_PROG_CC_C_O, we do the test twice because some
5181 # compilers refuse to overwrite an existing .o file with -o,
5182 # though they will create one.
5183 am_cv_prog_cc_c_o=yes
5185 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5186 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } \
5190 && test -f conftest2.$ac_objext; then
5193 am_cv_prog_cc_c_o=no
5197 rm -f core conftest*
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5201 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5202 if test "$am_cv_prog_cc_c_o" != yes; then
5203 # Losing compiler, so override with the script.
5204 # FIXME: It is wrong to rewrite CC.
5205 # But if we don't then we get into trouble of one sort or another.
5206 # A longer-term fix would be to have automake use am__CC in this case,
5207 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5208 CC="$am_aux_dir/compile $CC"
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217 depcc="$CC" am_compiler_list=
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5220 $as_echo_n "checking dependency style of $depcc... " >&6; }
5221 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5222 $as_echo_n "(cached) " >&6
5224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5225 # We make a subdir and do the tests there. Otherwise we can end up
5226 # making bogus files that we don't know about and never remove. For
5227 # instance it was reported that on HP-UX the gcc test will end up
5228 # making a dummy file named 'D' -- because '-MD' means "put the output
5232 # Copy depcomp to subdir because otherwise we won't find it if we're
5233 # using a relative directory.
5234 cp "$am_depcomp" conftest.dir
5236 # We will build objects and dependencies in a subdirectory because
5237 # it helps to detect inapplicable dependency modes. For instance
5238 # both Tru64's cc and ICC support -MD to output dependencies as a
5239 # side effect of compilation, but ICC will put the dependencies in
5240 # the current directory while Tru64 will put them in the object
5244 am_cv_CC_dependencies_compiler_type=none
5245 if test "$am_compiler_list" = ""; then
5246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5249 case " $depcc " in #(
5250 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5253 for depmode in $am_compiler_list; do
5254 # Setup a source with many dependencies, because some compilers
5255 # like to wrap large dependency lists on column 80 (with \), and
5256 # we should not choose a depcomp mode which is confused by this.
5258 # We need to recreate these files for each test, as the compiler may
5259 # overwrite some of them when testing with obscure command lines.
5260 # This happens at least with the AIX C compiler.
5262 for i in 1 2 3 4 5 6; do
5263 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5264 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5265 # Solaris 10 /bin/sh.
5266 echo '/* dummy */' > sub/conftst$i.h
5268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5270 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5271 # mode. It turns out that the SunPro C++ compiler does not properly
5272 # handle '-M -o', and we need to detect this. Also, some Intel
5273 # versions had trouble with output in subdirs.
5274 am__obj=sub/conftest.${OBJEXT-o}
5275 am__minus_obj="-o $am__obj"
5278 # This depmode causes a compiler race in universal mode.
5279 test "$am__universal" = false || continue
5282 # After this tag, mechanisms are not by side-effect, so they'll
5283 # only be used when explicitly requested.
5284 if test "x$enable_dependency_tracking" = xyes; then
5290 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5291 # This compiler won't grok '-c -o', but also, the minuso test has
5292 # not run yet. These depmodes are late enough in the game, and
5293 # so weak that their functioning should not be impacted.
5294 am__obj=conftest.${OBJEXT-o}
5299 if depmode=$depmode \
5300 source=sub/conftest.c object=$am__obj \
5301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5302 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5303 >/dev/null 2>conftest.err &&
5304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5306 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5308 # icc doesn't choke on unknown options, it will just issue warnings
5309 # or remarks (even with -Werror). So we grep stderr for any message
5310 # that says an option was ignored or not supported.
5311 # When given -MP, icc 7.0 and 7.1 complain thusly:
5312 # icc: Command line warning: ignoring option '-M'; no argument required
5313 # The diagnosis changed in icc 8.0:
5314 # icc: Command line remark: option '-MP' not supported
5315 if (grep 'ignoring option' conftest.err ||
5316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5317 am_cv_CC_dependencies_compiler_type=$depmode
5326 am_cv_CC_dependencies_compiler_type=none
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5331 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5332 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5335 test "x$enable_dependency_tracking" != xno \
5336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5338 am__fastdepCC_FALSE='#'
5340 am__fastdepCC_TRUE='#'
5341 am__fastdepCC_FALSE=
5345 case $ac_cv_prog_cc_stdc in #(
5347 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5350 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5351 if ${ac_cv_prog_cc_c99+:} false; then :
5352 $as_echo_n "(cached) " >&6
5354 ac_cv_prog_cc_c99=no
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5359 #include <stdbool.h>
5364 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5365 #define debug(...) fprintf (stderr, __VA_ARGS__)
5366 #define showlist(...) puts (#__VA_ARGS__)
5367 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5369 test_varargs_macros (void)
5374 debug ("X = %d\n", x);
5375 showlist (The first, second, and third items.);
5376 report (x>y, "x is %d but y is %d", x, y);
5379 // Check long long types.
5380 #define BIG64 18446744073709551615ull
5381 #define BIG32 4294967295ul
5382 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5384 your preprocessor is broken;
5388 your preprocessor is broken;
5390 static long long int bignum = -9223372036854775807LL;
5391 static unsigned long long int ubignum = BIG64;
5393 struct incomplete_array
5401 const wchar_t *name;
5405 typedef const char *ccp;
5408 test_restrict (ccp restrict text)
5410 // See if C++-style comments work.
5411 // Iterate through items via the restricted pointer.
5412 // Also check for declarations in for loops.
5413 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5418 // Check varargs and va_copy.
5420 test_varargs (const char *format, ...)
5423 va_start (args, format);
5425 va_copy (args_copy, args);
5436 str = va_arg (args_copy, const char *);
5439 number = va_arg (args_copy, int);
5442 fnumber = va_arg (args_copy, double);
5457 _Bool success = false;
5460 if (test_restrict ("String literal") == 0)
5462 char *restrict newvar = "Another string";
5465 test_varargs ("s, d' f .", "string", 65, 34.234);
5466 test_varargs_macros ();
5468 // Check flexible array members.
5469 struct incomplete_array *ia =
5470 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5472 for (int i = 0; i < ia->datasize; ++i)
5473 ia->data[i] = i * 1.234;
5475 // Check named initializers.
5476 struct named_init ni = {
5478 .name = L"Test wide string",
5479 .average = 543.34343,
5484 int dynamic_array[ni.number];
5485 dynamic_array[ni.number - 1] = 543;
5487 // work around unused variable warnings
5488 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5489 || dynamic_array[ni.number - 1] != 543);
5495 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5497 CC="$ac_save_CC $ac_arg"
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499 ac_cv_prog_cc_c99=$ac_arg
5501 rm -f core conftest.err conftest.$ac_objext
5502 test "x$ac_cv_prog_cc_c99" != "xno" && break
5504 rm -f conftest.$ac_ext
5509 case "x$ac_cv_prog_cc_c99" in
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5512 $as_echo "none needed" >&6; } ;;
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5515 $as_echo "unsupported" >&6; } ;;
5517 CC="$CC $ac_cv_prog_cc_c99"
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5519 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5521 if test "x$ac_cv_prog_cc_c99" != xno; then :
5522 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5525 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5526 if ${ac_cv_prog_cc_c89+:} false; then :
5527 $as_echo_n "(cached) " >&6
5529 ac_cv_prog_cc_c89=no
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5536 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5537 struct buf { int x; };
5538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5539 static char *e (p, i)
5545 static char *f (char * (*g) (char **, int), char **p, ...)
5550 s = g (p, va_arg (v,int));
5555 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5556 function prototypes and stuff, but not '\xHH' hex character constants.
5557 These don't provoke an error unfortunately, instead are silently treated
5558 as 'x'. The following induces an error, until -std is added to get
5559 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5560 array size at least. It's necessary to write '\x00'==0 to get something
5561 that's true only with -std. */
5562 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5564 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5565 inside strings and character constants. */
5567 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5569 int test (int i, double x);
5570 struct s1 {int (*f) (int a);};
5571 struct s2 {int (*f) (double a);};
5572 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5578 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5584 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5586 CC="$ac_save_CC $ac_arg"
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588 ac_cv_prog_cc_c89=$ac_arg
5590 rm -f core conftest.err conftest.$ac_objext
5591 test "x$ac_cv_prog_cc_c89" != "xno" && break
5593 rm -f conftest.$ac_ext
5598 case "x$ac_cv_prog_cc_c89" in
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5601 $as_echo "none needed" >&6; } ;;
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5604 $as_echo "unsupported" >&6; } ;;
5606 CC="$CC $ac_cv_prog_cc_c89"
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5608 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5610 if test "x$ac_cv_prog_cc_c89" != xno; then :
5611 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5613 ac_cv_prog_cc_stdc=no
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5620 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5621 if ${ac_cv_prog_cc_stdc+:} false; then :
5622 $as_echo_n "(cached) " >&6
5625 case $ac_cv_prog_cc_stdc in #(
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5628 $as_echo "unsupported" >&6; } ;; #(
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5631 $as_echo "none needed" >&6; } ;; #(
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5634 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5638 if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5640 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_RANLIB+:} false; then :
5644 $as_echo_n "(cached) " >&6
5646 if test -n "$RANLIB"; then
5647 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 RANLIB=$ac_cv_prog_RANLIB
5667 if test -n "$RANLIB"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5669 $as_echo "$RANLIB" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5677 if test -z "$ac_cv_prog_RANLIB"; then
5678 ac_ct_RANLIB=$RANLIB
5679 # Extract the first word of "ranlib", so it can be a program name with args.
5680 set dummy ranlib; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 if test -n "$ac_ct_RANLIB"; then
5687 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_RANLIB="ranlib"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5707 if test -n "$ac_ct_RANLIB"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5709 $as_echo "$ac_ct_RANLIB" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5715 if test "x$ac_ct_RANLIB" = x; then
5718 case $cross_compiling:$ac_tool_warned in
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722 ac_tool_warned=yes ;;
5724 RANLIB=$ac_ct_RANLIB
5727 RANLIB="$ac_cv_prog_RANLIB"
5730 for ac_prog in 'bison -y' byacc
5732 # Extract the first word of "$ac_prog", so it can be a program name with args.
5733 set dummy $ac_prog; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if ${ac_cv_prog_YACC+:} false; then :
5737 $as_echo_n "(cached) " >&6
5739 if test -n "$YACC"; then
5740 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749 ac_cv_prog_YACC="$ac_prog"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 YACC=$ac_cv_prog_YACC
5760 if test -n "$YACC"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5762 $as_echo "$YACC" >&6; }
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5769 test -n "$YACC" && break
5771 test -n "$YACC" || YACC="yacc"
5775 ac_cpp='$CPP $CPPFLAGS'
5776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5780 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5781 # On Suns, sometimes $CPP names a directory.
5782 if test -n "$CPP" && test -d "$CPP"; then
5785 if test -z "$CPP"; then
5786 if ${ac_cv_prog_CPP+:} false; then :
5787 $as_echo_n "(cached) " >&6
5789 # Double quotes because CPP needs to be expanded
5790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5793 for ac_c_preproc_warn_flag in '' yes
5795 # Use a header file that comes with gcc, so configuring glibc
5796 # with a fresh cross-compiler works.
5797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5798 # <limits.h> exists even on freestanding compilers.
5799 # On the NeXT, cc -E runs the code through the compiler's parser,
5800 # not just through cpp. "Syntax error" is here to catch this case.
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5804 # include <limits.h>
5806 # include <assert.h>
5810 if ac_fn_c_try_cpp "$LINENO"; then :
5813 # Broken: fails on valid input.
5816 rm -f conftest.err conftest.i conftest.$ac_ext
5818 # OK, works on sane cases. Now check whether nonexistent headers
5819 # can be detected and how.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #include <ac_nonexistent.h>
5824 if ac_fn_c_try_cpp "$LINENO"; then :
5825 # Broken: success on invalid input.
5828 # Passes both tests.
5832 rm -f conftest.err conftest.i conftest.$ac_ext
5835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5836 rm -f conftest.i conftest.err conftest.$ac_ext
5837 if $ac_preproc_ok; then :
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5850 $as_echo "$CPP" >&6; }
5852 for ac_c_preproc_warn_flag in '' yes
5854 # Use a header file that comes with gcc, so configuring glibc
5855 # with a fresh cross-compiler works.
5856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5857 # <limits.h> exists even on freestanding compilers.
5858 # On the NeXT, cc -E runs the code through the compiler's parser,
5859 # not just through cpp. "Syntax error" is here to catch this case.
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5863 # include <limits.h>
5865 # include <assert.h>
5869 if ac_fn_c_try_cpp "$LINENO"; then :
5872 # Broken: fails on valid input.
5875 rm -f conftest.err conftest.i conftest.$ac_ext
5877 # OK, works on sane cases. Now check whether nonexistent headers
5878 # can be detected and how.
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 #include <ac_nonexistent.h>
5883 if ac_fn_c_try_cpp "$LINENO"; then :
5884 # Broken: success on invalid input.
5887 # Passes both tests.
5891 rm -f conftest.err conftest.i conftest.$ac_ext
5894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5895 rm -f conftest.i conftest.err conftest.$ac_ext
5896 if $ac_preproc_ok; then :
5899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5901 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5902 See \`config.log' for more details" "$LINENO" 5; }
5906 ac_cpp='$CPP $CPPFLAGS'
5907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5913 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5914 if ${ac_cv_path_GREP+:} false; then :
5915 $as_echo_n "(cached) " >&6
5917 if test -z "$GREP"; then
5918 ac_path_GREP_found=false
5919 # Loop through the user's path and test for each of PROGNAME-LIST
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5924 test -z "$as_dir" && as_dir=.
5925 for ac_prog in grep ggrep; do
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5928 as_fn_executable_p "$ac_path_GREP" || continue
5929 # Check for GNU ac_path_GREP and select it if it is found.
5930 # Check for GNU $ac_path_GREP
5931 case `"$ac_path_GREP" --version 2>&1` in
5933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5936 $as_echo_n 0123456789 >"conftest.in"
5939 cat "conftest.in" "conftest.in" >"conftest.tmp"
5940 mv "conftest.tmp" "conftest.in"
5941 cp "conftest.in" "conftest.nl"
5942 $as_echo 'GREP' >> "conftest.nl"
5943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5945 as_fn_arith $ac_count + 1 && ac_count=$as_val
5946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5947 # Best one so far, save it but keep looking for a better one
5948 ac_cv_path_GREP="$ac_path_GREP"
5949 ac_path_GREP_max=$ac_count
5951 # 10*(2^10) chars as input seems more than enough
5952 test $ac_count -gt 10 && break
5954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5957 $ac_path_GREP_found && break 3
5962 if test -z "$ac_cv_path_GREP"; then
5963 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5966 ac_cv_path_GREP=$GREP
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5971 $as_echo "$ac_cv_path_GREP" >&6; }
5972 GREP="$ac_cv_path_GREP"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5976 $as_echo_n "checking for egrep... " >&6; }
5977 if ${ac_cv_path_EGREP+:} false; then :
5978 $as_echo_n "(cached) " >&6
5980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5981 then ac_cv_path_EGREP="$GREP -E"
5983 if test -z "$EGREP"; then
5984 ac_path_EGREP_found=false
5985 # Loop through the user's path and test for each of PROGNAME-LIST
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5990 test -z "$as_dir" && as_dir=.
5991 for ac_prog in egrep; do
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5994 as_fn_executable_p "$ac_path_EGREP" || continue
5995 # Check for GNU ac_path_EGREP and select it if it is found.
5996 # Check for GNU $ac_path_EGREP
5997 case `"$ac_path_EGREP" --version 2>&1` in
5999 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6002 $as_echo_n 0123456789 >"conftest.in"
6005 cat "conftest.in" "conftest.in" >"conftest.tmp"
6006 mv "conftest.tmp" "conftest.in"
6007 cp "conftest.in" "conftest.nl"
6008 $as_echo 'EGREP' >> "conftest.nl"
6009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6011 as_fn_arith $ac_count + 1 && ac_count=$as_val
6012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6013 # Best one so far, save it but keep looking for a better one
6014 ac_cv_path_EGREP="$ac_path_EGREP"
6015 ac_path_EGREP_max=$ac_count
6017 # 10*(2^10) chars as input seems more than enough
6018 test $ac_count -gt 10 && break
6020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6023 $ac_path_EGREP_found && break 3
6028 if test -z "$ac_cv_path_EGREP"; then
6029 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6032 ac_cv_path_EGREP=$EGREP
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6038 $as_echo "$ac_cv_path_EGREP" >&6; }
6039 EGREP="$ac_cv_path_EGREP"
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6045 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6046 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6047 $as_echo_n "(cached) " >&6
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6060 gl_cv_c_amsterdam_compiler=yes
6062 gl_cv_c_amsterdam_compiler=no
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6069 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6070 if test -z "$AR"; then
6071 if test $gl_cv_c_amsterdam_compiler = yes; then
6073 if test -z "$ARFLAGS"; then
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}ar; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_AR+:} false; then :
6083 $as_echo_n "(cached) " >&6
6085 if test -n "$AR"; then
6086 ac_cv_prog_AR="$AR" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_AR="${ac_tool_prefix}ar"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 if test -n "$AR"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6108 $as_echo "$AR" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6116 if test -z "$ac_cv_prog_AR"; then
6118 # Extract the first word of "ar", so it can be a program name with args.
6119 set dummy ar; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6123 $as_echo_n "(cached) " >&6
6125 if test -n "$ac_ct_AR"; then
6126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_ac_ct_AR="ar"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6146 if test -n "$ac_ct_AR"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6148 $as_echo "$ac_ct_AR" >&6; }
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6154 if test "x$ac_ct_AR" = x; then
6157 case $cross_compiling:$ac_tool_warned in
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6161 ac_tool_warned=yes ;;
6169 if test -z "$ARFLAGS"; then
6174 if test -z "$ARFLAGS"; then
6180 if test -z "$RANLIB"; then
6181 if test $gl_cv_c_amsterdam_compiler = yes; then
6184 if test -n "$ac_tool_prefix"; then
6185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if ${ac_cv_prog_RANLIB+:} false; then :
6190 $as_echo_n "(cached) " >&6
6192 if test -n "$RANLIB"; then
6193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 RANLIB=$ac_cv_prog_RANLIB
6213 if test -n "$RANLIB"; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6215 $as_echo "$RANLIB" >&6; }
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6223 if test -z "$ac_cv_prog_RANLIB"; then
6224 ac_ct_RANLIB=$RANLIB
6225 # Extract the first word of "ranlib", so it can be a program name with args.
6226 set dummy ranlib; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6230 $as_echo_n "(cached) " >&6
6232 if test -n "$ac_ct_RANLIB"; then
6233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_ac_ct_RANLIB="ranlib"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6253 if test -n "$ac_ct_RANLIB"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6255 $as_echo "$ac_ct_RANLIB" >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6261 if test "x$ac_ct_RANLIB" = x; then
6264 case $cross_compiling:$ac_tool_warned in
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268 ac_tool_warned=yes ;;
6270 RANLIB=$ac_ct_RANLIB
6273 RANLIB="$ac_cv_prog_RANLIB"
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6282 $as_echo_n "checking for ANSI C header files... " >&6; }
6283 if ${ac_cv_header_stdc+:} false; then :
6284 $as_echo_n "(cached) " >&6
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6301 if ac_fn_c_try_compile "$LINENO"; then :
6302 ac_cv_header_stdc=yes
6304 ac_cv_header_stdc=no
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 if test $ac_cv_header_stdc = yes; then
6309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6316 $EGREP "memchr" >/dev/null 2>&1; then :
6319 ac_cv_header_stdc=no
6325 if test $ac_cv_header_stdc = yes; then
6326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6333 $EGREP "free" >/dev/null 2>&1; then :
6336 ac_cv_header_stdc=no
6342 if test $ac_cv_header_stdc = yes; then
6343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6344 if test "$cross_compiling" = yes; then :
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6351 #if ((' ' & 0x0FF) == 0x020)
6352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6355 # define ISLOWER(c) \
6356 (('a' <= (c) && (c) <= 'i') \
6357 || ('j' <= (c) && (c) <= 'r') \
6358 || ('s' <= (c) && (c) <= 'z'))
6359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6367 for (i = 0; i < 256; i++)
6368 if (XOR (islower (i), ISLOWER (i))
6369 || toupper (i) != TOUPPER (i))
6374 if ac_fn_c_try_run "$LINENO"; then :
6377 ac_cv_header_stdc=no
6379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6380 conftest.$ac_objext conftest.beam conftest.$ac_ext
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6386 $as_echo "$ac_cv_header_stdc" >&6; }
6387 if test $ac_cv_header_stdc = yes; then
6389 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6393 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6394 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6395 inttypes.h stdint.h unistd.h
6397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6398 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6401 cat >>confdefs.h <<_ACEOF
6402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6411 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6412 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6419 if test "$MINIX" = yes; then
6421 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6424 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6427 $as_echo "#define _MINIX 1" >>confdefs.h
6430 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6436 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6437 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6443 # define __EXTENSIONS__ 1
6444 $ac_includes_default
6453 if ac_fn_c_try_compile "$LINENO"; then :
6454 ac_cv_safe_to_define___extensions__=yes
6456 ac_cv_safe_to_define___extensions__=no
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6461 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6462 test $ac_cv_safe_to_define___extensions__ = yes &&
6463 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6465 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6467 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6469 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6471 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
6473 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6475 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6478 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6479 if ${ac_cv_should_define__xopen_source+:} false; then :
6480 $as_echo_n "(cached) " >&6
6482 ac_cv_should_define__xopen_source=no
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6496 if ac_fn_c_try_compile "$LINENO"; then :
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6502 #define _XOPEN_SOURCE 500
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 ac_cv_should_define__xopen_source=yes
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6521 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6522 test $ac_cv_should_define__xopen_source = yes &&
6523 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6533 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6534 if ${ac_cv_sys_largefile_source+:} false; then :
6535 $as_echo_n "(cached) " >&6
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 #include <sys/types.h> /* for off_t */
6545 int (*fp) (FILE *, off_t, int) = fseeko;
6546 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6551 if ac_fn_c_try_link "$LINENO"; then :
6552 ac_cv_sys_largefile_source=no; break
6554 rm -f core conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6558 #define _LARGEFILE_SOURCE 1
6559 #include <sys/types.h> /* for off_t */
6564 int (*fp) (FILE *, off_t, int) = fseeko;
6565 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6570 if ac_fn_c_try_link "$LINENO"; then :
6571 ac_cv_sys_largefile_source=1; break
6573 rm -f core conftest.err conftest.$ac_objext \
6574 conftest$ac_exeext conftest.$ac_ext
6575 ac_cv_sys_largefile_source=unknown
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6580 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6581 case $ac_cv_sys_largefile_source in #(
6584 cat >>confdefs.h <<_ACEOF
6585 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6591 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6592 # in glibc 2.1.3, but that breaks too many other things.
6593 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6594 if test $ac_cv_sys_largefile_source != unknown; then
6596 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6600 # Check whether --enable-largefile was given.
6601 if test "${enable_largefile+set}" = set; then :
6602 enableval=$enable_largefile;
6605 if test "$enable_largefile" != no; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6608 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6609 if ${ac_cv_sys_largefile_CC+:} false; then :
6610 $as_echo_n "(cached) " >&6
6612 ac_cv_sys_largefile_CC=no
6613 if test "$GCC" != yes; then
6616 # IRIX 6.2 and later do not support large files by default,
6617 # so use the C compiler's -n32 option if that helps.
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 #include <sys/types.h>
6621 /* Check that off_t can represent 2**63 - 1 correctly.
6622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6623 since some C++ compilers masquerading as C compilers
6624 incorrectly reject 9223372036854775807. */
6625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6627 && LARGE_OFF_T % 2147483647 == 1)
6637 if ac_fn_c_try_compile "$LINENO"; then :
6640 rm -f core conftest.err conftest.$ac_objext
6642 if ac_fn_c_try_compile "$LINENO"; then :
6643 ac_cv_sys_largefile_CC=' -n32'; break
6645 rm -f core conftest.err conftest.$ac_objext
6649 rm -f conftest.$ac_ext
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6653 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6654 if test "$ac_cv_sys_largefile_CC" != no; then
6655 CC=$CC$ac_cv_sys_largefile_CC
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6659 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6660 if ${ac_cv_sys_file_offset_bits+:} false; then :
6661 $as_echo_n "(cached) " >&6
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #include <sys/types.h>
6667 /* Check that off_t can represent 2**63 - 1 correctly.
6668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6669 since some C++ compilers masquerading as C compilers
6670 incorrectly reject 9223372036854775807. */
6671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6673 && LARGE_OFF_T % 2147483647 == 1)
6683 if ac_fn_c_try_compile "$LINENO"; then :
6684 ac_cv_sys_file_offset_bits=no; break
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #define _FILE_OFFSET_BITS 64
6690 #include <sys/types.h>
6691 /* Check that off_t can represent 2**63 - 1 correctly.
6692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6693 since some C++ compilers masquerading as C compilers
6694 incorrectly reject 9223372036854775807. */
6695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6697 && LARGE_OFF_T % 2147483647 == 1)
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 ac_cv_sys_file_offset_bits=64; break
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 ac_cv_sys_file_offset_bits=unknown
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6716 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6717 case $ac_cv_sys_file_offset_bits in #(
6720 cat >>confdefs.h <<_ACEOF
6721 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6726 if test $ac_cv_sys_file_offset_bits = unknown; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6728 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6729 if ${ac_cv_sys_large_files+:} false; then :
6730 $as_echo_n "(cached) " >&6
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #include <sys/types.h>
6736 /* Check that off_t can represent 2**63 - 1 correctly.
6737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6738 since some C++ compilers masquerading as C compilers
6739 incorrectly reject 9223372036854775807. */
6740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6742 && LARGE_OFF_T % 2147483647 == 1)
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 ac_cv_sys_large_files=no; break
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 #define _LARGE_FILES 1
6759 #include <sys/types.h>
6760 /* Check that off_t can represent 2**63 - 1 correctly.
6761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6762 since some C++ compilers masquerading as C compilers
6763 incorrectly reject 9223372036854775807. */
6764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6766 && LARGE_OFF_T % 2147483647 == 1)
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 ac_cv_sys_large_files=1; break
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 ac_cv_sys_large_files=unknown
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6785 $as_echo "$ac_cv_sys_large_files" >&6; }
6786 case $ac_cv_sys_large_files in #(
6789 cat >>confdefs.h <<_ACEOF
6790 #define _LARGE_FILES $ac_cv_sys_large_files
6798 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6805 # Code from module absolute-header:
6806 # Code from module acl-permissions:
6807 # Code from module alignof:
6808 # Code from module alloca:
6809 # Code from module alloca-opt:
6810 # Code from module allocator:
6811 # Code from module areadlink:
6812 # Code from module areadlink-with-size:
6813 # Code from module areadlinkat:
6814 # Code from module areadlinkat-with-size:
6815 # Code from module argmatch:
6816 # Code from module argp:
6817 # Code from module argp-version-etc:
6818 # Code from module assure:
6819 # Code from module at-internal:
6820 # Code from module backupfile:
6821 # Code from module bitrotate:
6822 # Code from module btowc:
6823 # Code from module c-ctype:
6824 # Code from module c-strcase:
6825 # Code from module c-strcaseeq:
6826 # Code from module canonicalize-lgpl:
6827 # Code from module careadlinkat:
6828 # Code from module chdir:
6829 # Code from module chdir-long:
6830 # Code from module chown:
6831 # Code from module clock-time:
6832 # Code from module cloexec:
6833 # Code from module close:
6834 # Code from module close-stream:
6835 # Code from module closedir:
6836 # Code from module closeout:
6837 # Code from module configmake:
6838 # Code from module d-ino:
6839 # Code from module dirent:
6840 # Code from module dirent-safer:
6841 # Code from module dirfd:
6842 # Code from module dirname:
6843 # Code from module dirname-lgpl:
6844 # Code from module dosname:
6845 # Code from module double-slash-root:
6846 # Code from module dup:
6847 # Code from module dup2:
6848 # Code from module environ:
6849 # Code from module errno:
6850 # Code from module error:
6851 # Code from module euidaccess:
6852 # Code from module exclude:
6853 # Code from module exitfail:
6854 # Code from module extensions:
6856 # Code from module extern-inline:
6857 # Code from module faccessat:
6858 # Code from module fchdir:
6859 # Code from module fchmodat:
6860 # Code from module fchownat:
6861 # Code from module fcntl:
6862 # Code from module fcntl-h:
6863 # Code from module fd-hook:
6864 # Code from module fdopendir:
6865 # Code from module fdutimensat:
6866 # Code from module file-has-acl:
6867 # Code from module fileblocks:
6868 # Code from module filename:
6869 # Code from module filenamecat-lgpl:
6870 # Code from module flexmember:
6871 # Code from module float:
6872 # Code from module fnmatch:
6873 # Code from module fnmatch-gnu:
6874 # Code from module fpending:
6875 # Code from module fprintftime:
6876 # Code from module fseek:
6877 # Code from module fseeko:
6879 # Code from module fstat:
6880 # Code from module fstatat:
6881 # Code from module full-write:
6882 # Code from module futimens:
6883 # Code from module getcwd:
6884 # Code from module getcwd-lgpl:
6885 # Code from module getdelim:
6886 # Code from module getdtablesize:
6887 # Code from module getgroups:
6888 # Code from module getline:
6889 # Code from module getopt-gnu:
6890 # Code from module getopt-posix:
6891 # Code from module getpagesize:
6892 # Code from module gettext:
6893 # Code from module gettext-h:
6894 # Code from module gettime:
6895 # Code from module gettimeofday:
6896 # Code from module gitlog-to-changelog:
6897 # Code from module group-member:
6898 # Code from module hash:
6899 # Code from module havelib:
6900 # Code from module human:
6901 # Code from module include_next:
6902 # Code from module intprops:
6903 # Code from module inttostr:
6904 # Code from module inttypes:
6905 # Code from module inttypes-incomplete:
6906 # Code from module iswblank:
6907 # Code from module langinfo:
6908 # Code from module largefile:
6910 # Code from module lchown:
6911 # Code from module link:
6912 # Code from module link-follow:
6913 # Code from module linkat:
6914 # Code from module localcharset:
6915 # Code from module locale:
6916 # Code from module localeconv:
6917 # Code from module lseek:
6918 # Code from module lstat:
6919 # Code from module malloc-gnu:
6920 # Code from module malloc-posix:
6921 # Code from module malloca:
6922 # Code from module manywarnings:
6923 # Code from module mbchar:
6924 # Code from module mbrtowc:
6925 # Code from module mbscasecmp:
6926 # Code from module mbsinit:
6927 # Code from module mbsrtowcs:
6928 # Code from module mbtowc:
6929 # Code from module mbuiter:
6930 # Code from module memchr:
6931 # Code from module mempcpy:
6932 # Code from module memrchr:
6933 # Code from module mkdir:
6934 # Code from module mkdirat:
6935 # Code from module mkdtemp:
6936 # Code from module mkfifo:
6937 # Code from module mkfifoat:
6938 # Code from module mknod:
6939 # Code from module mktime:
6940 # Code from module mktime-internal:
6941 # Code from module modechange:
6942 # Code from module msvc-inval:
6943 # Code from module msvc-nothrow:
6944 # Code from module multiarch:
6945 # Code from module nl_langinfo:
6946 # Code from module nocrash:
6947 # Code from module obstack:
6948 # Code from module open:
6949 # Code from module openat:
6950 # Code from module openat-die:
6951 # Code from module openat-h:
6952 # Code from module opendir:
6953 # Code from module parse-datetime:
6954 # Code from module pathmax:
6955 # Code from module priv-set:
6956 # Code from module progname:
6957 # Code from module quote:
6958 # Code from module quotearg:
6959 # Code from module quotearg-simple:
6960 # Code from module raise:
6961 # Code from module rawmemchr:
6962 # Code from module read:
6963 # Code from module readdir:
6964 # Code from module readlink:
6965 # Code from module readlinkat:
6966 # Code from module realloc-posix:
6967 # Code from module regex:
6968 # Code from module rename:
6969 # Code from module renameat:
6970 # Code from module rewinddir:
6971 # Code from module rmdir:
6972 # Code from module root-uid:
6973 # Code from module rpmatch:
6974 # Code from module safe-read:
6975 # Code from module safe-write:
6976 # Code from module same-inode:
6977 # Code from module save-cwd:
6978 # Code from module savedir:
6979 # Code from module secure_getenv:
6980 # Code from module selinux-at:
6981 # Code from module selinux-h:
6982 # Code from module setenv:
6983 # Code from module signal-h:
6984 # Code from module size_max:
6985 # Code from module sleep:
6986 # Code from module snippet/_Noreturn:
6987 # Code from module snippet/arg-nonnull:
6988 # Code from module snippet/c++defs:
6989 # Code from module snippet/unused-parameter:
6990 # Code from module snippet/warn-on-use:
6991 # Code from module snprintf:
6992 # Code from module ssize_t:
6993 # Code from module stat:
6994 # Code from module stat-macros:
6995 # Code from module stat-time:
6996 # Code from module statat:
6997 # Code from module stdalign:
6998 # Code from module stdarg:
7002 # Code from module stdbool:
7003 # Code from module stddef:
7004 # Code from module stdint:
7005 # Code from module stdio:
7006 # Code from module stdlib:
7007 # Code from module stpcpy:
7008 # Code from module strcase:
7009 # Code from module strchrnul:
7010 # Code from module strdup-posix:
7011 # Code from module streq:
7012 # Code from module strerror:
7013 # Code from module strerror-override:
7014 # Code from module strftime:
7015 # Code from module string:
7016 # Code from module strings:
7017 # Code from module strndup:
7018 # Code from module strnlen:
7019 # Code from module strnlen1:
7020 # Code from module strtoimax:
7021 # Code from module strtol:
7022 # Code from module strtoll:
7023 # Code from module strtoul:
7024 # Code from module strtoull:
7025 # Code from module strtoumax:
7026 # Code from module symlink:
7027 # Code from module symlinkat:
7028 # Code from module sys_stat:
7029 # Code from module sys_time:
7030 # Code from module sys_types:
7031 # Code from module sysexits:
7032 # Code from module tempname:
7033 # Code from module time:
7034 # Code from module time_r:
7035 # Code from module time_rz:
7036 # Code from module timegm:
7037 # Code from module timespec:
7038 # Code from module timespec-sub:
7039 # Code from module unistd:
7040 # Code from module unistd-safer:
7041 # Code from module unitypes:
7042 # Code from module uniwidth/base:
7043 # Code from module uniwidth/width:
7044 # Code from module unlink:
7045 # Code from module unlinkat:
7046 # Code from module unlinkdir:
7047 # Code from module unlocked-io:
7048 # Code from module unsetenv:
7049 # Code from module utimens:
7050 # Code from module utimensat:
7051 # Code from module vasnprintf:
7052 # Code from module vasprintf:
7053 # Code from module verify:
7054 # Code from module version-etc:
7055 # Code from module version-etc-fsf:
7056 # Code from module vsnprintf:
7057 # Code from module warnings:
7058 # Code from module wchar:
7059 # Code from module wcrtomb:
7060 # Code from module wctype-h:
7061 # Code from module wcwidth:
7062 # Code from module write:
7063 # Code from module xalloc:
7064 # Code from module xalloc-die:
7065 # Code from module xalloc-oversized:
7066 # Code from module xgetcwd:
7067 # Code from module xsize:
7068 # Code from module xstrndup:
7069 # Code from module xstrtol:
7070 # Code from module xstrtoumax:
7071 # Code from module xvasprintf:
7073 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_AR+:} false; then :
7081 $as_echo_n "(cached) " >&6
7083 if test -n "$AR"; then
7084 ac_cv_prog_AR="$AR" # Let the user override the test.
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 if test -n "$AR"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7106 $as_echo "$AR" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7113 test -n "$AR" && break
7116 if test -z "$AR"; then
7120 # Extract the first word of "$ac_prog", so it can be a program name with args.
7121 set dummy $ac_prog; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7125 $as_echo_n "(cached) " >&6
7127 if test -n "$ac_ct_AR"; then
7128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_ac_ct_AR="$ac_prog"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7148 if test -n "$ac_ct_AR"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7150 $as_echo "$ac_ct_AR" >&6; }
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7157 test -n "$ac_ct_AR" && break
7160 if test "x$ac_ct_AR" = x; then
7163 case $cross_compiling:$ac_tool_warned in
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167 ac_tool_warned=yes ;;
7174 # Check whether --enable-largefile was given.
7175 if test "${enable_largefile+set}" = set; then :
7176 enableval=$enable_largefile;
7179 if test "$enable_largefile" != no; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7182 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7183 if ${ac_cv_sys_largefile_CC+:} false; then :
7184 $as_echo_n "(cached) " >&6
7186 ac_cv_sys_largefile_CC=no
7187 if test "$GCC" != yes; then
7190 # IRIX 6.2 and later do not support large files by default,
7191 # so use the C compiler's -n32 option if that helps.
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194 #include <sys/types.h>
7195 /* Check that off_t can represent 2**63 - 1 correctly.
7196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7197 since some C++ compilers masquerading as C compilers
7198 incorrectly reject 9223372036854775807. */
7199 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7201 && LARGE_OFF_T % 2147483647 == 1)
7211 if ac_fn_c_try_compile "$LINENO"; then :
7214 rm -f core conftest.err conftest.$ac_objext
7216 if ac_fn_c_try_compile "$LINENO"; then :
7217 ac_cv_sys_largefile_CC=' -n32'; break
7219 rm -f core conftest.err conftest.$ac_objext
7223 rm -f conftest.$ac_ext
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7227 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7228 if test "$ac_cv_sys_largefile_CC" != no; then
7229 CC=$CC$ac_cv_sys_largefile_CC
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7233 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7234 if ${ac_cv_sys_file_offset_bits+:} false; then :
7235 $as_echo_n "(cached) " >&6
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 #include <sys/types.h>
7241 /* Check that off_t can represent 2**63 - 1 correctly.
7242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7243 since some C++ compilers masquerading as C compilers
7244 incorrectly reject 9223372036854775807. */
7245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7247 && LARGE_OFF_T % 2147483647 == 1)
7257 if ac_fn_c_try_compile "$LINENO"; then :
7258 ac_cv_sys_file_offset_bits=no; break
7260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7263 #define _FILE_OFFSET_BITS 64
7264 #include <sys/types.h>
7265 /* Check that off_t can represent 2**63 - 1 correctly.
7266 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7267 since some C++ compilers masquerading as C compilers
7268 incorrectly reject 9223372036854775807. */
7269 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7271 && LARGE_OFF_T % 2147483647 == 1)
7281 if ac_fn_c_try_compile "$LINENO"; then :
7282 ac_cv_sys_file_offset_bits=64; break
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 ac_cv_sys_file_offset_bits=unknown
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7290 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7291 case $ac_cv_sys_file_offset_bits in #(
7294 cat >>confdefs.h <<_ACEOF
7295 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7300 if test $ac_cv_sys_file_offset_bits = unknown; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7302 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7303 if ${ac_cv_sys_large_files+:} false; then :
7304 $as_echo_n "(cached) " >&6
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 #include <sys/types.h>
7310 /* Check that off_t can represent 2**63 - 1 correctly.
7311 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7312 since some C++ compilers masquerading as C compilers
7313 incorrectly reject 9223372036854775807. */
7314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7316 && LARGE_OFF_T % 2147483647 == 1)
7326 if ac_fn_c_try_compile "$LINENO"; then :
7327 ac_cv_sys_large_files=no; break
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332 #define _LARGE_FILES 1
7333 #include <sys/types.h>
7334 /* Check that off_t can represent 2**63 - 1 correctly.
7335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7336 since some C++ compilers masquerading as C compilers
7337 incorrectly reject 9223372036854775807. */
7338 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7340 && LARGE_OFF_T % 2147483647 == 1)
7350 if ac_fn_c_try_compile "$LINENO"; then :
7351 ac_cv_sys_large_files=1; break
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 ac_cv_sys_large_files=unknown
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7359 $as_echo "$ac_cv_sys_large_files" >&6; }
7360 case $ac_cv_sys_large_files in #(
7363 cat >>confdefs.h <<_ACEOF
7364 #define _LARGE_FILES $ac_cv_sys_large_files
7372 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7377 $as_echo_n "checking for inline... " >&6; }
7378 if ${ac_cv_c_inline+:} false; then :
7379 $as_echo_n "(cached) " >&6
7382 for ac_kw in inline __inline__ __inline; do
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7387 static $ac_kw foo_t static_foo () {return 0; }
7388 $ac_kw foo_t foo () {return 0; }
7392 if ac_fn_c_try_compile "$LINENO"; then :
7393 ac_cv_c_inline=$ac_kw
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 test "$ac_cv_c_inline" != no && break
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7401 $as_echo "$ac_cv_c_inline" >&6; }
7403 case $ac_cv_c_inline in
7406 case $ac_cv_c_inline in
7408 *) ac_val=$ac_cv_c_inline;;
7410 cat >>confdefs.h <<_ACEOF
7412 #define inline $ac_val
7422 for ac_header in $ac_header_list
7424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7425 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7428 cat >>confdefs.h <<_ACEOF
7429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7472 for ac_header in sys/buf.h
7474 ac_fn_c_check_header_compile "$LINENO" "sys/buf.h" "ac_cv_header_sys_buf_h" "#if HAVE_SYS_PARAM_H
7475 #include <sys/param.h>
7478 if test "x$ac_cv_header_sys_buf_h" = xyes; then :
7479 cat >>confdefs.h <<_ACEOF
7480 #define HAVE_SYS_BUF_H 1
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7489 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7490 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
7491 $as_echo_n "(cached) " >&6
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <sys/types.h>
7499 return makedev(0, 0);
7504 if ac_fn_c_try_link "$LINENO"; then :
7505 ac_cv_header_sys_types_h_makedev=yes
7507 ac_cv_header_sys_types_h_makedev=no
7509 rm -f core conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7514 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7516 if test $ac_cv_header_sys_types_h_makedev = no; then
7517 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
7518 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
7520 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
7526 if test $ac_cv_header_sys_mkdev_h = no; then
7527 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
7528 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
7530 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_fstype string in struct stat" >&5
7540 $as_echo_n "checking for st_fstype string in struct stat... " >&6; }
7541 if ${diff_cv_st_fstype_string+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 #include <sys/types.h>
7547 #include <sys/stat.h>
7551 struct stat s; s.st_fstype[0] = 'x';
7556 if ac_fn_c_try_compile "$LINENO"; then :
7557 diff_cv_st_fstype_string=yes
7559 diff_cv_st_fstype_string=no
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $diff_cv_st_fstype_string" >&5
7565 $as_echo "$diff_cv_st_fstype_string" >&6; }
7566 if test $diff_cv_st_fstype_string = yes; then
7568 $as_echo "#define HAVE_ST_FSTYPE_STRING 1" >>confdefs.h
7572 # even if we use gnulib's acl.h with integrated m4 file later on (used because
7573 # of very useful file_has_acl() function) we need following checks that restrict
7574 # tar to use POSIX.1e ACLs only.
7576 # Check whether --with-posix-acls was given.
7577 if test "${with_posix_acls+set}" = set; then :
7578 withval=$with_posix_acls;
7583 if test "x$with_posix_acls" != "xno"; then
7584 for ac_header in sys/acl.h
7586 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
7587 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
7588 cat >>confdefs.h <<_ACEOF
7589 #define HAVE_SYS_ACL_H 1
7598 for tar_acl_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
7599 acl_to_text acl_from_text acl_delete_def_file \
7601 test "x$with_posix_acls" = xno && break
7602 as_ac_Search=`$as_echo "ac_cv_search_$tar_acl_func" | $as_tr_sh`
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tar_acl_func" >&5
7604 $as_echo_n "checking for library containing $tar_acl_func... " >&6; }
7605 if eval \${$as_ac_Search+:} false; then :
7606 $as_echo_n "(cached) " >&6
7608 ac_func_search_save_LIBS=$LIBS
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7612 /* Override any GCC internal prototype to avoid an error.
7613 Use char because int might match the return type of a GCC
7614 builtin and then its argument prototype would still apply. */
7618 char $tar_acl_func ();
7622 return $tar_acl_func ();
7627 for ac_lib in '' acl pacl; do
7628 if test -z "$ac_lib"; then
7629 ac_res="none required"
7632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7634 if ac_fn_c_try_link "$LINENO"; then :
7635 eval "$as_ac_Search=\$ac_res"
7637 rm -f core conftest.err conftest.$ac_objext \
7639 if eval \${$as_ac_Search+:} false; then :
7643 if eval \${$as_ac_Search+:} false; then :
7646 eval "$as_ac_Search=no"
7649 LIBS=$ac_func_search_save_LIBS
7651 eval ac_res=\$$as_ac_Search
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7653 $as_echo "$ac_res" >&6; }
7654 eval ac_res=\$$as_ac_Search
7655 if test "$ac_res" != no; then :
7656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7663 if test "x$with_posix_acls" != xno; then
7665 $as_echo "#define HAVE_POSIX_ACLS /**/" >>confdefs.h
7669 # disable acls in gnulib's checks
7670 export enable_acl=no
7673 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7674 if test "x$ac_cv_type_mode_t" = xyes; then :
7678 cat >>confdefs.h <<_ACEOF
7684 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7685 if test "x$ac_cv_type_pid_t" = xyes; then :
7689 cat >>confdefs.h <<_ACEOF
7695 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7696 if test "x$ac_cv_type_off_t" = xyes; then :
7700 cat >>confdefs.h <<_ACEOF
7701 #define off_t long int
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7707 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7708 if ${ac_cv_type_uid_t+:} false; then :
7709 $as_echo_n "(cached) " >&6
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <sys/types.h>
7716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7717 $EGREP "uid_t" >/dev/null 2>&1; then :
7718 ac_cv_type_uid_t=yes
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7726 $as_echo "$ac_cv_type_uid_t" >&6; }
7727 if test $ac_cv_type_uid_t = no; then
7729 $as_echo "#define uid_t int" >>confdefs.h
7732 $as_echo "#define gid_t int" >>confdefs.h
7736 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
7737 if test "x$ac_cv_type_major_t" = xyes; then :
7741 $as_echo "#define major_t int" >>confdefs.h
7745 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
7746 if test "x$ac_cv_type_minor_t" = xyes; then :
7750 $as_echo "#define minor_t int" >>confdefs.h
7754 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
7755 if test "x$ac_cv_type_dev_t" = xyes; then :
7759 cat >>confdefs.h <<_ACEOF
7760 #define dev_t unsigned
7765 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
7766 if test "x$ac_cv_type_ino_t" = xyes; then :
7770 cat >>confdefs.h <<_ACEOF
7771 #define ino_t unsigned
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
7779 $as_echo_n "checking for ssize_t... " >&6; }
7780 if ${gt_cv_ssize_t+:} false; then :
7781 $as_echo_n "(cached) " >&6
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 #include <sys/types.h>
7789 int x = sizeof (ssize_t *) + sizeof (ssize_t);
7795 if ac_fn_c_try_compile "$LINENO"; then :
7800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
7803 $as_echo "$gt_cv_ssize_t" >&6; }
7804 if test $gt_cv_ssize_t = no; then
7806 $as_echo "#define ssize_t int" >>confdefs.h
7817 LIBC_FATAL_STDERR_=1
7818 export LIBC_FATAL_STDERR_
7821 gl_need_lib_has_acl=
7822 # Check whether --enable-acl was given.
7823 if test "${enable_acl+set}" = set; then :
7824 enableval=$enable_acl;
7833 for ac_func in $ac_func_list
7835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7836 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7837 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7838 cat >>confdefs.h <<_ACEOF
7839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7847 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7848 if test "x$ac_cv_type_size_t" = xyes; then :
7852 cat >>confdefs.h <<_ACEOF
7853 #define size_t unsigned int
7858 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7859 # for constant arguments. Useless!
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7861 $as_echo_n "checking for working alloca.h... " >&6; }
7862 if ${ac_cv_working_alloca_h+:} false; then :
7863 $as_echo_n "(cached) " >&6
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7871 char *p = (char *) alloca (2 * sizeof (int));
7877 if ac_fn_c_try_link "$LINENO"; then :
7878 ac_cv_working_alloca_h=yes
7880 ac_cv_working_alloca_h=no
7882 rm -f core conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7886 $as_echo "$ac_cv_working_alloca_h" >&6; }
7887 if test $ac_cv_working_alloca_h = yes; then
7889 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7894 $as_echo_n "checking for alloca... " >&6; }
7895 if ${ac_cv_func_alloca_works+:} false; then :
7896 $as_echo_n "(cached) " >&6
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7901 # define alloca __builtin_alloca
7904 # include <malloc.h>
7905 # define alloca _alloca
7907 # ifdef HAVE_ALLOCA_H
7908 # include <alloca.h>
7913 # ifndef alloca /* predefined by HP cc +Olibcalls */
7914 void *alloca (size_t);
7924 char *p = (char *) alloca (1);
7930 if ac_fn_c_try_link "$LINENO"; then :
7931 ac_cv_func_alloca_works=yes
7933 ac_cv_func_alloca_works=no
7935 rm -f core conftest.err conftest.$ac_objext \
7936 conftest$ac_exeext conftest.$ac_ext
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7939 $as_echo "$ac_cv_func_alloca_works" >&6; }
7941 if test $ac_cv_func_alloca_works = yes; then
7943 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7946 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7947 # that cause trouble. Some versions do not even contain alloca or
7948 # contain a buggy version. If you still want to use their alloca,
7949 # use ar to extract alloca.o from them instead of compiling alloca.c.
7955 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7957 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7961 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7962 if ${ac_cv_os_cray+:} false; then :
7963 $as_echo_n "(cached) " >&6
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 #if defined CRAY && ! defined CRAY2
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975 $EGREP "webecray" >/dev/null 2>&1; then :
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7984 $as_echo "$ac_cv_os_cray" >&6; }
7985 if test $ac_cv_os_cray = yes; then
7986 for ac_func in _getb67 GETB67 getb67; do
7987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7988 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7989 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7991 cat >>confdefs.h <<_ACEOF
7992 #define CRAY_STACKSEG_END $ac_func
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8002 $as_echo_n "checking stack direction for C alloca... " >&6; }
8003 if ${ac_cv_c_stack_direction+:} false; then :
8004 $as_echo_n "(cached) " >&6
8006 if test "$cross_compiling" = yes; then :
8007 ac_cv_c_stack_direction=0
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 $ac_includes_default
8013 find_stack_direction (int *addr, int depth)
8018 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8019 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8024 main (int argc, char **argv)
8026 return find_stack_direction (0, argc + !argv + 20) < 0;
8029 if ac_fn_c_try_run "$LINENO"; then :
8030 ac_cv_c_stack_direction=1
8032 ac_cv_c_stack_direction=-1
8034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8035 conftest.$ac_objext conftest.beam conftest.$ac_ext
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8040 $as_echo "$ac_cv_c_stack_direction" >&6; }
8041 cat >>confdefs.h <<_ACEOF
8042 #define STACK_DIRECTION $ac_cv_c_stack_direction
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
8049 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
8050 if ${ac_cv_c_restrict+:} false; then :
8051 $as_echo_n "(cached) " >&6
8054 # The order here caters to the fact that C++ does not require restrict.
8055 for ac_kw in __restrict __restrict__ _Restrict restrict; do
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 typedef int *int_ptr;
8059 int foo (int_ptr $ac_kw ip) { return ip[0]; }
8060 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
8061 int bar (int ip[$ac_kw]) { return ip[0]; }
8069 return foo (t) + bar (t);
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 ac_cv_c_restrict=$ac_kw
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 test "$ac_cv_c_restrict" != no && break
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
8084 $as_echo "$ac_cv_c_restrict" >&6; }
8086 case $ac_cv_c_restrict in
8088 no) $as_echo "#define restrict /**/" >>confdefs.h
8090 *) cat >>confdefs.h <<_ACEOF
8091 #define restrict $ac_cv_c_restrict
8096 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
8097 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
8103 cat >>confdefs.h <<_ACEOF
8104 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
8107 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
8108 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
8114 cat >>confdefs.h <<_ACEOF
8115 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
8118 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
8119 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
8125 cat >>confdefs.h <<_ACEOF
8126 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
8129 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
8130 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
8136 cat >>confdefs.h <<_ACEOF
8137 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
8140 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
8141 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
8147 cat >>confdefs.h <<_ACEOF
8148 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
8151 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
8152 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
8158 cat >>confdefs.h <<_ACEOF
8159 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
8162 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
8163 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
8169 cat >>confdefs.h <<_ACEOF
8170 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
8173 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
8174 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
8180 cat >>confdefs.h <<_ACEOF
8181 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
8184 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
8185 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
8191 cat >>confdefs.h <<_ACEOF
8192 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
8195 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8196 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
8202 cat >>confdefs.h <<_ACEOF
8203 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8206 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
8207 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
8213 cat >>confdefs.h <<_ACEOF
8214 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
8217 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
8218 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
8224 cat >>confdefs.h <<_ACEOF
8225 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
8228 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
8229 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
8235 cat >>confdefs.h <<_ACEOF
8236 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
8248 XGETTEXT_EXTRA_OPTIONS=
8250 # Make sure we can run config.sub.
8251 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8252 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8255 $as_echo_n "checking build system type... " >&6; }
8256 if ${ac_cv_build+:} false; then :
8257 $as_echo_n "(cached) " >&6
8259 ac_build_alias=$build_alias
8260 test "x$ac_build_alias" = x &&
8261 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8262 test "x$ac_build_alias" = x &&
8263 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
8264 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8265 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8269 $as_echo "$ac_cv_build" >&6; }
8270 case $ac_cv_build in
8272 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
8275 ac_save_IFS=$IFS; IFS='-'
8281 # Remember, the first character of IFS is used to create $*,
8282 # except with old shells:
8285 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8289 $as_echo_n "checking host system type... " >&6; }
8290 if ${ac_cv_host+:} false; then :
8291 $as_echo_n "(cached) " >&6
8293 if test "x$host_alias" = x; then
8294 ac_cv_host=$ac_cv_build
8296 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8297 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8302 $as_echo "$ac_cv_host" >&6; }
8305 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
8308 ac_save_IFS=$IFS; IFS='-'
8314 # Remember, the first character of IFS is used to create $*,
8315 # except with old shells:
8318 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
8322 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
8323 if ${gl_cv_struct_dirent_d_ino+:} false; then :
8324 $as_echo_n "(cached) " >&6
8326 if test "$cross_compiling" = yes; then :
8328 # Guess yes on glibc systems with Linux kernel.
8329 linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
8330 # If we don't know, assume the worst.
8331 *) gl_cv_struct_dirent_d_ino="guessing no" ;;
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 #include <sys/types.h>
8338 #include <sys/stat.h>
8344 DIR *dp = opendir (".");
8352 if (lstat (e->d_name, &st) != 0)
8354 if (e->d_ino != st.st_ino)
8362 if ac_fn_c_try_run "$LINENO"; then :
8363 gl_cv_struct_dirent_d_ino=yes
8365 gl_cv_struct_dirent_d_ino=no
8367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8368 conftest.$ac_objext conftest.beam conftest.$ac_ext
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
8373 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
8374 case "$gl_cv_struct_dirent_d_ino" in
8377 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8384 $as_echo_n "checking for long file names... " >&6; }
8385 if ${ac_cv_sys_long_file_names+:} false; then :
8386 $as_echo_n "(cached) " >&6
8388 ac_cv_sys_long_file_names=yes
8389 # Test for long file names in all the places we know might matter:
8390 # . the current directory, where building will happen
8391 # $prefix/lib where we will be installing things
8392 # $exec_prefix/lib likewise
8393 # $TMPDIR if set, where it might want to write temporary files
8394 # /tmp where it might want to write temporary files
8397 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8398 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8399 # in the usual case where exec_prefix is '${prefix}'.
8401 . | /* | ?:[\\/]*) ;; #(
8404 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8405 ac_xdir=$ac_dir/cf$$
8406 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8407 ac_tf1=$ac_xdir/conftest9012345
8408 ac_tf2=$ac_xdir/conftest9012346
8409 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8410 ac_cv_sys_long_file_names=no
8411 rm -f -r "$ac_xdir" 2>/dev/null
8412 test $ac_cv_sys_long_file_names = no && break
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8416 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8417 if test $ac_cv_sys_long_file_names = yes; then
8419 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8432 GNULIB_MBSNRTOWCS=0;
8435 GNULIB_WCSNRTOMBS=0;
8452 GNULIB_WCSCASECMP=0;
8453 GNULIB_WCSNCASECMP=0;
8503 HAVE_DECL_WCWIDTH=1;
8504 REPLACE_MBSTATE_T=0;
8510 REPLACE_MBSRTOWCS=0;
8511 REPLACE_MBSNRTOWCS=0;
8513 REPLACE_WCSRTOMBS=0;
8514 REPLACE_WCSNRTOMBS=0;
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
8520 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
8521 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
8522 $as_echo_n "(cached) " >&6
8524 gl_cv_header_wchar_h_correct_inline=yes
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8528 #define wcstod renamed_wcstod
8529 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8531 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8532 included before <wchar.h>. */
8537 extern int zero (void);
8538 int main () { return zero(); }
8541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8542 (eval $ac_compile) 2>&5
8544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8545 test $ac_status = 0; }; then
8546 mv conftest.$ac_objext conftest1.$ac_objext
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8550 #define wcstod renamed_wcstod
8551 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8553 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8554 included before <wchar.h>. */
8559 int zero (void) { return 0; }
8562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8563 (eval $ac_compile) 2>&5
8565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8566 test $ac_status = 0; }; then
8567 mv conftest.$ac_objext conftest2.$ac_objext
8568 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
8571 gl_cv_header_wchar_h_correct_inline=no
8575 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
8579 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
8580 if test $gl_cv_header_wchar_h_correct_inline = no; then
8581 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
8582 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
8583 C99 mode. You have four options:
8584 - Add the flag -fgnu89-inline to CC and reconfigure, or
8585 - Fix your include files, using parts of
8586 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
8587 - Use a gcc version older than 4.3, or
8588 - Don't use the flags -std=c99 or -std=gnu99.
8589 Configuration aborted." "$LINENO" 5
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8596 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8597 if ${am_cv_langinfo_codeset+:} false; then :
8598 $as_echo_n "(cached) " >&6
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8602 #include <langinfo.h>
8606 char* cs = nl_langinfo(CODESET); return !cs;
8611 if ac_fn_c_try_link "$LINENO"; then :
8612 am_cv_langinfo_codeset=yes
8614 am_cv_langinfo_codeset=no
8616 rm -f core conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8621 $as_echo "$am_cv_langinfo_codeset" >&6; }
8622 if test $am_cv_langinfo_codeset = yes; then
8624 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8632 $as_echo_n "checking for a traditional french locale... " >&6; }
8633 if ${gt_cv_locale_fr+:} false; then :
8634 $as_echo_n "(cached) " >&6
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8642 #if HAVE_LANGINFO_CODESET
8643 # include <langinfo.h>
8650 /* Check whether the given locale name is recognized by the system. */
8651 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8652 /* On native Windows, setlocale(category, "") looks at the system settings,
8653 not at the environment variables. Also, when an encoding suffix such
8654 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8655 category of the locale to "C". */
8656 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8657 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8660 if (setlocale (LC_ALL, "") == NULL) return 1;
8662 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8663 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8664 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8665 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8666 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8667 some unit tests fail.
8668 On MirBSD 10, when an unsupported locale is specified, setlocale()
8669 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8670 #if HAVE_LANGINFO_CODESET
8672 const char *cs = nl_langinfo (CODESET);
8673 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8674 || strcmp (cs, "UTF-8") == 0)
8679 /* On Cygwin, avoid locale names without encoding suffix, because the
8680 locale_charset() function relies on the encoding suffix. Note that
8681 LC_ALL is set on the command line. */
8682 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8684 /* Check whether in the abbreviation of the second month, the second
8685 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8686 one byte long. This excludes the UTF-8 encoding. */
8687 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8688 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8689 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8690 /* Check whether the decimal separator is a comma.
8691 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8692 are nl_langinfo(RADIXCHAR) are both ".". */
8693 if (localeconv () ->decimal_point[0] != ',') return 1;
8699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8700 (eval $ac_link) 2>&5
8702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8703 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8705 # Handle native Windows specially, because there setlocale() interprets
8706 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8707 # "fr" or "fra" as "French" or "French_France.1252",
8708 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8709 # "ja" as "Japanese" or "Japanese_Japan.932",
8712 # Test for the native Windows locale name.
8713 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8714 gt_cv_locale_fr=French_France.1252
8717 gt_cv_locale_fr=none
8721 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8722 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8723 # configure script would override the LC_ALL setting. Likewise for
8724 # LC_CTYPE, which is also set at the beginning of the configure script.
8725 # Test for the usual locale name.
8726 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8727 gt_cv_locale_fr=fr_FR
8729 # Test for the locale name with explicit encoding suffix.
8730 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8731 gt_cv_locale_fr=fr_FR.ISO-8859-1
8733 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8734 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8735 gt_cv_locale_fr=fr_FR.ISO8859-1
8737 # Test for the HP-UX locale name.
8738 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8739 gt_cv_locale_fr=fr_FR.iso88591
8741 # Test for the Solaris 7 locale name.
8742 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8746 gt_cv_locale_fr=none
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8759 $as_echo "$gt_cv_locale_fr" >&6; }
8760 LOCALE_FR=$gt_cv_locale_fr
8766 GNULIB_CALLOC_POSIX=0;
8767 GNULIB_CANONICALIZE_FILE_NAME=0;
8768 GNULIB_GETLOADAVG=0;
8771 GNULIB_MALLOC_POSIX=0;
8778 GNULIB_POSIX_OPENPT=0;
8785 GNULIB_REALLOC_POSIX=0;
8788 GNULIB_SECURE_GETENV=0;
8793 GNULIB_SYSTEM_POSIX=0;
8799 HAVE_CANONICALIZE_FILE_NAME=1;
8800 HAVE_DECL_GETLOADAVG=1;
8808 HAVE_POSIX_OPENPT=1;
8816 HAVE_SECURE_GETENV=1;
8822 HAVE_STRUCT_RANDOM_DATA=1;
8823 HAVE_SYS_LOADAVG_H=0;
8825 HAVE_DECL_UNSETENV=1;
8827 REPLACE_CANONICALIZE_FILE_NAME=0;
8832 REPLACE_PTSNAME_R=0;
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
8852 $as_echo_n "checking whether // is distinct from /... " >&6; }
8853 if ${gl_cv_double_slash_root+:} false; then :
8854 $as_echo_n "(cached) " >&6
8856 if test x"$cross_compiling" = xyes ; then
8857 # When cross-compiling, there is no way to tell whether // is special
8858 # short of a list of hosts. However, the only known hosts to date
8859 # that have a distinct // are Apollo DomainOS (too old to port to),
8860 # Cygwin, and z/OS. If anyone knows of another system for which // has
8861 # special semantics and is distinct from /, please report it to
8862 # <bug-gnulib@gnu.org>.
8864 *-cygwin | i370-ibm-openedition)
8865 gl_cv_double_slash_root=yes ;;
8867 # Be optimistic and assume that / and // are the same when we
8869 gl_cv_double_slash_root='unknown, assuming no' ;;
8872 set x `ls -di / // 2>/dev/null`
8873 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
8874 gl_cv_double_slash_root=no
8876 gl_cv_double_slash_root=yes
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
8881 $as_echo "$gl_cv_double_slash_root" >&6; }
8882 if test "$gl_cv_double_slash_root" = yes; then
8884 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
8893 $as_echo_n "checking whether realpath works... " >&6; }
8894 if ${gl_cv_func_realpath_works+:} false; then :
8895 $as_echo_n "(cached) " >&6
8900 if test "$cross_compiling" = yes; then :
8902 # Guess yes on glibc systems.
8903 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
8904 # If we don't know, assume the worst.
8905 *) gl_cv_func_realpath_works="guessing no" ;;
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8915 #if defined __MACH__ && defined __APPLE__
8916 /* Avoid a crash on Mac OS X. */
8917 #include <mach/mach.h>
8918 #include <mach/mach_error.h>
8919 #include <mach/thread_status.h>
8920 #include <mach/exception.h>
8921 #include <mach/task.h>
8922 #include <pthread.h>
8923 /* The exception port on which our thread listens. */
8924 static mach_port_t our_exception_port;
8925 /* The main function of the thread listening for exceptions of type
8928 mach_exception_thread (void *arg)
8930 /* Buffer for a message to be received. */
8932 mach_msg_header_t head;
8933 mach_msg_body_t msgh_body;
8936 mach_msg_return_t retval;
8937 /* Wait for a message on the exception port. */
8938 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
8939 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
8940 if (retval != MACH_MSG_SUCCESS)
8947 mach_port_t self = mach_task_self ();
8948 /* Allocate a port on which the thread shall listen for exceptions. */
8949 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
8951 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
8952 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
8953 MACH_MSG_TYPE_MAKE_SEND)
8955 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
8957 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
8958 /* Create the thread listening on the exception port. */
8959 pthread_attr_t attr;
8961 if (pthread_attr_init (&attr) == 0
8962 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
8963 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
8964 pthread_attr_destroy (&attr);
8965 /* Replace the exception port info for these exceptions with our own.
8966 Note that we replace the exception port for the entire task, not only
8967 for a particular thread. This has the effect that when our exception
8968 port gets the message, the thread specific exception port has already
8969 been asked, and we don't need to bother about it.
8970 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
8971 task_set_exception_ports (self, mask, our_exception_port,
8972 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
8977 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8978 /* Avoid a crash on native Windows. */
8979 #define WIN32_LEAN_AND_MEAN
8980 #include <windows.h>
8981 #include <winerror.h>
8983 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
8985 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
8987 case EXCEPTION_ACCESS_VIOLATION:
8988 case EXCEPTION_IN_PAGE_ERROR:
8989 case EXCEPTION_STACK_OVERFLOW:
8990 case EXCEPTION_GUARD_PAGE:
8991 case EXCEPTION_PRIV_INSTRUCTION:
8992 case EXCEPTION_ILLEGAL_INSTRUCTION:
8993 case EXCEPTION_DATATYPE_MISALIGNMENT:
8994 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
8995 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
8998 return EXCEPTION_CONTINUE_SEARCH;
9003 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9006 /* Avoid a crash on POSIX systems. */
9008 /* A POSIX signal handler. */
9010 exception_handler (int sig)
9018 signal (SIGSEGV, exception_handler);
9021 signal (SIGBUS, exception_handler);
9035 char *name = realpath ("conftest.a", NULL);
9036 if (!(name && *name == '/'))
9040 char *name = realpath ("conftest.b/../conftest.a", NULL);
9045 char *name = realpath ("conftest.a/", NULL);
9050 char *name1 = realpath (".", NULL);
9051 char *name2 = realpath ("conftest.d//./..", NULL);
9052 if (strcmp (name1, name2) != 0)
9062 if ac_fn_c_try_run "$LINENO"; then :
9063 gl_cv_func_realpath_works=yes
9065 gl_cv_func_realpath_works=no
9067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9068 conftest.$ac_objext conftest.beam conftest.$ac_ext
9071 rm -rf conftest.a conftest.d
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
9075 $as_echo "$gl_cv_func_realpath_works" >&6; }
9076 case "$gl_cv_func_realpath_works" in
9079 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
9101 GNULIB_EUIDACCESS=0;
9109 GNULIB_GETDOMAINNAME=0;
9110 GNULIB_GETDTABLESIZE=0;
9112 GNULIB_GETHOSTNAME=0;
9114 GNULIB_GETLOGIN_R=0;
9115 GNULIB_GETPAGESIZE=0;
9116 GNULIB_GETUSERSHELL=0;
9117 GNULIB_GROUP_MEMBER=0;
9129 GNULIB_READLINKAT=0;
9131 GNULIB_SETHOSTNAME=0;
9136 GNULIB_UNISTD_H_NONBLOCKING=0;
9137 GNULIB_UNISTD_H_SIGPIPE=0;
9152 HAVE_GETDTABLESIZE=1;
9157 HAVE_GROUP_MEMBER=1;
9173 HAVE_DECL_ENVIRON=1;
9175 HAVE_DECL_FDATASYNC=1;
9176 HAVE_DECL_GETDOMAINNAME=1;
9177 HAVE_DECL_GETLOGIN_R=1;
9178 HAVE_DECL_GETPAGESIZE=1;
9179 HAVE_DECL_GETUSERSHELL=1;
9180 HAVE_DECL_SETHOSTNAME=1;
9181 HAVE_DECL_TTYNAME_R=1;
9189 REPLACE_FTRUNCATE=0;
9191 REPLACE_GETDOMAINNAME=0;
9192 REPLACE_GETDTABLESIZE=0;
9193 REPLACE_GETLOGIN_R=0;
9194 REPLACE_GETGROUPS=0;
9195 REPLACE_GETPAGESIZE=0;
9205 REPLACE_READLINKAT=0;
9209 REPLACE_SYMLINKAT=0;
9210 REPLACE_TTYNAME_R=0;
9215 UNISTD_H_HAVE_WINSOCK2_H=0;
9216 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9223 for ac_header in unistd.h
9225 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
9226 if test "x$ac_cv_header_unistd_h" = xyes; then :
9227 cat >>confdefs.h <<_ACEOF
9228 #define HAVE_UNISTD_H 1
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
9236 $as_echo_n "checking for working chown... " >&6; }
9237 if ${ac_cv_func_chown_works+:} false; then :
9238 $as_echo_n "(cached) " >&6
9240 if test "$cross_compiling" = yes; then :
9241 case "$host_os" in # ((
9242 # Guess yes on glibc systems.
9243 *-gnu*) ac_cv_func_chown_works=yes ;;
9244 # If we don't know, assume the worst.
9245 *) ac_cv_func_chown_works=no ;;
9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9251 $ac_includes_default
9258 char *f = "conftest.chown";
9259 struct stat before, after;
9261 if (creat (f, 0600) < 0)
9263 if (stat (f, &before) < 0)
9265 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
9267 if (stat (f, &after) < 0)
9269 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
9276 if ac_fn_c_try_run "$LINENO"; then :
9277 ac_cv_func_chown_works=yes
9279 ac_cv_func_chown_works=no
9281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9282 conftest.$ac_objext conftest.beam conftest.$ac_ext
9285 rm -f conftest.chown
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
9289 $as_echo "$ac_cv_func_chown_works" >&6; }
9290 if test $ac_cv_func_chown_works = yes; then
9292 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown dereferences symlinks" >&5
9298 $as_echo_n "checking whether chown dereferences symlinks... " >&6; }
9299 if ${gl_cv_func_chown_follows_symlink+:} false; then :
9300 $as_echo_n "(cached) " >&6
9303 if test "$cross_compiling" = yes; then :
9304 gl_cv_func_chown_follows_symlink=yes
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9318 char const *dangling_symlink = "conftest.dangle";
9320 unlink (dangling_symlink);
9321 if (symlink ("conftest.no-such", dangling_symlink))
9324 /* Exit successfully on a conforming system,
9325 i.e., where chown must fail with ENOENT. */
9326 if (chown (dangling_symlink, getuid (), getgid ()) == 0)
9328 if (errno != ENOENT)
9334 if ac_fn_c_try_run "$LINENO"; then :
9335 gl_cv_func_chown_follows_symlink=yes
9337 gl_cv_func_chown_follows_symlink=no
9339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9340 conftest.$ac_objext conftest.beam conftest.$ac_ext
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_chown_follows_symlink" >&5
9347 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
9349 if test $gl_cv_func_chown_follows_symlink = no; then
9351 $as_echo "#define CHOWN_MODIFIES_SYMLINK 1" >>confdefs.h
9366 if test $ac_cv_func_chown = no; then
9369 if test $gl_cv_func_chown_follows_symlink = no; then
9373 if test $ac_cv_func_chown_works = no; then
9375 $as_echo "#define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1" >>confdefs.h
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown honors trailing slash" >&5
9381 $as_echo_n "checking whether chown honors trailing slash... " >&6; }
9382 if ${gl_cv_func_chown_slash_works+:} false; then :
9383 $as_echo_n "(cached) " >&6
9385 touch conftest.file && rm -f conftest.link
9386 if test "$cross_compiling" = yes; then :
9388 # Guess yes on glibc systems.
9389 *-gnu*) gl_cv_func_chown_slash_works="guessing yes" ;;
9390 # If we don't know, assume the worst.
9391 *) gl_cv_func_chown_slash_works="guessing no" ;;
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9405 if (symlink ("conftest.file", "conftest.link")) return 1;
9406 if (chown ("conftest.link/", getuid (), getgid ()) == 0) return 2;
9412 if ac_fn_c_try_run "$LINENO"; then :
9413 gl_cv_func_chown_slash_works=yes
9415 gl_cv_func_chown_slash_works=no
9417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9418 conftest.$ac_objext conftest.beam conftest.$ac_ext
9421 rm -f conftest.link conftest.file
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_chown_slash_works" >&5
9424 $as_echo "$gl_cv_func_chown_slash_works" >&6; }
9425 case "$gl_cv_func_chown_slash_works" in
9429 $as_echo "#define CHOWN_TRAILING_SLASH_BUG 1" >>confdefs.h
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown always updates ctime" >&5
9436 $as_echo_n "checking whether chown always updates ctime... " >&6; }
9437 if ${gl_cv_func_chown_ctime_works+:} false; then :
9438 $as_echo_n "(cached) " >&6
9440 if test "$cross_compiling" = yes; then :
9442 # Guess yes on glibc systems.
9443 *-gnu*) gl_cv_func_chown_ctime_works="guessing yes" ;;
9444 # If we don't know, assume the worst.
9445 *) gl_cv_func_chown_ctime_works="guessing no" ;;
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9456 #include <sys/stat.h>
9461 struct stat st1, st2;
9462 if (close (creat ("conftest.file", 0600))) return 1;
9463 if (stat ("conftest.file", &st1)) return 2;
9465 if (chown ("conftest.file", st1.st_uid, st1.st_gid)) return 3;
9466 if (stat ("conftest.file", &st2)) return 4;
9467 if (st2.st_ctime <= st1.st_ctime) return 5;
9473 if ac_fn_c_try_run "$LINENO"; then :
9474 gl_cv_func_chown_ctime_works=yes
9476 gl_cv_func_chown_ctime_works=no
9478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9479 conftest.$ac_objext conftest.beam conftest.$ac_ext
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_chown_ctime_works" >&5
9485 $as_echo "$gl_cv_func_chown_ctime_works" >&6; }
9486 case "$gl_cv_func_chown_ctime_works" in
9490 $as_echo "#define CHOWN_CHANGE_TIME_BUG 1" >>confdefs.h
9501 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
9502 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
9504 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
9507 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
9529 HAVE_DECL_FDOPENDIR=1;
9536 REPLACE_FDOPENDIR=0;
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9541 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9542 if ${gl_cv_have_include_next+:} false; then :
9543 $as_echo_n "(cached) " >&6
9545 rm -rf conftestd1a conftestd1b conftestd2
9546 mkdir conftestd1a conftestd1b conftestd2
9547 cat <<EOF > conftestd1a/conftest.h
9548 #define DEFINED_IN_CONFTESTD1
9549 #include_next <conftest.h>
9550 #ifdef DEFINED_IN_CONFTESTD2
9553 #error "include_next doesn't work"
9556 cat <<EOF > conftestd1b/conftest.h
9557 #define DEFINED_IN_CONFTESTD1
9559 #include_next <conftest.h>
9560 #ifdef DEFINED_IN_CONFTESTD2
9563 #error "include_next doesn't work"
9566 cat <<EOF > conftestd2/conftest.h
9567 #ifndef DEFINED_IN_CONFTESTD1
9568 #error "include_next test doesn't work"
9570 #define DEFINED_IN_CONFTESTD2
9572 gl_save_CPPFLAGS="$CPPFLAGS"
9573 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 #include <conftest.h>
9578 if ac_fn_c_try_compile "$LINENO"; then :
9579 gl_cv_have_include_next=yes
9581 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 #include <conftest.h>
9586 if ac_fn_c_try_compile "$LINENO"; then :
9587 gl_cv_have_include_next=buggy
9589 gl_cv_have_include_next=no
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 CPPFLAGS="$gl_save_CPPFLAGS"
9596 rm -rf conftestd1a conftestd1b conftestd2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9600 $as_echo "$gl_cv_have_include_next" >&6; }
9601 PRAGMA_SYSTEM_HEADER=
9602 if test $gl_cv_have_include_next = yes; then
9603 INCLUDE_NEXT=include_next
9604 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9605 if test -n "$GCC"; then
9606 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
9609 if test $gl_cv_have_include_next = buggy; then
9610 INCLUDE_NEXT=include
9611 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9613 INCLUDE_NEXT=include
9614 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9621 $as_echo_n "checking whether system header files limit the line length... " >&6; }
9622 if ${gl_cv_pragma_columns+:} false; then :
9623 $as_echo_n "(cached) " >&6
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9634 $EGREP "choke me" >/dev/null 2>&1; then :
9635 gl_cv_pragma_columns=yes
9637 gl_cv_pragma_columns=no
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9644 $as_echo "$gl_cv_pragma_columns" >&6; }
9645 if test $gl_cv_pragma_columns = yes; then
9646 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
9668 $as_echo_n "checking if environ is properly declared... " >&6; }
9669 if ${gt_cv_var_environ_declaration+:} false; then :
9670 $as_echo_n "(cached) " >&6
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9678 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
9681 extern struct { int foo; } environ;
9690 if ac_fn_c_try_compile "$LINENO"; then :
9691 gt_cv_var_environ_declaration=no
9693 gt_cv_var_environ_declaration=yes
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
9699 $as_echo "$gt_cv_var_environ_declaration" >&6; }
9700 if test $gt_cv_var_environ_declaration = yes; then
9702 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
9707 if test $gt_cv_var_environ_declaration != yes; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
9714 $as_echo_n "checking for complete errno.h... " >&6; }
9715 if ${gl_cv_header_errno_h_complete+:} false; then :
9716 $as_echo_n "(cached) " >&6
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9723 #if !defined ETXTBSY
9732 #if !defined ENOLINK
9738 #if !defined EMULTIHOP
9741 #if !defined EBADMSG
9744 #if !defined EOVERFLOW
9747 #if !defined ENOTSUP
9750 #if !defined ENETRESET
9753 #if !defined ECONNABORTED
9762 #if !defined ECANCELED
9765 #if !defined EOWNERDEAD
9768 #if !defined ENOTRECOVERABLE
9776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9777 $EGREP "booboo" >/dev/null 2>&1; then :
9778 gl_cv_header_errno_h_complete=no
9780 gl_cv_header_errno_h_complete=yes
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
9787 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
9788 if test $gl_cv_header_errno_h_complete = yes; then
9799 if test $gl_cv_have_include_next = yes; then
9800 gl_cv_next_errno_h='<'errno.h'>'
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
9803 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
9804 if ${gl_cv_next_errno_h+:} false; then :
9805 $as_echo_n "(cached) " >&6
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9815 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9816 *) gl_absname_cpp="$ac_cpp" ;;
9821 gl_dirsep_regex='[/\\]'
9824 gl_dirsep_regex='\/'
9827 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9828 gl_header_literal_regex=`echo 'errno.h' \
9829 | sed -e "$gl_make_literal_regex_sed"`
9830 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9831 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9837 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9838 sed -n "$gl_absolute_header_sed"`
9840 gl_header=$gl_cv_absolute_errno_h
9841 gl_cv_next_errno_h='"'$gl_header'"'
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
9846 $as_echo "$gl_cv_next_errno_h" >&6; }
9848 NEXT_ERRNO_H=$gl_cv_next_errno_h
9850 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9852 gl_next_as_first_directive='<'errno.h'>'
9854 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9855 gl_next_as_first_directive=$gl_cv_next_errno_h
9857 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
9865 if test -n "$ERRNO_H"; then
9866 GL_GENERATE_ERRNO_H_TRUE=
9867 GL_GENERATE_ERRNO_H_FALSE='#'
9869 GL_GENERATE_ERRNO_H_TRUE='#'
9870 GL_GENERATE_ERRNO_H_FALSE=
9874 if test -n "$ERRNO_H"; then
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
9876 $as_echo_n "checking for EMULTIHOP value... " >&6; }
9877 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
9878 $as_echo_n "(cached) " >&6
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9891 $EGREP "yes" >/dev/null 2>&1; then :
9892 gl_cv_header_errno_h_EMULTIHOP=yes
9894 gl_cv_header_errno_h_EMULTIHOP=no
9898 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9902 #define _XOPEN_SOURCE_EXTENDED 1
9909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9910 $EGREP "yes" >/dev/null 2>&1; then :
9911 gl_cv_header_errno_h_EMULTIHOP=hidden
9915 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
9916 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
9917 #define _XOPEN_SOURCE_EXTENDED 1
9919 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
9931 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
9932 case $gl_cv_header_errno_h_EMULTIHOP in
9934 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
9937 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
9945 if test -n "$ERRNO_H"; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
9947 $as_echo_n "checking for ENOLINK value... " >&6; }
9948 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
9949 $as_echo_n "(cached) " >&6
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9962 $EGREP "yes" >/dev/null 2>&1; then :
9963 gl_cv_header_errno_h_ENOLINK=yes
9965 gl_cv_header_errno_h_ENOLINK=no
9969 if test $gl_cv_header_errno_h_ENOLINK = no; then
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9973 #define _XOPEN_SOURCE_EXTENDED 1
9980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9981 $EGREP "yes" >/dev/null 2>&1; then :
9982 gl_cv_header_errno_h_ENOLINK=hidden
9986 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
9987 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
9988 #define _XOPEN_SOURCE_EXTENDED 1
9990 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
10002 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
10003 case $gl_cv_header_errno_h_ENOLINK in
10005 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
10008 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
10016 if test -n "$ERRNO_H"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
10018 $as_echo_n "checking for EOVERFLOW value... " >&6; }
10019 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
10020 $as_echo_n "(cached) " >&6
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10033 $EGREP "yes" >/dev/null 2>&1; then :
10034 gl_cv_header_errno_h_EOVERFLOW=yes
10036 gl_cv_header_errno_h_EOVERFLOW=no
10040 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10044 #define _XOPEN_SOURCE_EXTENDED 1
10051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10052 $EGREP "yes" >/dev/null 2>&1; then :
10053 gl_cv_header_errno_h_EOVERFLOW=hidden
10057 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
10058 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
10059 #define _XOPEN_SOURCE_EXTENDED 1
10061 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10063 #include <stdlib.h>
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
10073 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
10074 case $gl_cv_header_errno_h_EOVERFLOW in
10076 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
10079 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
10087 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
10088 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
10094 cat >>confdefs.h <<_ACEOF
10095 #define HAVE_DECL_STRERROR_R $ac_have_decl
10098 for ac_func in strerror_r
10100 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
10101 if test "x$ac_cv_func_strerror_r" = xyes; then :
10102 cat >>confdefs.h <<_ACEOF
10103 #define HAVE_STRERROR_R 1
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
10110 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
10111 if ${ac_cv_func_strerror_r_char_p+:} false; then :
10112 $as_echo_n "(cached) " >&6
10115 ac_cv_func_strerror_r_char_p=no
10116 if test $ac_cv_have_decl_strerror_r = yes; then
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119 $ac_includes_default
10125 char x = *strerror_r (0, buf, sizeof buf);
10126 char *p = strerror_r (0, buf, sizeof buf);
10133 if ac_fn_c_try_compile "$LINENO"; then :
10134 ac_cv_func_strerror_r_char_p=yes
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10138 # strerror_r is not declared. Choose between
10139 # systems that have relatively inaccessible declarations for the
10140 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
10141 # former has a strerror_r that returns char*, while the latter
10142 # has a strerror_r that returns `int'.
10143 # This test should segfault on the DEC system.
10144 if test "$cross_compiling" = yes; then :
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 $ac_includes_default
10150 extern char *strerror_r ();
10155 char x = *strerror_r (0, buf, sizeof buf);
10156 return ! isalpha (x);
10161 if ac_fn_c_try_run "$LINENO"; then :
10162 ac_cv_func_strerror_r_char_p=yes
10164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10165 conftest.$ac_objext conftest.beam conftest.$ac_ext
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
10172 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
10173 if test $ac_cv_func_strerror_r_char_p = yes; then
10175 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
10182 $as_echo_n "checking type of array argument to getgroups... " >&6; }
10183 if ${ac_cv_type_getgroups+:} false; then :
10184 $as_echo_n "(cached) " >&6
10186 if test "$cross_compiling" = yes; then :
10187 ac_cv_type_getgroups=cross
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 /* Thanks to Mike Rendell for this test. */
10192 $ac_includes_default
10195 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10200 gid_t gidset[NGID];
10202 union { gid_t gval; long int lval; } val;
10205 for (i = 0; i < NGID; i++)
10206 gidset[i] = val.gval;
10207 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10209 /* Exit non-zero if getgroups seems to require an array of ints. This
10210 happens when gid_t is short int but getgroups modifies an array
10212 return n > 0 && gidset[n] != val.gval;
10215 if ac_fn_c_try_run "$LINENO"; then :
10216 ac_cv_type_getgroups=gid_t
10218 ac_cv_type_getgroups=int
10220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10221 conftest.$ac_objext conftest.beam conftest.$ac_ext
10224 if test $ac_cv_type_getgroups = cross; then
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10227 #include <unistd.h>
10230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10231 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
10232 ac_cv_type_getgroups=gid_t
10234 ac_cv_type_getgroups=int
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
10241 $as_echo "$ac_cv_type_getgroups" >&6; }
10243 cat >>confdefs.h <<_ACEOF
10244 #define GETGROUPS_T $ac_cv_type_getgroups
10251 ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
10252 if test "x$ac_cv_have_decl_fchdir" = xyes; then :
10258 cat >>confdefs.h <<_ACEOF
10259 #define HAVE_DECL_FCHDIR $ac_have_decl
10275 GNULIB_UTIMENSAT=0;
10289 REPLACE_FUTIMENS=0;
10295 REPLACE_UTIMENSAT=0;
10303 GNULIB_NONBLOCKING=0;
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10322 $as_echo_n "checking for working fcntl.h... " >&6; }
10323 if ${gl_cv_header_working_fcntl_h+:} false; then :
10324 $as_echo_n "(cached) " >&6
10326 if test "$cross_compiling" = yes; then :
10327 gl_cv_header_working_fcntl_h=cross-compiling
10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h. */
10331 #include <sys/types.h>
10332 #include <sys/stat.h>
10334 # include <unistd.h>
10335 #else /* on Windows with MSVC */
10337 # include <stdlib.h>
10338 # defined sleep(n) _sleep ((n) * 1000)
10342 #define O_NOATIME 0
10345 #define O_NOFOLLOW 0
10347 static int const constants[] =
10349 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10350 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10357 int result = !constants;
10360 static char const sym[] = "conftest.sym";
10361 if (symlink ("/dev/null", sym) != 0)
10365 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10372 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10376 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10387 static char const file[] = "confdefs.h";
10388 int fd = open (file, O_RDONLY | O_NOATIME);
10394 if (fstat (fd, &st0) != 0)
10400 if (read (fd, &c, 1) != 1)
10404 if (close (fd) != 0)
10409 if (stat (file, &st1) != 0)
10412 if (st0.st_atime != st1.st_atime)
10424 if ac_fn_c_try_run "$LINENO"; then :
10425 gl_cv_header_working_fcntl_h=yes
10428 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10429 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10430 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10431 *) gl_cv_header_working_fcntl_h='no';;
10434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10435 conftest.$ac_objext conftest.beam conftest.$ac_ext
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10440 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10442 case $gl_cv_header_working_fcntl_h in #(
10443 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10447 cat >>confdefs.h <<_ACEOF
10448 #define HAVE_WORKING_O_NOATIME $ac_val
10452 case $gl_cv_header_working_fcntl_h in #(
10453 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
10467 $as_echo_n "checking for mbstate_t... " >&6; }
10468 if ${ac_cv_type_mbstate_t+:} false; then :
10469 $as_echo_n "(cached) " >&6
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 $ac_includes_default
10474 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10476 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10477 included before <wchar.h>. */
10478 #include <stddef.h>
10485 mbstate_t x; return sizeof x;
10490 if ac_fn_c_try_compile "$LINENO"; then :
10491 ac_cv_type_mbstate_t=yes
10493 ac_cv_type_mbstate_t=no
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
10498 $as_echo "$ac_cv_type_mbstate_t" >&6; }
10499 if test $ac_cv_type_mbstate_t = yes; then
10501 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
10505 $as_echo "#define mbstate_t int" >>confdefs.h
10534 GNULIB_FPRINTF_POSIX=0;
10550 GNULIB_OBSTACK_PRINTF=0;
10551 GNULIB_OBSTACK_PRINTF_POSIX=0;
10556 GNULIB_PRINTF_POSIX=0;
10565 GNULIB_SPRINTF_POSIX=0;
10566 GNULIB_STDIO_H_NONBLOCKING=0;
10567 GNULIB_STDIO_H_SIGPIPE=0;
10569 GNULIB_VASPRINTF=0;
10574 GNULIB_VFPRINTF_POSIX=0;
10576 GNULIB_VPRINTF_POSIX=0;
10577 GNULIB_VSNPRINTF=0;
10578 GNULIB_VSPRINTF_POSIX=0;
10579 HAVE_DECL_FPURGE=1;
10580 HAVE_DECL_FSEEKO=1;
10581 HAVE_DECL_FTELLO=1;
10582 HAVE_DECL_GETDELIM=1;
10583 HAVE_DECL_GETLINE=1;
10584 HAVE_DECL_OBSTACK_PRINTF=1;
10585 HAVE_DECL_SNPRINTF=1;
10586 HAVE_DECL_VSNPRINTF=1;
10607 REPLACE_GETDELIM=0;
10609 REPLACE_OBSTACK_PRINTF=0;
10615 REPLACE_RENAMEAT=0;
10616 REPLACE_SNPRINTF=0;
10618 REPLACE_STDIO_READ_FUNCS=0;
10619 REPLACE_STDIO_WRITE_FUNCS=0;
10621 REPLACE_VASPRINTF=0;
10622 REPLACE_VDPRINTF=0;
10623 REPLACE_VFPRINTF=0;
10625 REPLACE_VSNPRINTF=0;
10626 REPLACE_VSPRINTF=0;
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
10630 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
10631 if ${gl_cv_var_stdin_large_offset+:} false; then :
10632 $as_echo_n "(cached) " >&6
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10640 #if defined __SL64 && defined __SCLE /* cygwin */
10641 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
10642 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
10643 it is easier to do a version check than building a runtime test. */
10644 # include <cygwin/version.h>
10645 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
10653 if ac_fn_c_try_link "$LINENO"; then :
10654 gl_cv_var_stdin_large_offset=yes
10656 gl_cv_var_stdin_large_offset=no
10658 rm -f core conftest.err conftest.$ac_objext \
10659 conftest$ac_exeext conftest.$ac_ext
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
10662 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
10671 $as_echo_n "checking for 64-bit off_t... " >&6; }
10672 if ${gl_cv_type_off_t_64+:} false; then :
10673 $as_echo_n "(cached) " >&6
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #include <sys/types.h>
10678 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
10688 if ac_fn_c_try_compile "$LINENO"; then :
10689 gl_cv_type_off_t_64=yes
10691 gl_cv_type_off_t_64=no
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
10697 $as_echo "$gl_cv_type_off_t_64" >&6; }
10698 if test $gl_cv_type_off_t_64 = no; then
10699 WINDOWS_64_BIT_OFF_T=1
10701 WINDOWS_64_BIT_OFF_T=0
10703 WINDOWS_64_BIT_ST_SIZE=1
10706 WINDOWS_64_BIT_OFF_T=0
10707 WINDOWS_64_BIT_ST_SIZE=0
10727 if test $gl_cv_have_include_next = yes; then
10728 gl_cv_next_sys_types_h='<'sys/types.h'>'
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
10731 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
10732 if ${gl_cv_next_sys_types_h+:} false; then :
10733 $as_echo_n "(cached) " >&6
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include <sys/types.h>
10743 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10744 *) gl_absname_cpp="$ac_cpp" ;;
10749 gl_dirsep_regex='[/\\]'
10752 gl_dirsep_regex='\/'
10755 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10756 gl_header_literal_regex=`echo 'sys/types.h' \
10757 | sed -e "$gl_make_literal_regex_sed"`
10758 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10759 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10765 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10766 sed -n "$gl_absolute_header_sed"`
10768 gl_header=$gl_cv_absolute_sys_types_h
10769 gl_cv_next_sys_types_h='"'$gl_header'"'
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
10774 $as_echo "$gl_cv_next_sys_types_h" >&6; }
10776 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
10778 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10779 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10780 gl_next_as_first_directive='<'sys/types.h'>'
10782 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10783 gl_next_as_first_directive=$gl_cv_next_sys_types_h
10785 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
10797 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
10798 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
10804 cat >>confdefs.h <<_ACEOF
10805 #define HAVE_DECL_FSEEKO $ac_have_decl
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
10817 $as_echo_n "checking for fseeko... " >&6; }
10818 if ${gl_cv_func_fseeko+:} false; then :
10819 $as_echo_n "(cached) " >&6
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10829 fseeko (stdin, 0, 0);
10834 if ac_fn_c_try_link "$LINENO"; then :
10835 gl_cv_func_fseeko=yes
10837 gl_cv_func_fseeko=no
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
10844 $as_echo "$gl_cv_func_fseeko" >&6; }
10847 if test $ac_cv_have_decl_fseeko = no; then
10851 if test $gl_cv_func_fseeko = no; then
10854 if test $WINDOWS_64_BIT_OFF_T = 1; then
10857 if test $gl_cv_var_stdin_large_offset = no; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10864 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10865 if ${ac_cv_header_stat_broken+:} false; then :
10866 $as_echo_n "(cached) " >&6
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 #include <sys/types.h>
10871 #include <sys/stat.h>
10873 #if defined S_ISBLK && defined S_IFDIR
10874 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10877 #if defined S_ISBLK && defined S_IFCHR
10878 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10881 #if defined S_ISLNK && defined S_IFREG
10882 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10885 #if defined S_ISSOCK && defined S_IFREG
10886 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10890 if ac_fn_c_try_compile "$LINENO"; then :
10891 ac_cv_header_stat_broken=no
10893 ac_cv_header_stat_broken=yes
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10898 $as_echo "$ac_cv_header_stat_broken" >&6; }
10899 if test $ac_cv_header_stat_broken = yes; then
10901 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10921 if test $gl_cv_have_include_next = yes; then
10922 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
10925 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
10926 if ${gl_cv_next_sys_stat_h+:} false; then :
10927 $as_echo_n "(cached) " >&6
10930 if test $ac_cv_header_sys_stat_h = yes; then
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10937 #include <sys/stat.h>
10940 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10941 *) gl_absname_cpp="$ac_cpp" ;;
10946 gl_dirsep_regex='[/\\]'
10949 gl_dirsep_regex='\/'
10952 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10953 gl_header_literal_regex=`echo 'sys/stat.h' \
10954 | sed -e "$gl_make_literal_regex_sed"`
10955 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10956 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10962 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10963 sed -n "$gl_absolute_header_sed"`
10965 gl_header=$gl_cv_absolute_sys_stat_h
10966 gl_cv_next_sys_stat_h='"'$gl_header'"'
10968 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
10974 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
10976 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
10978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10980 gl_next_as_first_directive='<'sys/stat.h'>'
10982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10983 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
10985 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
10997 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
10999 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
11003 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
11004 #include <sys/stat.h>
11006 if test "x$ac_cv_type_nlink_t" = xyes; then :
11010 $as_echo "#define nlink_t int" >>confdefs.h
11016 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
11017 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11019 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11020 if eval \${$as_gl_Symbol+:} false; then :
11021 $as_echo_n "(cached) " >&6
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11025 #include <sys/stat.h>
11036 if ac_fn_c_try_compile "$LINENO"; then :
11037 eval "$as_gl_Symbol=yes"
11039 eval "$as_gl_Symbol=no"
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 eval ac_res=\$$as_gl_Symbol
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11045 $as_echo "$ac_res" >&6; }
11046 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
11047 cat >>confdefs.h <<_ACEOF
11048 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11051 eval ac_cv_have_decl_$gl_func=yes
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11058 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11059 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
11060 $as_echo_n "(cached) " >&6
11062 rm -f conftest.sym conftest.file
11063 echo >conftest.file
11064 if test "$cross_compiling" = yes; then :
11067 # Guess yes on glibc systems.
11068 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
11070 # If we don't know, assume the worst.
11071 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11077 $ac_includes_default
11082 if (symlink ("conftest.file", "conftest.sym") != 0)
11084 /* Linux will dereference the symlink and fail, as required by
11085 POSIX. That is better in the sense that it means we will not
11086 have to compile and use the lstat wrapper. */
11087 return lstat ("conftest.sym/", &sbuf) == 0;
11093 if ac_fn_c_try_run "$LINENO"; then :
11094 gl_cv_func_lstat_dereferences_slashed_symlink=yes
11096 gl_cv_func_lstat_dereferences_slashed_symlink=no
11098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11099 conftest.$ac_objext conftest.beam conftest.$ac_ext
11102 rm -f conftest.sym conftest.file
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
11106 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11107 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
11110 cat >>confdefs.h <<_ACEOF
11111 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
11124 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
11125 if ${gl_cv_func_getcwd_null+:} false; then :
11126 $as_echo_n "(cached) " >&6
11128 if test "$cross_compiling" = yes; then :
11130 # Guess yes on glibc systems.
11131 *-gnu*) gl_cv_func_getcwd_null="guessing yes";;
11132 # Guess yes on Cygwin.
11133 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
11134 # If we don't know, assume the worst.
11135 *) gl_cv_func_getcwd_null="guessing no";;
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11143 # include <unistd.h>
11144 # else /* on Windows with MSVC */
11145 # include <direct.h>
11155 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
11156 /* mingw cwd does not start with '/', but getcwd does allocate.
11157 However, mingw fails to honor non-zero size. */
11159 if (chdir ("/") != 0)
11163 char *f = getcwd (NULL, 0);
11178 if ac_fn_c_try_run "$LINENO"; then :
11179 gl_cv_func_getcwd_null=yes
11181 gl_cv_func_getcwd_null=no
11183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11184 conftest.$ac_objext conftest.beam conftest.$ac_ext
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
11189 $as_echo "$gl_cv_func_getcwd_null" >&6; }
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
11193 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
11194 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
11195 $as_echo_n "(cached) " >&6
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199 #include <unistd.h>
11207 char *getcwd (char *, size_t);
11214 if ac_fn_c_try_compile "$LINENO"; then :
11215 gl_cv_func_getcwd_posix_signature=yes
11217 gl_cv_func_getcwd_posix_signature=no
11219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
11223 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
11225 ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
11226 if test "x$ac_cv_have_decl_getcwd" = xyes; then :
11232 cat >>confdefs.h <<_ACEOF
11233 #define HAVE_DECL_GETCWD $ac_have_decl
11236 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
11237 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
11243 cat >>confdefs.h <<_ACEOF
11244 #define HAVE_DECL_GETDELIM $ac_have_decl
11251 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
11252 if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
11258 cat >>confdefs.h <<_ACEOF
11259 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
11262 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
11263 if test "x$ac_cv_have_decl_getline" = xyes; then :
11269 cat >>confdefs.h <<_ACEOF
11270 #define HAVE_DECL_GETLINE $ac_have_decl
11288 if test $gl_cv_have_include_next = yes; then
11289 gl_cv_next_getopt_h='<'getopt.h'>'
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
11292 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
11293 if ${gl_cv_next_getopt_h+:} false; then :
11294 $as_echo_n "(cached) " >&6
11297 if test $ac_cv_header_getopt_h = yes; then
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304 #include <getopt.h>
11307 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11308 *) gl_absname_cpp="$ac_cpp" ;;
11313 gl_dirsep_regex='[/\\]'
11316 gl_dirsep_regex='\/'
11319 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11320 gl_header_literal_regex=`echo 'getopt.h' \
11321 | sed -e "$gl_make_literal_regex_sed"`
11322 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11323 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11329 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11330 sed -n "$gl_absolute_header_sed"`
11332 gl_header=$gl_cv_absolute_getopt_h
11333 gl_cv_next_getopt_h='"'$gl_header'"'
11335 gl_cv_next_getopt_h='<'getopt.h'>'
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
11341 $as_echo "$gl_cv_next_getopt_h" >&6; }
11343 NEXT_GETOPT_H=$gl_cv_next_getopt_h
11345 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11346 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11347 gl_next_as_first_directive='<'getopt.h'>'
11349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11350 gl_next_as_first_directive=$gl_cv_next_getopt_h
11352 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
11357 if test $ac_cv_header_getopt_h = yes; then
11366 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11367 for ac_header in getopt.h
11369 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11370 if test "x$ac_cv_header_getopt_h" = xyes; then :
11371 cat >>confdefs.h <<_ACEOF
11372 #define HAVE_GETOPT_H 1
11376 gl_replace_getopt=yes
11383 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11384 for ac_func in getopt_long_only
11386 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11387 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
11388 cat >>confdefs.h <<_ACEOF
11389 #define HAVE_GETOPT_LONG_ONLY 1
11393 gl_replace_getopt=yes
11399 if test -z "$gl_replace_getopt"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
11401 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
11402 if ${gl_cv_func_getopt_posix+:} false; then :
11403 $as_echo_n "(cached) " >&6
11406 if test $cross_compiling = no; then
11407 if test "$cross_compiling" = yes; then :
11408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11410 as_fn_error $? "cannot run test program while cross compiling
11411 See \`config.log' for more details" "$LINENO" 5; }
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11416 #include <unistd.h>
11417 #include <stdlib.h>
11418 #include <string.h>
11423 static char program[] = "program";
11424 static char a[] = "-a";
11425 static char foo[] = "foo";
11426 static char bar[] = "bar";
11427 char *argv[] = { program, a, foo, bar, NULL };
11430 c = getopt (4, argv, "ab");
11433 c = getopt (4, argv, "ab");
11436 if (!(optind == 2))
11442 if ac_fn_c_try_run "$LINENO"; then :
11443 gl_cv_func_getopt_posix=maybe
11445 gl_cv_func_getopt_posix=no
11447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11448 conftest.$ac_objext conftest.beam conftest.$ac_ext
11451 if test $gl_cv_func_getopt_posix = maybe; then
11452 if test "$cross_compiling" = yes; then :
11453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11455 as_fn_error $? "cannot run test program while cross compiling
11456 See \`config.log' for more details" "$LINENO" 5; }
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11461 #include <unistd.h>
11462 #include <stdlib.h>
11463 #include <string.h>
11468 static char program[] = "program";
11469 static char donald[] = "donald";
11470 static char p[] = "-p";
11471 static char billy[] = "billy";
11472 static char duck[] = "duck";
11473 static char a[] = "-a";
11474 static char bar[] = "bar";
11475 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
11478 c = getopt (7, argv, "+abp:q:");
11481 if (!(strcmp (argv[0], "program") == 0))
11483 if (!(strcmp (argv[1], "donald") == 0))
11485 if (!(strcmp (argv[2], "-p") == 0))
11487 if (!(strcmp (argv[3], "billy") == 0))
11489 if (!(strcmp (argv[4], "duck") == 0))
11491 if (!(strcmp (argv[5], "-a") == 0))
11493 if (!(strcmp (argv[6], "bar") == 0))
11495 if (!(optind == 1))
11501 if ac_fn_c_try_run "$LINENO"; then :
11502 gl_cv_func_getopt_posix=maybe
11504 gl_cv_func_getopt_posix=no
11506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11507 conftest.$ac_objext conftest.beam conftest.$ac_ext
11511 if test $gl_cv_func_getopt_posix = maybe; then
11512 if test "$cross_compiling" = yes; then :
11513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11515 as_fn_error $? "cannot run test program while cross compiling
11516 See \`config.log' for more details" "$LINENO" 5; }
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11521 #include <unistd.h>
11522 #include <stdlib.h>
11523 #include <string.h>
11528 static char program[] = "program";
11529 static char ab[] = "-ab";
11530 char *argv[3] = { program, ab, NULL };
11531 if (getopt (2, argv, "ab:") != 'a')
11533 if (getopt (2, argv, "ab:") != '?')
11543 if ac_fn_c_try_run "$LINENO"; then :
11544 gl_cv_func_getopt_posix=yes
11546 gl_cv_func_getopt_posix=no
11548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11549 conftest.$ac_objext conftest.beam conftest.$ac_ext
11555 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
11556 *) gl_cv_func_getopt_posix="guessing yes";;
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
11562 $as_echo "$gl_cv_func_getopt_posix" >&6; }
11563 case "$gl_cv_func_getopt_posix" in
11564 *no) gl_replace_getopt=yes ;;
11568 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11570 $as_echo_n "checking for working GNU getopt function... " >&6; }
11571 if ${gl_cv_func_getopt_gnu+:} false; then :
11572 $as_echo_n "(cached) " >&6
11574 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
11575 # optstring is necessary for programs like m4 that have POSIX-mandated
11576 # semantics for supporting options interspersed with files.
11577 # Also, since getopt_long is a GNU extension, we require optind=0.
11578 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
11579 # so take care to revert to the correct (non-)export state.
11580 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
11581 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
11582 xx) gl_had_POSIXLY_CORRECT=exported ;;
11583 x) gl_had_POSIXLY_CORRECT=yes ;;
11584 *) gl_had_POSIXLY_CORRECT= ;;
11587 export POSIXLY_CORRECT
11588 if test "$cross_compiling" = yes; then :
11589 gl_cv_func_getopt_gnu="guessing no"
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11594 #include <getopt.h>
11595 #include <stddef.h>
11596 #include <string.h>
11598 #include <stdlib.h>
11599 #if defined __MACH__ && defined __APPLE__
11600 /* Avoid a crash on Mac OS X. */
11601 #include <mach/mach.h>
11602 #include <mach/mach_error.h>
11603 #include <mach/thread_status.h>
11604 #include <mach/exception.h>
11605 #include <mach/task.h>
11606 #include <pthread.h>
11607 /* The exception port on which our thread listens. */
11608 static mach_port_t our_exception_port;
11609 /* The main function of the thread listening for exceptions of type
11612 mach_exception_thread (void *arg)
11614 /* Buffer for a message to be received. */
11616 mach_msg_header_t head;
11617 mach_msg_body_t msgh_body;
11620 mach_msg_return_t retval;
11621 /* Wait for a message on the exception port. */
11622 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
11623 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
11624 if (retval != MACH_MSG_SUCCESS)
11629 nocrash_init (void)
11631 mach_port_t self = mach_task_self ();
11632 /* Allocate a port on which the thread shall listen for exceptions. */
11633 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
11635 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
11636 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
11637 MACH_MSG_TYPE_MAKE_SEND)
11639 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
11641 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
11642 /* Create the thread listening on the exception port. */
11643 pthread_attr_t attr;
11645 if (pthread_attr_init (&attr) == 0
11646 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
11647 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
11648 pthread_attr_destroy (&attr);
11649 /* Replace the exception port info for these exceptions with our own.
11650 Note that we replace the exception port for the entire task, not only
11651 for a particular thread. This has the effect that when our exception
11652 port gets the message, the thread specific exception port has already
11653 been asked, and we don't need to bother about it.
11654 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
11655 task_set_exception_ports (self, mask, our_exception_port,
11656 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
11661 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
11662 /* Avoid a crash on native Windows. */
11663 #define WIN32_LEAN_AND_MEAN
11664 #include <windows.h>
11665 #include <winerror.h>
11667 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
11669 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
11671 case EXCEPTION_ACCESS_VIOLATION:
11672 case EXCEPTION_IN_PAGE_ERROR:
11673 case EXCEPTION_STACK_OVERFLOW:
11674 case EXCEPTION_GUARD_PAGE:
11675 case EXCEPTION_PRIV_INSTRUCTION:
11676 case EXCEPTION_ILLEGAL_INSTRUCTION:
11677 case EXCEPTION_DATATYPE_MISALIGNMENT:
11678 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
11679 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
11682 return EXCEPTION_CONTINUE_SEARCH;
11685 nocrash_init (void)
11687 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
11690 /* Avoid a crash on POSIX systems. */
11691 #include <signal.h>
11692 /* A POSIX signal handler. */
11694 exception_handler (int sig)
11699 nocrash_init (void)
11702 signal (SIGSEGV, exception_handler);
11705 signal (SIGBUS, exception_handler);
11719 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
11720 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
11721 OSF/1 5.1, Solaris 10. */
11723 static char conftest[] = "conftest";
11724 static char plus[] = "-+";
11725 char *argv[3] = { conftest, plus, NULL };
11727 if (getopt (2, argv, "+a") != '?')
11730 /* This code succeeds on glibc 2.8, mingw,
11731 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
11732 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
11734 static char program[] = "program";
11735 static char p[] = "-p";
11736 static char foo[] = "foo";
11737 static char bar[] = "bar";
11738 char *argv[] = { program, p, foo, bar, NULL };
11741 if (getopt (4, argv, "p::") != 'p')
11743 else if (optarg != NULL)
11745 else if (getopt (4, argv, "p::") != -1)
11747 else if (optind != 2)
11750 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
11752 static char program[] = "program";
11753 static char foo[] = "foo";
11754 static char p[] = "-p";
11755 char *argv[] = { program, foo, p, NULL };
11757 if (getopt (3, argv, "-p") != 1)
11759 else if (getopt (3, argv, "-p") != 'p')
11762 /* This code fails on glibc 2.11. */
11764 static char program[] = "program";
11765 static char b[] = "-b";
11766 static char a[] = "-a";
11767 char *argv[] = { program, b, a, NULL };
11768 optind = opterr = 0;
11769 if (getopt (3, argv, "+:a:b") != 'b')
11771 else if (getopt (3, argv, "+:a:b") != ':')
11774 /* This code dumps core on glibc 2.14. */
11776 static char program[] = "program";
11777 static char w[] = "-W";
11778 static char dummy[] = "dummy";
11779 char *argv[] = { program, w, dummy, NULL };
11780 optind = opterr = 1;
11781 if (getopt (3, argv, "W;") != 'W')
11790 if ac_fn_c_try_run "$LINENO"; then :
11791 gl_cv_func_getopt_gnu=yes
11793 gl_cv_func_getopt_gnu=no
11795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11796 conftest.$ac_objext conftest.beam conftest.$ac_ext
11799 case $gl_had_POSIXLY_CORRECT in
11801 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
11802 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
11807 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
11808 if test "$gl_cv_func_getopt_gnu" != yes; then
11809 gl_replace_getopt=yes
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
11812 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
11813 if ${gl_cv_func_getopt_long_gnu+:} false; then :
11814 $as_echo_n "(cached) " >&6
11816 if test "$cross_compiling" = yes; then :
11818 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
11819 *) gl_cv_func_getopt_long_gnu="guessing yes";;
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11825 #include <getopt.h>
11826 #include <stddef.h>
11827 #include <string.h>
11832 static const struct option long_options[] =
11834 { "xtremely-",no_argument, NULL, 1003 },
11835 { "xtra", no_argument, NULL, 1001 },
11836 { "xtreme", no_argument, NULL, 1002 },
11837 { "xtremely", no_argument, NULL, 1003 },
11838 { NULL, 0, NULL, 0 }
11840 /* This code fails on OpenBSD 5.0. */
11842 static char program[] = "program";
11843 static char xtremel[] = "--xtremel";
11844 char *argv[] = { program, xtremel, NULL };
11846 optind = 1; opterr = 0;
11847 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
11856 if ac_fn_c_try_run "$LINENO"; then :
11857 gl_cv_func_getopt_long_gnu=yes
11859 gl_cv_func_getopt_long_gnu=no
11861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11862 conftest.$ac_objext conftest.beam conftest.$ac_ext
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
11868 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
11869 case "$gl_cv_func_getopt_long_gnu" in
11871 *) gl_replace_getopt=yes ;;
11883 if test $REPLACE_GETOPT = 1; then
11887 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11893 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
11894 if test "x$ac_cv_have_decl_getenv" = xyes; then :
11900 cat >>confdefs.h <<_ACEOF
11901 #define HAVE_DECL_GETENV $ac_have_decl
11910 GNULIB_GETTIMEOFDAY=0;
11911 HAVE_GETTIMEOFDAY=1;
11912 HAVE_STRUCT_TIMEVAL=1;
11915 REPLACE_GETTIMEOFDAY=0;
11916 REPLACE_STRUCT_TIMEVAL=0;
11931 if test $gl_cv_have_include_next = yes; then
11932 gl_cv_next_sys_time_h='<'sys/time.h'>'
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
11935 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
11936 if ${gl_cv_next_sys_time_h+:} false; then :
11937 $as_echo_n "(cached) " >&6
11940 if test $ac_cv_header_sys_time_h = yes; then
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947 #include <sys/time.h>
11950 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11951 *) gl_absname_cpp="$ac_cpp" ;;
11956 gl_dirsep_regex='[/\\]'
11959 gl_dirsep_regex='\/'
11962 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11963 gl_header_literal_regex=`echo 'sys/time.h' \
11964 | sed -e "$gl_make_literal_regex_sed"`
11965 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11966 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11972 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11973 sed -n "$gl_absolute_header_sed"`
11975 gl_header=$gl_cv_absolute_sys_time_h
11976 gl_cv_next_sys_time_h='"'$gl_header'"'
11978 gl_cv_next_sys_time_h='<'sys/time.h'>'
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
11984 $as_echo "$gl_cv_next_sys_time_h" >&6; }
11986 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
11988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11990 gl_next_as_first_directive='<'sys/time.h'>'
11992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11993 gl_next_as_first_directive=$gl_cv_next_sys_time_h
11995 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
12001 if test $ac_cv_header_sys_time_h != yes; then
12009 if test $ac_cv_header_sys_socket_h != yes; then
12010 for ac_header in winsock2.h
12012 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12013 if test "x$ac_cv_header_winsock2_h" = xyes; then :
12014 cat >>confdefs.h <<_ACEOF
12015 #define HAVE_WINSOCK2_H 1
12023 if test "$ac_cv_header_winsock2_h" = yes; then
12025 UNISTD_H_HAVE_WINSOCK2_H=1
12026 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
12033 $as_echo_n "checking for struct timeval... " >&6; }
12034 if ${gl_cv_sys_struct_timeval+:} false; then :
12035 $as_echo_n "(cached) " >&6
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12039 #if HAVE_SYS_TIME_H
12040 #include <sys/time.h>
12043 #if HAVE_WINSOCK2_H
12044 # include <winsock2.h>
12050 static struct timeval x; x.tv_sec = x.tv_usec;
12055 if ac_fn_c_try_compile "$LINENO"; then :
12056 gl_cv_sys_struct_timeval=yes
12058 gl_cv_sys_struct_timeval=no
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
12064 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
12065 if test $gl_cv_sys_struct_timeval != yes; then
12066 HAVE_STRUCT_TIMEVAL=0
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
12069 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
12070 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
12071 $as_echo_n "(cached) " >&6
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 #if HAVE_SYS_TIME_H
12076 #include <sys/time.h>
12079 #if HAVE_WINSOCK2_H
12080 # include <winsock2.h>
12086 static struct timeval x;
12087 typedef int verify_tv_sec_type[
12088 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
12095 if ac_fn_c_try_compile "$LINENO"; then :
12096 gl_cv_sys_struct_timeval_tv_sec=yes
12098 gl_cv_sys_struct_timeval_tv_sec=no
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
12104 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
12105 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
12106 REPLACE_STRUCT_TIMEVAL=1
12111 for gl_func in gettimeofday; do
12112 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12114 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12115 if eval \${$as_gl_Symbol+:} false; then :
12116 $as_echo_n "(cached) " >&6
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12121 #if HAVE_SYS_TIME_H
12122 # include <sys/time.h>
12135 if ac_fn_c_try_compile "$LINENO"; then :
12136 eval "$as_gl_Symbol=yes"
12138 eval "$as_gl_Symbol=no"
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 eval ac_res=\$$as_gl_Symbol
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12144 $as_echo "$ac_res" >&6; }
12145 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
12146 cat >>confdefs.h <<_ACEOF
12147 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12150 eval ac_cv_have_decl_$gl_func=yes
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12160 $as_echo_n "checking for unsigned long long int... " >&6; }
12161 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
12162 $as_echo_n "(cached) " >&6
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 unsigned long long int ull = 18446744073709551615ULL;
12167 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
12173 unsigned long long int ullmax = 18446744073709551615ull;
12174 return (ull << 63 | ull >> 63 | ull << i | ull >> i
12175 | ullmax / ull | ullmax % ull);
12180 if ac_fn_c_try_link "$LINENO"; then :
12181 ac_cv_type_unsigned_long_long_int=yes
12183 ac_cv_type_unsigned_long_long_int=no
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12189 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
12190 if test $ac_cv_type_unsigned_long_long_int = yes; then
12192 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12199 $as_echo_n "checking for long long int... " >&6; }
12200 if ${ac_cv_type_long_long_int+:} false; then :
12201 $as_echo_n "(cached) " >&6
12203 ac_cv_type_long_long_int=yes
12204 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12205 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
12206 if test $ac_cv_type_long_long_int = yes; then
12207 if test "$cross_compiling" = yes; then :
12210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12212 #include <limits.h>
12215 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12216 # define LLONG_MAX (HALF - 1 + HALF)
12221 long long int n = 1;
12225 long long int m = n << i;
12228 if (LLONG_MAX / 2 < m)
12236 if ac_fn_c_try_run "$LINENO"; then :
12239 ac_cv_type_long_long_int=no
12241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12242 conftest.$ac_objext conftest.beam conftest.$ac_ext
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12249 $as_echo "$ac_cv_type_long_long_int" >&6; }
12250 if test $ac_cv_type_long_long_int = yes; then
12252 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12261 gl_cv_c_multiarch=no
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264 #ifndef __APPLE_CC__
12265 not a universal capable compiler
12270 if ac_fn_c_try_compile "$LINENO"; then :
12274 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12275 if test -n "$prev"; then
12277 i?86 | x86_64 | ppc | ppc64)
12278 if test -z "$arch" || test "$arch" = "$word"; then
12281 gl_cv_c_multiarch=yes
12287 if test "x$word" = "x-arch"; then
12294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12295 if test $gl_cv_c_multiarch = yes; then
12296 APPLE_UNIVERSAL_BUILD=1
12298 APPLE_UNIVERSAL_BUILD=0
12305 if test $ac_cv_type_long_long_int = yes; then
12306 HAVE_LONG_LONG_INT=1
12308 HAVE_LONG_LONG_INT=0
12312 if test $ac_cv_type_unsigned_long_long_int = yes; then
12313 HAVE_UNSIGNED_LONG_LONG_INT=1
12315 HAVE_UNSIGNED_LONG_LONG_INT=0
12320 if test $ac_cv_header_wchar_h = yes; then
12327 if test $ac_cv_header_inttypes_h = yes; then
12334 if test $ac_cv_header_sys_types_h = yes; then
12350 if test $gl_cv_have_include_next = yes; then
12351 gl_cv_next_stdint_h='<'stdint.h'>'
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
12354 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
12355 if ${gl_cv_next_stdint_h+:} false; then :
12356 $as_echo_n "(cached) " >&6
12359 if test $ac_cv_header_stdint_h = yes; then
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12366 #include <stdint.h>
12369 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12370 *) gl_absname_cpp="$ac_cpp" ;;
12375 gl_dirsep_regex='[/\\]'
12378 gl_dirsep_regex='\/'
12381 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12382 gl_header_literal_regex=`echo 'stdint.h' \
12383 | sed -e "$gl_make_literal_regex_sed"`
12384 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12385 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12391 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12392 sed -n "$gl_absolute_header_sed"`
12394 gl_header=$gl_cv_absolute_stdint_h
12395 gl_cv_next_stdint_h='"'$gl_header'"'
12397 gl_cv_next_stdint_h='<'stdint.h'>'
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
12403 $as_echo "$gl_cv_next_stdint_h" >&6; }
12405 NEXT_STDINT_H=$gl_cv_next_stdint_h
12407 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12409 gl_next_as_first_directive='<'stdint.h'>'
12411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12412 gl_next_as_first_directive=$gl_cv_next_stdint_h
12414 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
12419 if test $ac_cv_header_stdint_h = yes; then
12426 if test $ac_cv_header_stdint_h = yes; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
12428 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12429 if ${gl_cv_header_working_stdint_h+:} false; then :
12430 $as_echo_n "(cached) " >&6
12432 gl_cv_header_working_stdint_h=no
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12437 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12438 #include <stdint.h>
12439 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12440 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12441 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12445 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12446 included before <wchar.h>. */
12447 #include <stddef.h>
12448 #include <signal.h>
12450 # include <stdio.h>
12452 # include <wchar.h>
12457 int8_t a1 = INT8_MAX;
12458 int8_t a1min = INT8_MIN;
12461 int16_t a2 = INT16_MAX;
12462 int16_t a2min = INT16_MIN;
12465 int32_t a3 = INT32_MAX;
12466 int32_t a3min = INT32_MIN;
12469 int64_t a4 = INT64_MAX;
12470 int64_t a4min = INT64_MIN;
12473 uint8_t b1 = UINT8_MAX;
12475 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12478 uint16_t b2 = UINT16_MAX;
12481 uint32_t b3 = UINT32_MAX;
12484 uint64_t b4 = UINT64_MAX;
12486 int_least8_t c1 = INT8_C (0x7f);
12487 int_least8_t c1max = INT_LEAST8_MAX;
12488 int_least8_t c1min = INT_LEAST8_MIN;
12489 int_least16_t c2 = INT16_C (0x7fff);
12490 int_least16_t c2max = INT_LEAST16_MAX;
12491 int_least16_t c2min = INT_LEAST16_MIN;
12492 int_least32_t c3 = INT32_C (0x7fffffff);
12493 int_least32_t c3max = INT_LEAST32_MAX;
12494 int_least32_t c3min = INT_LEAST32_MIN;
12495 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12496 int_least64_t c4max = INT_LEAST64_MAX;
12497 int_least64_t c4min = INT_LEAST64_MIN;
12498 uint_least8_t d1 = UINT8_C (0xff);
12499 uint_least8_t d1max = UINT_LEAST8_MAX;
12500 uint_least16_t d2 = UINT16_C (0xffff);
12501 uint_least16_t d2max = UINT_LEAST16_MAX;
12502 uint_least32_t d3 = UINT32_C (0xffffffff);
12503 uint_least32_t d3max = UINT_LEAST32_MAX;
12504 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12505 uint_least64_t d4max = UINT_LEAST64_MAX;
12506 int_fast8_t e1 = INT_FAST8_MAX;
12507 int_fast8_t e1min = INT_FAST8_MIN;
12508 int_fast16_t e2 = INT_FAST16_MAX;
12509 int_fast16_t e2min = INT_FAST16_MIN;
12510 int_fast32_t e3 = INT_FAST32_MAX;
12511 int_fast32_t e3min = INT_FAST32_MIN;
12512 int_fast64_t e4 = INT_FAST64_MAX;
12513 int_fast64_t e4min = INT_FAST64_MIN;
12514 uint_fast8_t f1 = UINT_FAST8_MAX;
12515 uint_fast16_t f2 = UINT_FAST16_MAX;
12516 uint_fast32_t f3 = UINT_FAST32_MAX;
12517 uint_fast64_t f4 = UINT_FAST64_MAX;
12519 intptr_t g = INTPTR_MAX;
12520 intptr_t gmin = INTPTR_MIN;
12523 uintptr_t h = UINTPTR_MAX;
12525 intmax_t i = INTMAX_MAX;
12526 uintmax_t j = UINTMAX_MAX;
12528 #include <limits.h> /* for CHAR_BIT */
12529 #define TYPE_MINIMUM(t) \
12530 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
12531 #define TYPE_MAXIMUM(t) \
12532 ((t) ((t) 0 < (t) -1 \
12534 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
12537 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12538 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12540 /* Detect bug in FreeBSD 6.0 / ia64. */
12541 int check_SIG_ATOMIC:
12542 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12543 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12545 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12547 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12548 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12550 /* Detect bug in mingw. */
12552 WINT_MIN == TYPE_MINIMUM (wint_t)
12553 && WINT_MAX == TYPE_MAXIMUM (wint_t)
12556 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
12558 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12559 int check_UINT16_C:
12560 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12562 /* Detect bugs in OpenBSD 3.9 stdint.h. */
12564 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12567 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12570 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12573 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12575 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12576 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12577 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12578 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12579 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12580 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12581 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12582 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12583 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12584 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12585 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12596 if ac_fn_c_try_compile "$LINENO"; then :
12597 if test "$cross_compiling" = yes; then :
12598 gl_cv_header_working_stdint_h=yes
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12605 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12606 #include <stdint.h>
12609 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12610 included before <wchar.h>. */
12611 #include <stddef.h>
12612 #include <signal.h>
12614 # include <stdio.h>
12616 # include <wchar.h>
12621 #include <string.h>
12622 #define MVAL(macro) MVAL1(macro)
12623 #define MVAL1(expression) #expression
12624 static const char *macro_values[] =
12658 for (mv = macro_values; *mv != NULL; mv++)
12660 const char *value = *mv;
12661 /* Test whether it looks like a cast expression. */
12662 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
12663 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
12664 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
12665 || strncmp (value, "((int)"/*)*/, 6) == 0
12666 || strncmp (value, "((signed short)"/*)*/, 15) == 0
12667 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
12668 return mv - macro_values + 1;
12676 if ac_fn_c_try_run "$LINENO"; then :
12677 gl_cv_header_working_stdint_h=yes
12679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12680 conftest.$ac_objext conftest.beam conftest.$ac_ext
12685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
12689 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
12691 if test "$gl_cv_header_working_stdint_h" = yes; then
12694 for ac_header in sys/inttypes.h sys/bitypes.h
12696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12697 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12698 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12699 cat >>confdefs.h <<_ACEOF
12700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12707 if test $ac_cv_header_sys_inttypes_h = yes; then
12708 HAVE_SYS_INTTYPES_H=1
12710 HAVE_SYS_INTTYPES_H=0
12713 if test $ac_cv_header_sys_bitypes_h = yes; then
12714 HAVE_SYS_BITYPES_H=1
12716 HAVE_SYS_BITYPES_H=0
12722 if test $APPLE_UNIVERSAL_BUILD = 0; then
12725 for gltype in ptrdiff_t size_t ; do
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12727 $as_echo_n "checking for bit size of $gltype... " >&6; }
12728 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
12729 $as_echo_n "(cached) " >&6
12731 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12732 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12733 included before <wchar.h>. */
12734 #include <stddef.h>
12735 #include <signal.h>
12737 # include <stdio.h>
12739 # include <wchar.h>
12742 #include <limits.h>"; then :
12748 eval gl_cv_bitsizeof_${gltype}=\$result
12751 eval ac_res=\$gl_cv_bitsizeof_${gltype}
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12753 $as_echo "$ac_res" >&6; }
12754 eval result=\$gl_cv_bitsizeof_${gltype}
12755 if test $result = unknown; then
12758 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12759 cat >>confdefs.h <<_ACEOF
12760 #define BITSIZEOF_${GLTYPE} $result
12763 eval BITSIZEOF_${GLTYPE}=\$result
12770 for gltype in sig_atomic_t wchar_t wint_t ; do
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12772 $as_echo_n "checking for bit size of $gltype... " >&6; }
12773 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
12774 $as_echo_n "(cached) " >&6
12776 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12777 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12778 included before <wchar.h>. */
12779 #include <stddef.h>
12780 #include <signal.h>
12782 # include <stdio.h>
12784 # include <wchar.h>
12787 #include <limits.h>"; then :
12793 eval gl_cv_bitsizeof_${gltype}=\$result
12796 eval ac_res=\$gl_cv_bitsizeof_${gltype}
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12798 $as_echo "$ac_res" >&6; }
12799 eval result=\$gl_cv_bitsizeof_${gltype}
12800 if test $result = unknown; then
12803 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12804 cat >>confdefs.h <<_ACEOF
12805 #define BITSIZEOF_${GLTYPE} $result
12808 eval BITSIZEOF_${GLTYPE}=\$result
12814 for gltype in sig_atomic_t wchar_t wint_t ; do
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12816 $as_echo_n "checking whether $gltype is signed... " >&6; }
12817 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
12818 $as_echo_n "(cached) " >&6
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12823 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12824 included before <wchar.h>. */
12825 #include <stddef.h>
12826 #include <signal.h>
12828 # include <stdio.h>
12830 # include <wchar.h>
12833 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12842 if ac_fn_c_try_compile "$LINENO"; then :
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848 eval gl_cv_type_${gltype}_signed=\$result
12851 eval ac_res=\$gl_cv_type_${gltype}_signed
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12853 $as_echo "$ac_res" >&6; }
12854 eval result=\$gl_cv_type_${gltype}_signed
12855 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12856 if test "$result" = yes; then
12857 cat >>confdefs.h <<_ACEOF
12858 #define HAVE_SIGNED_${GLTYPE} 1
12861 eval HAVE_SIGNED_${GLTYPE}=1
12863 eval HAVE_SIGNED_${GLTYPE}=0
12868 gl_cv_type_ptrdiff_t_signed=yes
12869 gl_cv_type_size_t_signed=no
12870 if test $APPLE_UNIVERSAL_BUILD = 0; then
12873 for gltype in ptrdiff_t size_t ; do
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12875 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12876 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
12877 $as_echo_n "(cached) " >&6
12879 eval gl_cv_type_${gltype}_suffix=no
12880 eval result=\$gl_cv_type_${gltype}_signed
12881 if test "$result" = yes; then
12886 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
12888 '') gltype1='int';;
12889 l) gltype1='long int';;
12890 ll) gltype1='long long int';;
12891 i64) gltype1='__int64';;
12892 u) gltype1='unsigned int';;
12893 ul) gltype1='unsigned long int';;
12894 ull) gltype1='unsigned long long int';;
12895 ui64)gltype1='unsigned __int64';;
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12900 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12901 included before <wchar.h>. */
12902 #include <stddef.h>
12903 #include <signal.h>
12905 # include <stdio.h>
12907 # include <wchar.h>
12910 extern $gltype foo;
12911 extern $gltype1 foo;
12920 if ac_fn_c_try_compile "$LINENO"; then :
12921 eval gl_cv_type_${gltype}_suffix=\$glsuf
12923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 eval result=\$gl_cv_type_${gltype}_suffix
12925 test "$result" != no && break
12928 eval ac_res=\$gl_cv_type_${gltype}_suffix
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12930 $as_echo "$ac_res" >&6; }
12931 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12932 eval result=\$gl_cv_type_${gltype}_suffix
12933 test "$result" = no && result=
12934 eval ${GLTYPE}_SUFFIX=\$result
12935 cat >>confdefs.h <<_ACEOF
12936 #define ${GLTYPE}_SUFFIX $result
12945 for gltype in sig_atomic_t wchar_t wint_t ; do
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12947 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12948 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
12949 $as_echo_n "(cached) " >&6
12951 eval gl_cv_type_${gltype}_suffix=no
12952 eval result=\$gl_cv_type_${gltype}_signed
12953 if test "$result" = yes; then
12958 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
12960 '') gltype1='int';;
12961 l) gltype1='long int';;
12962 ll) gltype1='long long int';;
12963 i64) gltype1='__int64';;
12964 u) gltype1='unsigned int';;
12965 ul) gltype1='unsigned long int';;
12966 ull) gltype1='unsigned long long int';;
12967 ui64)gltype1='unsigned __int64';;
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12973 included before <wchar.h>. */
12974 #include <stddef.h>
12975 #include <signal.h>
12977 # include <stdio.h>
12979 # include <wchar.h>
12982 extern $gltype foo;
12983 extern $gltype1 foo;
12992 if ac_fn_c_try_compile "$LINENO"; then :
12993 eval gl_cv_type_${gltype}_suffix=\$glsuf
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 eval result=\$gl_cv_type_${gltype}_suffix
12997 test "$result" != no && break
13000 eval ac_res=\$gl_cv_type_${gltype}_suffix
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13002 $as_echo "$ac_res" >&6; }
13003 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13004 eval result=\$gl_cv_type_${gltype}_suffix
13005 test "$result" = no && result=
13006 eval ${GLTYPE}_SUFFIX=\$result
13007 cat >>confdefs.h <<_ACEOF
13008 #define ${GLTYPE}_SUFFIX $result
13015 if test $BITSIZEOF_WINT_T -lt 32; then
13016 BITSIZEOF_WINT_T=32
13022 if test -n "$STDINT_H"; then
13023 GL_GENERATE_STDINT_H_TRUE=
13024 GL_GENERATE_STDINT_H_FALSE='#'
13026 GL_GENERATE_STDINT_H_TRUE='#'
13027 GL_GENERATE_STDINT_H_FALSE=
13036 GNULIB_STRTOIMAX=0;
13037 GNULIB_STRTOUMAX=0;
13038 HAVE_DECL_IMAXABS=1;
13039 HAVE_DECL_IMAXDIV=1;
13040 HAVE_DECL_STRTOIMAX=1;
13041 HAVE_DECL_STRTOUMAX=1;
13042 REPLACE_STRTOIMAX=0;
13043 REPLACE_STRTOUMAX=0;
13044 INT32_MAX_LT_INTMAX_MAX=1;
13045 INT64_MAX_EQ_LONG_MAX='defined _LP64';
13046 PRI_MACROS_BROKEN=0;
13047 PRIPTR_PREFIX=__PRIPTR_PREFIX;
13048 UINT32_MAX_LT_UINTMAX_MAX=1;
13049 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
13065 if test $gl_cv_have_include_next = yes; then
13066 gl_cv_next_inttypes_h='<'inttypes.h'>'
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
13069 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
13070 if ${gl_cv_next_inttypes_h+:} false; then :
13071 $as_echo_n "(cached) " >&6
13074 if test $ac_cv_header_inttypes_h = yes; then
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081 #include <inttypes.h>
13084 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13085 *) gl_absname_cpp="$ac_cpp" ;;
13090 gl_dirsep_regex='[/\\]'
13093 gl_dirsep_regex='\/'
13096 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13097 gl_header_literal_regex=`echo 'inttypes.h' \
13098 | sed -e "$gl_make_literal_regex_sed"`
13099 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13100 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13106 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13107 sed -n "$gl_absolute_header_sed"`
13109 gl_header=$gl_cv_absolute_inttypes_h
13110 gl_cv_next_inttypes_h='"'$gl_header'"'
13112 gl_cv_next_inttypes_h='<'inttypes.h'>'
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
13118 $as_echo "$gl_cv_next_inttypes_h" >&6; }
13120 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
13122 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13123 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13124 gl_next_as_first_directive='<'inttypes.h'>'
13126 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13127 gl_next_as_first_directive=$gl_cv_next_inttypes_h
13129 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
13138 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
13139 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13141 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13142 if eval \${$as_gl_Symbol+:} false; then :
13143 $as_echo_n "(cached) " >&6
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147 #include <inttypes.h>
13158 if ac_fn_c_try_compile "$LINENO"; then :
13159 eval "$as_gl_Symbol=yes"
13161 eval "$as_gl_Symbol=no"
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 eval ac_res=\$$as_gl_Symbol
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13167 $as_echo "$ac_res" >&6; }
13168 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13169 cat >>confdefs.h <<_ACEOF
13170 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13173 eval ac_cv_have_decl_$gl_func=yes
13179 for ac_header in inttypes.h
13181 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13182 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13183 cat >>confdefs.h <<_ACEOF
13184 #define HAVE_INTTYPES_H 1
13191 if test $ac_cv_header_inttypes_h = yes; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13193 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13194 if ${gt_cv_inttypes_pri_broken+:} false; then :
13195 $as_echo_n "(cached) " >&6
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13201 #include <inttypes.h>
13214 if ac_fn_c_try_compile "$LINENO"; then :
13215 gt_cv_inttypes_pri_broken=no
13217 gt_cv_inttypes_pri_broken=yes
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13223 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13225 if test "$gt_cv_inttypes_pri_broken" = yes; then
13227 cat >>confdefs.h <<_ACEOF
13228 #define PRI_MACROS_BROKEN 1
13231 PRI_MACROS_BROKEN=1
13233 PRI_MACROS_BROKEN=0
13242 GNULIB_TOWCTRANS=0;
13246 REPLACE_ISWBLANK=0;
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13252 $as_echo_n "checking for wint_t... " >&6; }
13253 if ${gt_cv_c_wint_t+:} false; then :
13254 $as_echo_n "(cached) " >&6
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13259 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13261 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13262 before <wchar.h>. */
13263 #include <stddef.h>
13267 wint_t foo = (wchar_t)'\0';
13276 if ac_fn_c_try_compile "$LINENO"; then :
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13284 $as_echo "$gt_cv_c_wint_t" >&6; }
13285 if test $gt_cv_c_wint_t = yes; then
13287 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
13296 if test $ac_cv_func_iswcntrl = yes; then
13304 if test $gt_cv_c_wint_t = yes; then
13320 if test $gl_cv_have_include_next = yes; then
13321 gl_cv_next_wctype_h='<'wctype.h'>'
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
13324 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
13325 if ${gl_cv_next_wctype_h+:} false; then :
13326 $as_echo_n "(cached) " >&6
13329 if test $ac_cv_header_wctype_h = yes; then
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 #include <wctype.h>
13339 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13340 *) gl_absname_cpp="$ac_cpp" ;;
13345 gl_dirsep_regex='[/\\]'
13348 gl_dirsep_regex='\/'
13351 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13352 gl_header_literal_regex=`echo 'wctype.h' \
13353 | sed -e "$gl_make_literal_regex_sed"`
13354 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13355 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13361 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13362 sed -n "$gl_absolute_header_sed"`
13364 gl_header=$gl_cv_absolute_wctype_h
13365 gl_cv_next_wctype_h='"'$gl_header'"'
13367 gl_cv_next_wctype_h='<'wctype.h'>'
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
13373 $as_echo "$gl_cv_next_wctype_h" >&6; }
13375 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
13377 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13379 gl_next_as_first_directive='<'wctype.h'>'
13381 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13382 gl_next_as_first_directive=$gl_cv_next_wctype_h
13384 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
13389 if test $ac_cv_header_wctype_h = yes; then
13390 if test $ac_cv_func_iswcntrl = yes; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
13392 $as_echo_n "checking whether iswcntrl works... " >&6; }
13393 if ${gl_cv_func_iswcntrl_works+:} false; then :
13394 $as_echo_n "(cached) " >&6
13397 if test "$cross_compiling" = yes; then :
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 #include <stdlib.h>
13401 #if __GNU_LIBRARY__ == 1
13402 Linux libc5 i18n is broken.
13412 if ac_fn_c_try_compile "$LINENO"; then :
13413 gl_cv_func_iswcntrl_works="guessing yes"
13415 gl_cv_func_iswcntrl_works="guessing no"
13417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13423 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13424 included before <wchar.h>.
13425 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13426 must be included before <wchar.h>. */
13427 #include <stddef.h>
13431 #include <wctype.h>
13432 int main () { return iswprint ('x') == 0; }
13435 if ac_fn_c_try_run "$LINENO"; then :
13436 gl_cv_func_iswcntrl_works=yes
13438 gl_cv_func_iswcntrl_works=no
13440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13441 conftest.$ac_objext conftest.beam conftest.$ac_ext
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
13447 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
13455 case "$gl_cv_func_iswcntrl_works" in
13456 *yes) REPLACE_ISWCNTRL=0 ;;
13457 *) REPLACE_ISWCNTRL=1 ;;
13461 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
13465 if test $REPLACE_ISWCNTRL = 1; then
13468 for ac_func in towlower
13470 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
13471 if test "x$ac_cv_func_towlower" = xyes; then :
13472 cat >>confdefs.h <<_ACEOF
13473 #define HAVE_TOWLOWER 1
13479 if test $ac_cv_func_towlower = yes; then
13482 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13483 included before <wchar.h>.
13484 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13485 must be included before <wchar.h>. */
13486 #include <stddef.h>
13491 # include <wctype.h>
13495 if test "x$ac_cv_have_decl_towlower" = xyes; then :
13501 cat >>confdefs.h <<_ACEOF
13502 #define HAVE_DECL_TOWLOWER $ac_have_decl
13505 if test $ac_cv_have_decl_towlower = yes; then
13514 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
13519 $as_echo_n "checking for wctype_t... " >&6; }
13520 if ${gl_cv_type_wctype_t+:} false; then :
13521 $as_echo_n "(cached) " >&6
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13526 included before <wchar.h>.
13527 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13528 must be included before <wchar.h>. */
13529 #include <stddef.h>
13534 # include <wctype.h>
13546 if ac_fn_c_try_compile "$LINENO"; then :
13547 gl_cv_type_wctype_t=yes
13549 gl_cv_type_wctype_t=no
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
13555 $as_echo "$gl_cv_type_wctype_t" >&6; }
13556 if test $gl_cv_type_wctype_t = no; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
13561 $as_echo_n "checking for wctrans_t... " >&6; }
13562 if ${gl_cv_type_wctrans_t+:} false; then :
13563 $as_echo_n "(cached) " >&6
13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13567 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13568 included before <wchar.h>.
13569 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13570 must be included before <wchar.h>. */
13571 #include <stddef.h>
13575 #include <wctype.h>
13586 if ac_fn_c_try_compile "$LINENO"; then :
13587 gl_cv_type_wctrans_t=yes
13589 gl_cv_type_wctrans_t=no
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
13595 $as_echo "$gl_cv_type_wctrans_t" >&6; }
13596 if test $gl_cv_type_wctrans_t = no; then
13601 for gl_func in wctype iswctype wctrans towctrans ; do
13602 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13604 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13605 if eval \${$as_gl_Symbol+:} false; then :
13606 $as_echo_n "(cached) " >&6
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13611 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13613 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13614 included before <wchar.h>. */
13615 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13616 # include <stddef.h>
13617 # include <stdio.h>
13619 # include <wchar.h>
13621 #include <wctype.h>
13632 if ac_fn_c_try_compile "$LINENO"; then :
13633 eval "$as_gl_Symbol=yes"
13635 eval "$as_gl_Symbol=no"
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 eval ac_res=\$$as_gl_Symbol
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13641 $as_echo "$ac_res" >&6; }
13642 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13643 cat >>confdefs.h <<_ACEOF
13644 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13647 eval ac_cv_have_decl_$gl_func=yes
13655 GNULIB_NL_LANGINFO=0;
13656 HAVE_NL_LANGINFO=1;
13657 REPLACE_NL_LANGINFO=0;
13670 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
13674 # Solaris 9 has *at functions, but uniformly mishandles trailing
13675 # slash in all of them.
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
13687 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
13688 if ${ac_cv_gnu_library_2_1+:} false; then :
13689 $as_echo_n "(cached) " >&6
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13694 #include <features.h>
13695 #ifdef __GNU_LIBRARY__
13696 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13706 $EGREP "Lucky" >/dev/null 2>&1; then :
13707 ac_cv_gnu_library_2_1=yes
13709 ac_cv_gnu_library_2_1=no
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13717 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13719 GLIBC21="$ac_cv_gnu_library_2_1"
13723 GNULIB_LOCALECONV=0;
13724 GNULIB_SETLOCALE=0;
13725 GNULIB_DUPLOCALE=0;
13727 REPLACE_LOCALECONV=0;
13728 REPLACE_SETLOCALE=0;
13729 REPLACE_DUPLOCALE=0;
13730 REPLACE_STRUCT_LCONV=0;
13734 HAVE_MAX_ALIGN_T=1;
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13739 $as_echo_n "checking for wchar_t... " >&6; }
13740 if ${gt_cv_c_wchar_t+:} false; then :
13741 $as_echo_n "(cached) " >&6
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745 #include <stddef.h>
13746 wchar_t foo = (wchar_t)'\0';
13755 if ac_fn_c_try_compile "$LINENO"; then :
13756 gt_cv_c_wchar_t=yes
13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13763 $as_echo "$gt_cv_c_wchar_t" >&6; }
13764 if test $gt_cv_c_wchar_t = yes; then
13766 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13774 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
13777 if test "x$ac_cv_type_max_align_t" = xyes; then :
13780 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
13783 if test $gt_cv_c_wchar_t = no; then
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13788 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13789 if ${gl_cv_decl_null_works+:} false; then :
13790 $as_echo_n "(cached) " >&6
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794 #include <stddef.h>
13795 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13805 if ac_fn_c_try_compile "$LINENO"; then :
13806 gl_cv_decl_null_works=yes
13808 gl_cv_decl_null_works=no
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13813 $as_echo "$gl_cv_decl_null_works" >&6; }
13814 if test $gl_cv_decl_null_works = no; then
13819 if test -n "$STDDEF_H"; then
13820 GL_GENERATE_STDDEF_H_TRUE=
13821 GL_GENERATE_STDDEF_H_FALSE='#'
13823 GL_GENERATE_STDDEF_H_TRUE='#'
13824 GL_GENERATE_STDDEF_H_FALSE=
13827 if test -n "$STDDEF_H"; then
13836 if test $gl_cv_have_include_next = yes; then
13837 gl_cv_next_stddef_h='<'stddef.h'>'
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13840 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13841 if ${gl_cv_next_stddef_h+:} false; then :
13842 $as_echo_n "(cached) " >&6
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849 #include <stddef.h>
13852 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13853 *) gl_absname_cpp="$ac_cpp" ;;
13858 gl_dirsep_regex='[/\\]'
13861 gl_dirsep_regex='\/'
13864 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13865 gl_header_literal_regex=`echo 'stddef.h' \
13866 | sed -e "$gl_make_literal_regex_sed"`
13867 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13868 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13874 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13875 sed -n "$gl_absolute_header_sed"`
13877 gl_header=$gl_cv_absolute_stddef_h
13878 gl_cv_next_stddef_h='"'$gl_header'"'
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13883 $as_echo "$gl_cv_next_stddef_h" >&6; }
13885 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13887 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13889 gl_next_as_first_directive='<'stddef.h'>'
13891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13892 gl_next_as_first_directive=$gl_cv_next_stddef_h
13894 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13907 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
13908 if ${gl_cv_func_malloc_posix+:} false; then :
13909 $as_echo_n "(cached) " >&6
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13918 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13926 if ac_fn_c_try_compile "$LINENO"; then :
13927 gl_cv_func_malloc_posix=yes
13929 gl_cv_func_malloc_posix=no
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
13935 $as_echo "$gl_cv_func_malloc_posix" >&6; }
13939 for ac_header in stdlib.h
13941 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13942 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13943 cat >>confdefs.h <<_ACEOF
13944 #define HAVE_STDLIB_H 1
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13952 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13953 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13954 $as_echo_n "(cached) " >&6
13956 if test "$cross_compiling" = yes; then :
13958 # Guess yes on platforms where we know the result.
13959 *-gnu* | freebsd* | netbsd* | openbsd* \
13960 | hpux* | solaris* | cygwin* | mingw*)
13961 ac_cv_func_malloc_0_nonnull=yes ;;
13962 # If we don't know, assume the worst.
13963 *) ac_cv_func_malloc_0_nonnull=no ;;
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13970 # include <stdlib.h>
13978 return ! malloc (0);
13984 if ac_fn_c_try_run "$LINENO"; then :
13985 ac_cv_func_malloc_0_nonnull=yes
13987 ac_cv_func_malloc_0_nonnull=no
13989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13990 conftest.$ac_objext conftest.beam conftest.$ac_ext
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13996 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13997 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13998 gl_cv_func_malloc_0_nonnull=1
14000 gl_cv_func_malloc_0_nonnull=0
14004 cat >>confdefs.h <<_ACEOF
14005 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
14017 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14018 if ${gt_cv_locale_ja+:} false; then :
14019 $as_echo_n "(cached) " >&6
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14025 #include <locale.h>
14027 #if HAVE_LANGINFO_CODESET
14028 # include <langinfo.h>
14030 #include <stdlib.h>
14031 #include <string.h>
14037 /* Check whether the given locale name is recognized by the system. */
14038 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14039 /* On native Windows, setlocale(category, "") looks at the system settings,
14040 not at the environment variables. Also, when an encoding suffix such
14041 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14042 category of the locale to "C". */
14043 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14044 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14047 if (setlocale (LC_ALL, "") == NULL) return 1;
14049 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14050 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14051 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14052 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14053 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14054 some unit tests fail.
14055 On MirBSD 10, when an unsupported locale is specified, setlocale()
14056 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14057 #if HAVE_LANGINFO_CODESET
14059 const char *cs = nl_langinfo (CODESET);
14060 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14061 || strcmp (cs, "UTF-8") == 0)
14066 /* On Cygwin, avoid locale names without encoding suffix, because the
14067 locale_charset() function relies on the encoding suffix. Note that
14068 LC_ALL is set on the command line. */
14069 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14071 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
14072 on Cygwin 1.5.x. */
14073 if (MB_CUR_MAX == 1)
14075 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14076 This excludes the UTF-8 encoding (except on MirBSD). */
14077 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14078 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14079 for (p = buf; *p != '\0'; p++)
14080 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14087 (eval $ac_link) 2>&5
14089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14090 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14092 # Handle native Windows specially, because there setlocale() interprets
14093 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14094 # "fr" or "fra" as "French" or "French_France.1252",
14095 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14096 # "ja" as "Japanese" or "Japanese_Japan.932",
14099 # Note that on native Windows, the Japanese locale is
14100 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
14101 # cannot use it here.
14102 gt_cv_locale_ja=none
14105 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14106 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14107 # configure script would override the LC_ALL setting. Likewise for
14108 # LC_CTYPE, which is also set at the beginning of the configure script.
14109 # Test for the AIX locale name.
14110 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14111 gt_cv_locale_ja=ja_JP
14113 # Test for the locale name with explicit encoding suffix.
14114 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14115 gt_cv_locale_ja=ja_JP.EUC-JP
14117 # Test for the HP-UX, OSF/1, NetBSD locale name.
14118 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14119 gt_cv_locale_ja=ja_JP.eucJP
14121 # Test for the IRIX, FreeBSD locale name.
14122 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14123 gt_cv_locale_ja=ja_JP.EUC
14125 # Test for the Solaris 7 locale name.
14126 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14129 # Special test for NetBSD 1.6.
14130 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
14131 gt_cv_locale_ja=ja_JP.eucJP
14134 gt_cv_locale_ja=none
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14148 $as_echo "$gt_cv_locale_ja" >&6; }
14149 LOCALE_JA=$gt_cv_locale_ja
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
14156 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14157 if ${gt_cv_locale_zh_CN+:} false; then :
14158 $as_echo_n "(cached) " >&6
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14164 #include <locale.h>
14165 #include <stdlib.h>
14167 #if HAVE_LANGINFO_CODESET
14168 # include <langinfo.h>
14170 #include <stdlib.h>
14171 #include <string.h>
14177 /* Check whether the given locale name is recognized by the system. */
14178 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14179 /* On native Windows, setlocale(category, "") looks at the system settings,
14180 not at the environment variables. Also, when an encoding suffix such
14181 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14182 category of the locale to "C". */
14183 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14184 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14187 if (setlocale (LC_ALL, "") == NULL) return 1;
14189 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14190 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14191 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14192 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14193 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14194 some unit tests fail.
14195 On MirBSD 10, when an unsupported locale is specified, setlocale()
14196 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14197 #if HAVE_LANGINFO_CODESET
14199 const char *cs = nl_langinfo (CODESET);
14200 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14201 || strcmp (cs, "UTF-8") == 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 a month name, no byte in the range 0x80..0x9F occurs.
14212 This excludes the UTF-8 encoding (except on MirBSD). */
14213 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14214 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14215 for (p = buf; *p != '\0'; p++)
14216 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14218 /* Check whether a typical GB18030 multibyte sequence is recognized as a
14219 single wide character. This excludes the GB2312 and GBK encodings. */
14220 if (mblen ("\203\062\332\066", 5) != 4)
14226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14227 (eval $ac_link) 2>&5
14229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14230 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14232 # Handle native Windows specially, because there setlocale() interprets
14233 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14234 # "fr" or "fra" as "French" or "French_France.1252",
14235 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14236 # "ja" as "Japanese" or "Japanese_Japan.932",
14239 # Test for the hypothetical native Windows locale name.
14240 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14241 gt_cv_locale_zh_CN=Chinese_China.54936
14244 gt_cv_locale_zh_CN=none
14248 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
14249 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
14250 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
14251 gt_cv_locale_zh_CN=none
14254 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14255 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14256 # configure script would override the LC_ALL setting. Likewise for
14257 # LC_CTYPE, which is also set at the beginning of the configure script.
14258 # Test for the locale name without encoding suffix.
14259 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14260 gt_cv_locale_zh_CN=zh_CN
14262 # Test for the locale name with explicit encoding suffix.
14263 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14264 gt_cv_locale_zh_CN=zh_CN.GB18030
14267 gt_cv_locale_zh_CN=none
14273 # If there was a link error, due to mblen(), the system is so old that
14274 # it certainly doesn't have a chinese locale.
14275 gt_cv_locale_zh_CN=none
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
14281 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14282 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14288 $as_echo_n "checking for a french Unicode locale... " >&6; }
14289 if ${gt_cv_locale_fr_utf8+:} false; then :
14290 $as_echo_n "(cached) " >&6
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14296 #include <locale.h>
14298 #if HAVE_LANGINFO_CODESET
14299 # include <langinfo.h>
14301 #include <stdlib.h>
14302 #include <string.h>
14306 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14307 imitates locale dependent behaviour by looking at the environment
14308 variables, and all locales use the UTF-8 encoding. */
14309 #if !(defined __BEOS__ || defined __HAIKU__)
14310 /* Check whether the given locale name is recognized by the system. */
14311 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14312 /* On native Windows, setlocale(category, "") looks at the system settings,
14313 not at the environment variables. Also, when an encoding suffix such
14314 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14315 category of the locale to "C". */
14316 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14317 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14320 if (setlocale (LC_ALL, "") == NULL) return 1;
14322 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14323 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14324 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14325 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14326 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14327 some unit tests fail. */
14328 # if HAVE_LANGINFO_CODESET
14330 const char *cs = nl_langinfo (CODESET);
14331 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14336 /* On Cygwin, avoid locale names without encoding suffix, because the
14337 locale_charset() function relies on the encoding suffix. Note that
14338 LC_ALL is set on the command line. */
14339 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14341 /* Check whether in the abbreviation of the second month, the second
14342 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14343 two bytes long, with UTF-8 encoding. */
14344 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14345 if (strftime (buf, sizeof (buf), "%b", &t) < 4
14346 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14349 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14350 /* Check whether the decimal separator is a comma.
14351 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14352 are nl_langinfo(RADIXCHAR) are both ".". */
14353 if (localeconv () ->decimal_point[0] != ',') return 1;
14359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14360 (eval $ac_link) 2>&5
14362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14363 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14365 # Handle native Windows specially, because there setlocale() interprets
14366 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14367 # "fr" or "fra" as "French" or "French_France.1252",
14368 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14369 # "ja" as "Japanese" or "Japanese_Japan.932",
14372 # Test for the hypothetical native Windows locale name.
14373 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14374 gt_cv_locale_fr_utf8=French_France.65001
14377 gt_cv_locale_fr_utf8=none
14381 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14382 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14383 # configure script would override the LC_ALL setting. Likewise for
14384 # LC_CTYPE, which is also set at the beginning of the configure script.
14385 # Test for the usual locale name.
14386 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14387 gt_cv_locale_fr_utf8=fr_FR
14389 # Test for the locale name with explicit encoding suffix.
14390 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14391 gt_cv_locale_fr_utf8=fr_FR.UTF-8
14393 # Test for the Solaris 7 locale name.
14394 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14395 gt_cv_locale_fr_utf8=fr.UTF-8
14398 gt_cv_locale_fr_utf8=none
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
14409 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
14410 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
14420 GNULIB_RAWMEMCHR=0;
14423 GNULIB_STRCHRNUL=0;
14431 GNULIB_STRCASESTR=0;
14438 GNULIB_MBSCASECMP=0;
14439 GNULIB_MBSNCASECMP=0;
14440 GNULIB_MBSPCASECMP=0;
14441 GNULIB_MBSCASESTR=0;
14448 GNULIB_STRERROR_R=0;
14449 GNULIB_STRSIGNAL=0;
14450 GNULIB_STRVERSCMP=0;
14455 HAVE_DECL_MEMMEM=1;
14457 HAVE_DECL_MEMRCHR=1;
14462 HAVE_DECL_STRDUP=1;
14463 HAVE_DECL_STRNDUP=1;
14464 HAVE_DECL_STRNLEN=1;
14468 HAVE_DECL_STRTOK_R=1;
14469 HAVE_DECL_STRERROR_R=1;
14470 HAVE_DECL_STRSIGNAL=1;
14477 REPLACE_STRCASESTR=0;
14478 REPLACE_STRCHRNUL=0;
14479 REPLACE_STRERROR=0;
14480 REPLACE_STRERROR_R=0;
14484 REPLACE_STRSIGNAL=0;
14485 REPLACE_STRTOK_R=0;
14486 UNDEFINE_STRTOK_R=0;
14496 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14497 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14498 # irrelevant for anonymous mappings.
14499 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14500 if test "x$ac_cv_func_mmap" = xyes; then :
14507 # Try to allow MAP_ANONYMOUS.
14508 gl_have_mmap_anonymous=no
14509 if test $gl_have_mmap = yes; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14511 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14515 #include <sys/mman.h>
14516 #ifdef MAP_ANONYMOUS
14517 I cannot identify this map
14521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14522 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
14523 gl_have_mmap_anonymous=yes
14527 if test $gl_have_mmap_anonymous != yes; then
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14531 #include <sys/mman.h>
14533 I cannot identify this map
14537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14538 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
14540 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14542 gl_have_mmap_anonymous=yes
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14548 $as_echo "$gl_have_mmap_anonymous" >&6; }
14549 if test $gl_have_mmap_anonymous = yes; then
14551 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14561 if test $HAVE_MEMCHR = 1; then
14562 # Detect platform-specific bugs in some versions of glibc:
14563 # memchr should not dereference anything with length 0
14564 # http://bugzilla.redhat.com/499689
14565 # memchr should not dereference overestimated length after a match
14566 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14567 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
14568 # Assume that memchr works on platforms that lack mprotect.
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14570 $as_echo_n "checking whether memchr works... " >&6; }
14571 if ${gl_cv_func_memchr_works+:} false; then :
14572 $as_echo_n "(cached) " >&6
14574 if test "$cross_compiling" = yes; then :
14575 gl_cv_func_memchr_works="guessing no"
14577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14578 /* end confdefs.h. */
14580 #include <string.h>
14581 #if HAVE_SYS_MMAN_H
14582 # include <fcntl.h>
14583 # include <unistd.h>
14584 # include <sys/types.h>
14585 # include <sys/mman.h>
14587 # define MAP_FILE 0
14596 char *fence = NULL;
14597 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14598 # if HAVE_MAP_ANONYMOUS
14599 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14601 # else /* !HAVE_MAP_ANONYMOUS */
14602 const int flags = MAP_FILE | MAP_PRIVATE;
14603 int fd = open ("/dev/zero", O_RDONLY, 0666);
14607 int pagesize = getpagesize ();
14609 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14611 if (two_pages != (char *)(-1)
14612 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14613 fence = two_pages + pagesize;
14618 if (memchr (fence, 0, 0))
14620 strcpy (fence - 9, "12345678");
14621 if (memchr (fence - 9, 0, 79) != fence - 1)
14623 if (memchr (fence - 1, 0, 3) != fence - 1)
14632 if ac_fn_c_try_run "$LINENO"; then :
14633 gl_cv_func_memchr_works=yes
14635 gl_cv_func_memchr_works=no
14637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14638 conftest.$ac_objext conftest.beam conftest.$ac_ext
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14643 $as_echo "$gl_cv_func_memchr_works" >&6; }
14644 if test "$gl_cv_func_memchr_works" != yes; then
14649 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
14650 if test "x$ac_cv_have_decl_memrchr" = xyes; then :
14656 cat >>confdefs.h <<_ACEOF
14657 #define HAVE_DECL_MEMRCHR $ac_have_decl
14672 GNULIB_NANOSLEEP=0;
14677 HAVE_DECL_LOCALTIME_R=1;
14681 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14682 REPLACE_MKTIME=GNULIB_PORTCHECK;
14683 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14684 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14686 : ${GNULIB_GETTIMEOFDAY=0};
14688 REPLACE_LOCALTIME=0;
14690 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
14691 if test "x$ac_cv_have_decl_alarm" = xyes; then :
14697 cat >>confdefs.h <<_ACEOF
14698 #define HAVE_DECL_ALARM $ac_have_decl
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
14706 $as_echo_n "checking for promoted mode_t type... " >&6; }
14707 if ${gl_cv_promoted_mode_t+:} false; then :
14708 $as_echo_n "(cached) " >&6
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713 #include <sys/types.h>
14717 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
14722 if ac_fn_c_try_compile "$LINENO"; then :
14723 gl_cv_promoted_mode_t='int'
14725 gl_cv_promoted_mode_t='mode_t'
14727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
14731 $as_echo "$gl_cv_promoted_mode_t" >&6; }
14733 cat >>confdefs.h <<_ACEOF
14734 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14739 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14740 if ${ac_cv_header_stdbool_h+:} false; then :
14741 $as_echo_n "(cached) " >&6
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14746 #include <stdbool.h>
14748 "error: bool is not defined"
14751 "error: false is not defined"
14754 "error: false is not 0"
14757 "error: true is not defined"
14760 "error: true is not 1"
14762 #ifndef __bool_true_false_are_defined
14763 "error: __bool_true_false_are_defined is not defined"
14766 struct s { _Bool s: 1; _Bool t; } s;
14768 char a[true == 1 ? 1 : -1];
14769 char b[false == 0 ? 1 : -1];
14770 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14771 char d[(bool) 0.5 == true ? 1 : -1];
14772 /* See body of main program for 'e'. */
14773 char f[(_Bool) 0.0 == false ? 1 : -1];
14775 char h[sizeof (_Bool)];
14776 char i[sizeof s.t];
14777 enum { j = false, k = true, l = false * true, m = true * 256 };
14778 /* The following fails for
14779 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14781 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14782 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14783 /* Catch a bug in an HP-UX C compiler. See
14784 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14785 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14797 /* Refer to every declared value, to avoid compiler optimizations. */
14798 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14799 + !m + !n + !o + !p + !q + !pq);
14805 if ac_fn_c_try_compile "$LINENO"; then :
14806 ac_cv_header_stdbool_h=yes
14808 ac_cv_header_stdbool_h=no
14810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14813 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14814 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14815 if test "x$ac_cv_type__Bool" = xyes; then :
14817 cat >>confdefs.h <<_ACEOF
14818 #define HAVE__BOOL 1
14828 # Define two additional variables used in the Makefile substitution.
14830 if test "$ac_cv_header_stdbool_h" = yes; then
14833 STDBOOL_H='stdbool.h'
14836 if test -n "$STDBOOL_H"; then
14837 GL_GENERATE_STDBOOL_H_TRUE=
14838 GL_GENERATE_STDBOOL_H_FALSE='#'
14840 GL_GENERATE_STDBOOL_H_TRUE='#'
14841 GL_GENERATE_STDBOOL_H_FALSE=
14845 if test "$ac_cv_type__Bool" = yes; then
14853 # parse-datetime.y works with bison only.
14854 : ${YACC='bison -y'}
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compound literals" >&5
14858 $as_echo_n "checking for compound literals... " >&6; }
14859 if ${gl_cv_compound_literals+:} false; then :
14860 $as_echo_n "(cached) " >&6
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14864 struct s { int i, j; };
14868 struct s t = (struct s) { 3, 4 };
14869 if (t.i != 0) return 0;
14874 if ac_fn_c_try_compile "$LINENO"; then :
14875 gl_cv_compound_literals=yes
14877 gl_cv_compound_literals=no
14879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compound_literals" >&5
14882 $as_echo "$gl_cv_compound_literals" >&6; }
14883 if test $gl_cv_compound_literals = yes; then
14885 $as_echo "#define HAVE_COMPOUND_LITERALS 1" >>confdefs.h
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14890 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14891 if ${ac_cv_struct_tm+:} false; then :
14892 $as_echo_n "(cached) " >&6
14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14896 #include <sys/types.h>
14903 int *p = &tm.tm_sec;
14909 if ac_fn_c_try_compile "$LINENO"; then :
14910 ac_cv_struct_tm=time.h
14912 ac_cv_struct_tm=sys/time.h
14914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14917 $as_echo "$ac_cv_struct_tm" >&6; }
14918 if test $ac_cv_struct_tm = sys/time.h; then
14920 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14925 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14927 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14929 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14937 GNULIB_PTHREAD_SIGMASK=0;
14939 GNULIB_SIGNAL_H_SIGPIPE=0;
14940 GNULIB_SIGPROCMASK=0;
14941 GNULIB_SIGACTION=0;
14942 HAVE_POSIX_SIGNALBLOCKING=1;
14943 HAVE_PTHREAD_SIGMASK=1;
14948 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
14950 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
14952 HAVE_SIGHANDLER_T=1;
14953 REPLACE_PTHREAD_SIGMASK=0;
14967 # Check whether --with-selinux was given.
14968 if test "${with_selinux+set}" = set; then :
14969 withval=$with_selinux;
14976 if test "$with_selinux" != no; then
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setfilecon" >&5
14979 $as_echo_n "checking for library containing setfilecon... " >&6; }
14980 if ${ac_cv_search_setfilecon+:} false; then :
14981 $as_echo_n "(cached) " >&6
14983 ac_func_search_save_LIBS=$LIBS
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14987 /* Override any GCC internal prototype to avoid an error.
14988 Use char because int might match the return type of a GCC
14989 builtin and then its argument prototype would still apply. */
14993 char setfilecon ();
14997 return setfilecon ();
15002 for ac_lib in '' selinux; do
15003 if test -z "$ac_lib"; then
15004 ac_res="none required"
15007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15009 if ac_fn_c_try_link "$LINENO"; then :
15010 ac_cv_search_setfilecon=$ac_res
15012 rm -f core conftest.err conftest.$ac_objext \
15014 if ${ac_cv_search_setfilecon+:} false; then :
15018 if ${ac_cv_search_setfilecon+:} false; then :
15021 ac_cv_search_setfilecon=no
15023 rm conftest.$ac_ext
15024 LIBS=$ac_func_search_save_LIBS
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setfilecon" >&5
15027 $as_echo "$ac_cv_search_setfilecon" >&6; }
15028 ac_res=$ac_cv_search_setfilecon
15029 if test "$ac_res" != no; then :
15030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15031 test "$ac_cv_search_setfilecon" = "none required" ||
15032 LIB_SELINUX=$ac_cv_search_setfilecon
15039 # Warn if SELinux is found but libselinux is absent;
15040 if test "$ac_cv_search_setfilecon" = no; then
15041 if test "$host" = "$build" && test -d /selinux; then
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This system supports SELinux but libselinux is missing." >&5
15043 $as_echo "$as_me: WARNING: This system supports SELinux but libselinux is missing." >&2;}
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU tar will be compiled without SELinux support." >&5
15045 $as_echo "$as_me: WARNING: GNU tar will be compiled without SELinux support." >&2;}
15052 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
15053 if test "x$ac_cv_have_decl_setenv" = xyes; then :
15059 cat >>confdefs.h <<_ACEOF
15060 #define HAVE_DECL_SETENV $ac_have_decl
15068 if test $ac_cv_have_decl_setenv = no; then
15076 for ac_header in search.h
15078 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
15079 if test "x$ac_cv_header_search_h" = xyes; then :
15080 cat >>confdefs.h <<_ACEOF
15081 #define HAVE_SEARCH_H 1
15088 for ac_func in tsearch
15090 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
15091 if test "x$ac_cv_func_tsearch" = xyes; then :
15092 cat >>confdefs.h <<_ACEOF
15093 #define HAVE_TSEARCH 1
15102 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
15103 #include <signal.h>
15104 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
15105 #include <sys/types.h>
15108 if test "x$ac_cv_type_sigset_t" = xyes; then :
15110 cat >>confdefs.h <<_ACEOF
15111 #define HAVE_SIGSET_T 1
15114 gl_cv_type_sigset_t=yes
15116 gl_cv_type_sigset_t=no
15119 if test $gl_cv_type_sigset_t != yes; then
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
15134 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
15135 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
15136 $as_echo_n "(cached) " >&6
15139 if test "$cross_compiling" = yes; then :
15142 # Guess yes on glibc systems.
15143 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
15144 # Guess yes on FreeBSD >= 5.
15145 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
15146 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
15147 # Guess yes on Mac OS X >= 10.3.
15148 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
15149 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
15150 # Guess yes on OpenBSD >= 3.9.
15151 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
15152 gl_cv_func_snprintf_retval_c99="guessing no";;
15153 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
15154 # Guess yes on Solaris >= 2.10.
15155 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
15156 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
15157 # Guess yes on AIX >= 4.
15158 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
15159 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
15160 # Guess yes on NetBSD >= 3.
15161 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
15162 gl_cv_func_snprintf_retval_c99="guessing no";;
15163 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
15164 # Guess yes on BeOS.
15165 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
15166 # If we don't know, assume the worst.
15167 *) gl_cv_func_snprintf_retval_c99="guessing no";;
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15175 #include <string.h>
15177 # define my_snprintf snprintf
15179 # include <stdarg.h>
15180 static int my_snprintf (char *buf, int size, const char *format, ...)
15184 va_start (args, format);
15185 ret = vsnprintf (buf, size, format, args);
15190 static char buf[100];
15193 strcpy (buf, "ABCDEF");
15194 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
15196 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
15198 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
15203 if ac_fn_c_try_run "$LINENO"; then :
15204 gl_cv_func_snprintf_retval_c99=yes
15206 gl_cv_func_snprintf_retval_c99=no
15208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15209 conftest.$ac_objext conftest.beam conftest.$ac_ext
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
15215 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
15217 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
15218 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
15224 cat >>confdefs.h <<_ACEOF
15225 #define HAVE_DECL_SNPRINTF $ac_have_decl
15232 HAVE_DECL_STRNCASECMP=1;
15236 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
15237 if test "x$ac_cv_have_decl_strdup" = xyes; then :
15243 cat >>confdefs.h <<_ACEOF
15244 #define HAVE_DECL_STRDUP $ac_have_decl
15248 REPLACE_STRERROR_0=0
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15250 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
15251 if ${gl_cv_func_strerror_0_works+:} false; then :
15252 $as_echo_n "(cached) " >&6
15254 if test "$cross_compiling" = yes; then :
15256 # Guess yes on glibc systems.
15257 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
15258 # If we don't know, assume the worst.
15259 *) gl_cv_func_strerror_0_works="guessing no" ;;
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15265 #include <string.h>
15274 str = strerror (0);
15275 if (!*str) result |= 1;
15276 if (errno) result |= 2;
15277 if (strstr (str, "nknown") || strstr (str, "ndefined"))
15284 if ac_fn_c_try_run "$LINENO"; then :
15285 gl_cv_func_strerror_0_works=yes
15287 gl_cv_func_strerror_0_works=no
15289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15290 conftest.$ac_objext conftest.beam conftest.$ac_ext
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15296 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
15297 case "$gl_cv_func_strerror_0_works" in
15300 REPLACE_STRERROR_0=1
15302 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
15320 if test $gl_cv_have_include_next = yes; then
15321 gl_cv_next_string_h='<'string.h'>'
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15324 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15325 if ${gl_cv_next_string_h+:} false; then :
15326 $as_echo_n "(cached) " >&6
15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15333 #include <string.h>
15336 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15337 *) gl_absname_cpp="$ac_cpp" ;;
15342 gl_dirsep_regex='[/\\]'
15345 gl_dirsep_regex='\/'
15348 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15349 gl_header_literal_regex=`echo 'string.h' \
15350 | sed -e "$gl_make_literal_regex_sed"`
15351 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15352 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15358 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15359 sed -n "$gl_absolute_header_sed"`
15361 gl_header=$gl_cv_absolute_string_h
15362 gl_cv_next_string_h='"'$gl_header'"'
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15367 $as_echo "$gl_cv_next_string_h" >&6; }
15369 NEXT_STRING_H=$gl_cv_next_string_h
15371 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15372 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15373 gl_next_as_first_directive='<'string.h'>'
15375 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15376 gl_next_as_first_directive=$gl_cv_next_string_h
15378 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
15385 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
15386 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15388 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15389 if eval \${$as_gl_Symbol+:} false; then :
15390 $as_echo_n "(cached) " >&6
15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393 /* end confdefs.h. */
15394 #include <string.h>
15405 if ac_fn_c_try_compile "$LINENO"; then :
15406 eval "$as_gl_Symbol=yes"
15408 eval "$as_gl_Symbol=no"
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 eval ac_res=\$$as_gl_Symbol
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15414 $as_echo "$ac_res" >&6; }
15415 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15416 cat >>confdefs.h <<_ACEOF
15417 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15420 eval ac_cv_have_decl_$gl_func=yes
15439 if test $gl_cv_have_include_next = yes; then
15440 gl_cv_next_strings_h='<'strings.h'>'
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
15443 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
15444 if ${gl_cv_next_strings_h+:} false; then :
15445 $as_echo_n "(cached) " >&6
15448 if test $ac_cv_header_strings_h = yes; then
15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 #include <strings.h>
15458 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15459 *) gl_absname_cpp="$ac_cpp" ;;
15464 gl_dirsep_regex='[/\\]'
15467 gl_dirsep_regex='\/'
15470 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15471 gl_header_literal_regex=`echo 'strings.h' \
15472 | sed -e "$gl_make_literal_regex_sed"`
15473 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15474 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15480 gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15481 sed -n "$gl_absolute_header_sed"`
15483 gl_header=$gl_cv_absolute_strings_h
15484 gl_cv_next_strings_h='"'$gl_header'"'
15486 gl_cv_next_strings_h='<'strings.h'>'
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
15492 $as_echo "$gl_cv_next_strings_h" >&6; }
15494 NEXT_STRINGS_H=$gl_cv_next_strings_h
15496 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15497 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15498 gl_next_as_first_directive='<'strings.h'>'
15500 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15501 gl_next_as_first_directive=$gl_cv_next_strings_h
15503 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
15508 if test $ac_cv_header_strings_h = yes; then
15516 for gl_func in ffs strcasecmp strncasecmp; do
15517 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15519 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15520 if eval \${$as_gl_Symbol+:} false; then :
15521 $as_echo_n "(cached) " >&6
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524 /* end confdefs.h. */
15526 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
15528 #include <sys/types.h>
15529 #include <strings.h>
15540 if ac_fn_c_try_compile "$LINENO"; then :
15541 eval "$as_gl_Symbol=yes"
15543 eval "$as_gl_Symbol=no"
15545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 eval ac_res=\$$as_gl_Symbol
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15549 $as_echo "$ac_res" >&6; }
15550 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15551 cat >>confdefs.h <<_ACEOF
15552 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15555 eval ac_cv_have_decl_$gl_func=yes
15560 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
15561 if test "x$ac_cv_have_decl_strndup" = xyes; then :
15567 cat >>confdefs.h <<_ACEOF
15568 #define HAVE_DECL_STRNDUP $ac_have_decl
15573 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15574 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
15580 cat >>confdefs.h <<_ACEOF
15581 #define HAVE_DECL_STRNLEN $ac_have_decl
15586 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
15587 if test "x$ac_cv_have_decl_strtoimax" = xyes; then :
15593 cat >>confdefs.h <<_ACEOF
15594 #define HAVE_DECL_STRTOIMAX $ac_have_decl
15599 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
15600 if test "x$ac_cv_have_decl_strtoumax" = xyes; then :
15606 cat >>confdefs.h <<_ACEOF
15607 #define HAVE_DECL_STRTOUMAX $ac_have_decl
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15617 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15618 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
15619 $as_echo_n "(cached) " >&6
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15628 static struct timespec x; x.tv_sec = x.tv_nsec;
15633 if ac_fn_c_try_compile "$LINENO"; then :
15634 gl_cv_sys_struct_timespec_in_time_h=yes
15636 gl_cv_sys_struct_timespec_in_time_h=no
15638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15641 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15643 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15644 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15645 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15646 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
15647 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15648 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15651 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15652 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
15653 $as_echo_n "(cached) " >&6
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15657 #include <sys/time.h>
15662 static struct timespec x; x.tv_sec = x.tv_nsec;
15667 if ac_fn_c_try_compile "$LINENO"; then :
15668 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15670 gl_cv_sys_struct_timespec_in_sys_time_h=no
15672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15675 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15676 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15677 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15680 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15681 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
15682 $as_echo_n "(cached) " >&6
15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h. */
15686 #include <pthread.h>
15691 static struct timespec x; x.tv_sec = x.tv_nsec;
15696 if ac_fn_c_try_compile "$LINENO"; then :
15697 gl_cv_sys_struct_timespec_in_pthread_h=yes
15699 gl_cv_sys_struct_timespec_in_pthread_h=no
15701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15704 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15705 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15706 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
15709 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
15710 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
15711 $as_echo_n "(cached) " >&6
15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15715 #include <unistd.h>
15720 static struct timespec x; x.tv_sec = x.tv_nsec;
15725 if ac_fn_c_try_compile "$LINENO"; then :
15726 gl_cv_sys_struct_timespec_in_unistd_h=yes
15728 gl_cv_sys_struct_timespec_in_unistd_h=no
15730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
15733 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
15734 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
15735 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
15756 if test $gl_cv_have_include_next = yes; then
15757 gl_cv_next_time_h='<'time.h'>'
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15760 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15761 if ${gl_cv_next_time_h+:} false; then :
15762 $as_echo_n "(cached) " >&6
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15772 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15773 *) gl_absname_cpp="$ac_cpp" ;;
15778 gl_dirsep_regex='[/\\]'
15781 gl_dirsep_regex='\/'
15784 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15785 gl_header_literal_regex=`echo 'time.h' \
15786 | sed -e "$gl_make_literal_regex_sed"`
15787 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15788 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15794 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15795 sed -n "$gl_absolute_header_sed"`
15797 gl_header=$gl_cv_absolute_time_h
15798 gl_cv_next_time_h='"'$gl_header'"'
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15803 $as_echo "$gl_cv_next_time_h" >&6; }
15805 NEXT_TIME_H=$gl_cv_next_time_h
15807 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15808 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15809 gl_next_as_first_directive='<'time.h'>'
15811 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15812 gl_next_as_first_directive=$gl_cv_next_time_h
15814 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15833 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
15838 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
15843 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
15850 if test "$HAVE_LIBUNISTRING" = yes; then
15851 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
15852 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
15853 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
15858 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
15859 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
15865 cat >>confdefs.h <<_ACEOF
15866 #define HAVE_DECL_UNSETENV $ac_have_decl
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
15871 $as_echo_n "checking whether the utimes function works... " >&6; }
15872 if ${gl_cv_func_working_utimes+:} false; then :
15873 $as_echo_n "(cached) " >&6
15876 if test "$cross_compiling" = yes; then :
15877 gl_cv_func_working_utimes=no
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15882 #include <sys/types.h>
15883 #include <sys/stat.h>
15885 #include <sys/time.h>
15887 #include <unistd.h>
15888 #include <stdlib.h>
15893 inorder (time_t a, time_t b, time_t c)
15895 return a <= b && b <= c;
15902 char const *file = "conftest.utimes";
15903 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
15905 /* Test whether utimes() essentially works. */
15908 FILE *f = fopen (file, "w");
15911 else if (fclose (f) != 0)
15913 else if (utimes (file, timeval) != 0)
15915 else if (lstat (file, &sbuf) != 0)
15917 else if (!(sbuf.st_atime == timeval[0].tv_sec
15918 && sbuf.st_mtime == timeval[1].tv_sec))
15920 if (unlink (file) != 0)
15924 /* Test whether utimes() with a NULL argument sets the file's timestamp
15925 to the current time. Use 'fstat' as well as 'time' to
15926 determine the "current" time, to accommodate NFS file systems
15927 if there is a time skew between the host and the NFS server. */
15929 int fd = open (file, O_WRONLY|O_CREAT, 0644);
15935 struct stat st0, st1, st2;
15936 if (time (&t0) == (time_t) -1)
15938 else if (fstat (fd, &st0) != 0)
15940 else if (utimes (file, timeval) != 0)
15942 else if (utimes (file, NULL) != 0)
15944 else if (fstat (fd, &st1) != 0)
15946 else if (write (fd, "\n", 1) != 1)
15948 else if (fstat (fd, &st2) != 0)
15950 else if (time (&t2) == (time_t) -1)
15954 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
15955 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
15956 if (! (st1.st_atime == st1.st_mtime))
15958 if (! (m_ok_POSIX || m_ok_NFS))
15961 if (close (fd) != 0)
15964 if (unlink (file) != 0)
15968 /* Test whether utimes() with a NULL argument works on read-only files. */
15970 int fd = open (file, O_WRONLY|O_CREAT, 0444);
15973 else if (close (fd) != 0)
15975 else if (utimes (file, NULL) != 0)
15977 if (unlink (file) != 0)
15985 if ac_fn_c_try_run "$LINENO"; then :
15986 gl_cv_func_working_utimes=yes
15988 gl_cv_func_working_utimes=no
15990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15991 conftest.$ac_objext conftest.beam conftest.$ac_ext
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
15996 $as_echo "$gl_cv_func_working_utimes" >&6; }
15998 if test $gl_cv_func_working_utimes = yes; then
16000 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
16009 $as_echo_n "checking for struct utimbuf... " >&6; }
16010 if ${gl_cv_sys_struct_utimbuf+:} false; then :
16011 $as_echo_n "(cached) " >&6
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 #if HAVE_SYS_TIME_H
16016 #include <sys/time.h>
16019 #ifdef HAVE_UTIME_H
16026 static struct utimbuf x; x.actime = x.modtime;
16031 if ac_fn_c_try_compile "$LINENO"; then :
16032 gl_cv_sys_struct_utimbuf=yes
16034 gl_cv_sys_struct_utimbuf=no
16036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
16039 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
16041 if test $gl_cv_sys_struct_utimbuf = yes; then
16043 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
16059 if test $ac_cv_header_features_h = yes; then
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16068 $as_echo_n "checking for inttypes.h... " >&6; }
16069 if ${gl_cv_header_inttypes_h+:} false; then :
16070 $as_echo_n "(cached) " >&6
16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16075 #include <sys/types.h>
16076 #include <inttypes.h>
16081 uintmax_t i = (uintmax_t) -1; return !i;
16086 if ac_fn_c_try_compile "$LINENO"; then :
16087 gl_cv_header_inttypes_h=yes
16089 gl_cv_header_inttypes_h=no
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16094 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16095 if test $gl_cv_header_inttypes_h = yes; then
16097 cat >>confdefs.h <<_ACEOF
16098 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
16105 $as_echo_n "checking for stdint.h... " >&6; }
16106 if ${gl_cv_header_stdint_h+:} false; then :
16107 $as_echo_n "(cached) " >&6
16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16111 #include <sys/types.h>
16112 #include <stdint.h>
16116 uintmax_t i = (uintmax_t) -1; return !i;
16121 if ac_fn_c_try_compile "$LINENO"; then :
16122 gl_cv_header_stdint_h=yes
16124 gl_cv_header_stdint_h=no
16126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
16129 $as_echo "$gl_cv_header_stdint_h" >&6; }
16130 if test $gl_cv_header_stdint_h = yes; then
16132 cat >>confdefs.h <<_ACEOF
16133 #define HAVE_STDINT_H_WITH_UINTMAX 1
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
16142 $as_echo_n "checking for intmax_t... " >&6; }
16143 if ${gt_cv_c_intmax_t+:} false; then :
16144 $as_echo_n "(cached) " >&6
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16149 #include <stddef.h>
16150 #include <stdlib.h>
16151 #if HAVE_STDINT_H_WITH_UINTMAX
16152 #include <stdint.h>
16154 #if HAVE_INTTYPES_H_WITH_UINTMAX
16155 #include <inttypes.h>
16161 intmax_t x = -1; return !x;
16166 if ac_fn_c_try_compile "$LINENO"; then :
16167 gt_cv_c_intmax_t=yes
16169 gt_cv_c_intmax_t=no
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
16174 $as_echo "$gt_cv_c_intmax_t" >&6; }
16175 if test $gt_cv_c_intmax_t = yes; then
16177 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16181 test $ac_cv_type_long_long_int = yes \
16182 && ac_type='long long' \
16185 cat >>confdefs.h <<_ACEOF
16186 #define intmax_t $ac_type
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
16193 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
16194 if ${gl_cv_cc_double_expbit0+:} false; then :
16195 $as_echo_n "(cached) " >&6
16198 if test "$cross_compiling" = yes; then :
16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h. */
16203 #if defined arm || defined __arm || defined __arm__
16208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16209 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
16210 gl_cv_cc_double_expbit0="unknown"
16214 if ${ac_cv_c_bigendian+:} false; then :
16215 $as_echo_n "(cached) " >&6
16217 ac_cv_c_bigendian=unknown
16218 # See if we're dealing with a universal compiler.
16219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16221 #ifndef __APPLE_CC__
16222 not a universal capable compiler
16227 if ac_fn_c_try_compile "$LINENO"; then :
16229 # Check for potential -arch flags. It is not universal unless
16230 # there are at least two -arch flags with different values.
16233 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16234 if test -n "$ac_prev"; then
16236 i?86 | x86_64 | ppc | ppc64)
16237 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16240 ac_cv_c_bigendian=universal
16246 elif test "x$ac_word" = "x-arch"; then
16251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16252 if test $ac_cv_c_bigendian = unknown; then
16253 # See if sys/param.h defines the BYTE_ORDER macro.
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16256 #include <sys/types.h>
16257 #include <sys/param.h>
16262 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16263 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16265 bogus endian macros
16272 if ac_fn_c_try_compile "$LINENO"; then :
16273 # It does; now see whether it defined to BIG_ENDIAN or not.
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276 #include <sys/types.h>
16277 #include <sys/param.h>
16282 #if BYTE_ORDER != BIG_ENDIAN
16290 if ac_fn_c_try_compile "$LINENO"; then :
16291 ac_cv_c_bigendian=yes
16293 ac_cv_c_bigendian=no
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 if test $ac_cv_c_bigendian = unknown; then
16300 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16303 #include <limits.h>
16308 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16309 bogus endian macros
16316 if ac_fn_c_try_compile "$LINENO"; then :
16317 # It does; now see whether it defined to _BIG_ENDIAN or not.
16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319 /* end confdefs.h. */
16320 #include <limits.h>
16325 #ifndef _BIG_ENDIAN
16333 if ac_fn_c_try_compile "$LINENO"; then :
16334 ac_cv_c_bigendian=yes
16336 ac_cv_c_bigendian=no
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342 if test $ac_cv_c_bigendian = unknown; then
16343 # Compile a test program.
16344 if test "$cross_compiling" = yes; then :
16345 # Try to guess by grepping values from an object file.
16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h. */
16348 short int ascii_mm[] =
16349 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16350 short int ascii_ii[] =
16351 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16352 int use_ascii (int i) {
16353 return ascii_mm[i] + ascii_ii[i];
16355 short int ebcdic_ii[] =
16356 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16357 short int ebcdic_mm[] =
16358 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16359 int use_ebcdic (int i) {
16360 return ebcdic_mm[i] + ebcdic_ii[i];
16367 return use_ascii (foo) == use_ebcdic (foo);
16372 if ac_fn_c_try_compile "$LINENO"; then :
16373 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16374 ac_cv_c_bigendian=yes
16376 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16377 if test "$ac_cv_c_bigendian" = unknown; then
16378 ac_cv_c_bigendian=no
16380 # finding both strings is unlikely to happen, but who knows?
16381 ac_cv_c_bigendian=unknown
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 $ac_includes_default
16394 /* Are we little or big endian? From Harbison&Steele. */
16398 char c[sizeof (long int)];
16401 return u.c[sizeof (long int) - 1] == 1;
16407 if ac_fn_c_try_run "$LINENO"; then :
16408 ac_cv_c_bigendian=no
16410 ac_cv_c_bigendian=yes
16412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16413 conftest.$ac_objext conftest.beam conftest.$ac_ext
16419 case $ac_cv_c_bigendian in #(
16421 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
16423 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
16426 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16430 gl_cv_cc_double_expbit0="unknown" ;;
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16443 #include <stddef.h>
16445 #include <string.h>
16447 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16448 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
16449 static unsigned int ored_words[NWORDS];
16450 static unsigned int anded_words[NWORDS];
16451 static void add_to_ored_words (double x)
16455 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
16456 memset (&m, 0, sizeof (memory_double));
16458 for (i = 0; i < NWORDS; i++)
16460 ored_words[i] |= m.word[i];
16461 anded_words[i] &= m.word[i];
16467 FILE *fp = fopen ("conftest.out", "w");
16470 for (j = 0; j < NWORDS; j++)
16471 anded_words[j] = ~ (unsigned int) 0;
16472 add_to_ored_words (0.25);
16473 add_to_ored_words (0.5);
16474 add_to_ored_words (1.0);
16475 add_to_ored_words (2.0);
16476 add_to_ored_words (4.0);
16477 /* Remove bits that are common (e.g. if representation of the first mantissa
16478 bit is explicit). */
16479 for (j = 0; j < NWORDS; j++)
16480 ored_words[j] &= ~anded_words[j];
16481 /* Now find the nonzero word. */
16482 for (j = 0; j < NWORDS; j++)
16483 if (ored_words[j] != 0)
16488 for (i = j + 1; i < NWORDS; i++)
16489 if (ored_words[i] != 0)
16491 fprintf (fp, "unknown");
16492 return (fclose (fp) != 0);
16495 if ((ored_words[j] >> i) & 1)
16497 fprintf (fp, "word %d bit %d", (int) j, (int) i);
16498 return (fclose (fp) != 0);
16501 fprintf (fp, "unknown");
16502 return (fclose (fp) != 0);
16506 if ac_fn_c_try_run "$LINENO"; then :
16507 gl_cv_cc_double_expbit0=`cat conftest.out`
16509 gl_cv_cc_double_expbit0="unknown"
16511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16512 conftest.$ac_objext conftest.beam conftest.$ac_ext
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
16519 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
16520 case "$gl_cv_cc_double_expbit0" in
16522 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
16523 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
16525 cat >>confdefs.h <<_ACEOF
16526 #define DBL_EXPBIT0_WORD $word
16530 cat >>confdefs.h <<_ACEOF
16531 #define DBL_EXPBIT0_BIT $bit
16542 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
16544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16546 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16547 cat >>confdefs.h <<_ACEOF
16548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16554 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
16556 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
16562 cat >>confdefs.h <<_ACEOF
16563 #define HAVE_DECL__SNPRINTF $ac_have_decl
16568 case "$gl_cv_func_snprintf_retval_c99" in
16571 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
16576 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
16577 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
16583 cat >>confdefs.h <<_ACEOF
16584 #define HAVE_DECL_VSNPRINTF $ac_have_decl
16593 GL_COND_LIBTOOL_TRUE=
16594 GL_COND_LIBTOOL_FALSE='#'
16596 GL_COND_LIBTOOL_TRUE='#'
16597 GL_COND_LIBTOOL_FALSE=
16600 gl_cond_libtool=false
16613 gl_source_base='gnu'
16619 if test "$enable_acl" != no; then
16620 for ac_header in sys/acl.h
16622 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
16623 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
16624 cat >>confdefs.h <<_ACEOF
16625 #define HAVE_SYS_ACL_H 1
16632 if test $ac_cv_header_sys_acl_h = yes; then
16635 if test $use_acl = 0; then
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
16637 $as_echo_n "checking for library containing acl_get_file... " >&6; }
16638 if ${ac_cv_search_acl_get_file+:} false; then :
16639 $as_echo_n "(cached) " >&6
16641 ac_func_search_save_LIBS=$LIBS
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16645 /* Override any GCC internal prototype to avoid an error.
16646 Use char because int might match the return type of a GCC
16647 builtin and then its argument prototype would still apply. */
16651 char acl_get_file ();
16655 return acl_get_file ();
16660 for ac_lib in '' acl pacl; do
16661 if test -z "$ac_lib"; then
16662 ac_res="none required"
16665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16667 if ac_fn_c_try_link "$LINENO"; then :
16668 ac_cv_search_acl_get_file=$ac_res
16670 rm -f core conftest.err conftest.$ac_objext \
16672 if ${ac_cv_search_acl_get_file+:} false; then :
16676 if ${ac_cv_search_acl_get_file+:} false; then :
16679 ac_cv_search_acl_get_file=no
16681 rm conftest.$ac_ext
16682 LIBS=$ac_func_search_save_LIBS
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
16685 $as_echo "$ac_cv_search_acl_get_file" >&6; }
16686 ac_res=$ac_cv_search_acl_get_file
16687 if test "$ac_res" != no; then :
16688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16689 if test "$ac_cv_search_acl_get_file" != "none required"; then
16690 LIB_ACL=$ac_cv_search_acl_get_file
16692 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
16693 acl_free acl_from_mode acl_from_text \
16694 acl_delete_def_file acl_extended_file \
16695 acl_delete_fd_np acl_delete_file_np \
16696 acl_copy_ext_native acl_create_entry_np \
16697 acl_to_short_text acl_free_text
16699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16702 cat >>confdefs.h <<_ACEOF
16703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16709 # If the acl_get_file bug is detected, don't enable the ACL support.
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
16712 $as_echo_n "checking for working acl_get_file... " >&6; }
16713 if ${gl_cv_func_working_acl_get_file+:} false; then :
16714 $as_echo_n "(cached) " >&6
16716 gl_cv_func_working_acl_get_file=no
16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16718 /* end confdefs.h. */
16719 #include <sys/types.h>
16720 #include <sys/acl.h>
16726 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
16734 if ac_fn_c_try_link "$LINENO"; then :
16735 if test $cross_compiling = yes; then
16736 gl_cv_func_working_acl_get_file="guessing yes"
16737 elif ./conftest$ac_exeext; then
16738 gl_cv_func_working_acl_get_file=yes
16741 rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
16745 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
16746 if test "$gl_cv_func_working_acl_get_file" != no; then :
16750 if test $use_acl = 1; then
16751 for ac_header in acl/libacl.h
16753 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
16754 if test "x$ac_cv_header_acl_libacl_h" = xyes; then :
16755 cat >>confdefs.h <<_ACEOF
16756 #define HAVE_ACL_LIBACL_H 1
16771 for ac_func in acl_entries
16773 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
16774 if test "x$ac_cv_func_acl_entries" = xyes; then :
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_ACL_ENTRIES 1
16781 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
16788 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
16789 if ${gl_cv_acl_ACL_FIRST_ENTRY+:} false; then :
16790 $as_echo_n "(cached) " >&6
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794 #include <sys/types.h>
16795 #include <sys/acl.h>
16796 int type = ACL_FIRST_ENTRY;
16805 if ac_fn_c_try_compile "$LINENO"; then :
16806 gl_cv_acl_ACL_FIRST_ENTRY=yes
16808 gl_cv_acl_ACL_FIRST_ENTRY=no
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
16813 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
16814 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
16816 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
16820 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
16821 if ${gl_cv_acl_ACL_TYPE_EXTENDED+:} false; then :
16822 $as_echo_n "(cached) " >&6
16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825 /* end confdefs.h. */
16826 #include <sys/types.h>
16827 #include <sys/acl.h>
16828 int type = ACL_TYPE_EXTENDED;
16837 if ac_fn_c_try_compile "$LINENO"; then :
16838 gl_cv_acl_ACL_TYPE_EXTENDED=yes
16840 gl_cv_acl_ACL_TYPE_EXTENDED=no
16842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
16845 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
16846 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
16848 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
16859 if test $use_acl = 0; then
16860 for ac_func in facl
16862 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
16863 if test "x$ac_cv_func_facl" = xyes; then :
16864 cat >>confdefs.h <<_ACEOF
16865 #define HAVE_FACL 1
16871 if test $ac_cv_func_facl = yes; then
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
16873 $as_echo_n "checking for library containing acl_trivial... " >&6; }
16874 if ${ac_cv_search_acl_trivial+:} false; then :
16875 $as_echo_n "(cached) " >&6
16877 ac_func_search_save_LIBS=$LIBS
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16881 /* Override any GCC internal prototype to avoid an error.
16882 Use char because int might match the return type of a GCC
16883 builtin and then its argument prototype would still apply. */
16887 char acl_trivial ();
16891 return acl_trivial ();
16896 for ac_lib in '' sec; do
16897 if test -z "$ac_lib"; then
16898 ac_res="none required"
16901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16903 if ac_fn_c_try_link "$LINENO"; then :
16904 ac_cv_search_acl_trivial=$ac_res
16906 rm -f core conftest.err conftest.$ac_objext \
16908 if ${ac_cv_search_acl_trivial+:} false; then :
16912 if ${ac_cv_search_acl_trivial+:} false; then :
16915 ac_cv_search_acl_trivial=no
16917 rm conftest.$ac_ext
16918 LIBS=$ac_func_search_save_LIBS
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
16921 $as_echo "$ac_cv_search_acl_trivial" >&6; }
16922 ac_res=$ac_cv_search_acl_trivial
16923 if test "$ac_res" != no; then :
16924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16925 if test "$ac_cv_search_acl_trivial" != "none required"; then
16926 LIB_ACL=$ac_cv_search_acl_trivial
16931 for ac_func in acl_trivial
16933 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
16934 if test "x$ac_cv_func_acl_trivial" = xyes; then :
16935 cat >>confdefs.h <<_ACEOF
16936 #define HAVE_ACL_TRIVIAL 1
16946 if test $use_acl = 0; then
16947 for ac_func in getacl
16949 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
16950 if test "x$ac_cv_func_getacl" = xyes; then :
16951 cat >>confdefs.h <<_ACEOF
16952 #define HAVE_GETACL 1
16958 if test $ac_cv_func_getacl = yes; then
16961 for ac_header in aclv.h
16963 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
16965 if test "x$ac_cv_header_aclv_h" = xyes; then :
16966 cat >>confdefs.h <<_ACEOF
16967 #define HAVE_ACLV_H 1
16976 if test $use_acl = 0; then
16977 for ac_func in aclx_get
16979 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
16980 if test "x$ac_cv_func_aclx_get" = xyes; then :
16981 cat >>confdefs.h <<_ACEOF
16982 #define HAVE_ACLX_GET 1
16988 if test $ac_cv_func_aclx_get = yes; then
16993 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
16994 for ac_func in statacl
16996 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
16997 if test "x$ac_cv_func_statacl" = xyes; then :
16998 cat >>confdefs.h <<_ACEOF
16999 #define HAVE_STATACL 1
17005 if test $ac_cv_func_statacl = yes; then
17010 if test $use_acl = 0; then
17011 for ac_func in aclsort
17013 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
17014 if test "x$ac_cv_func_aclsort" = xyes; then :
17015 cat >>confdefs.h <<_ACEOF
17016 #define HAVE_ACLSORT 1
17022 if test $ac_cv_func_aclsort = yes; then
17030 if test "$enable_acl$use_acl" = yes0; then
17031 as_fn_error $? "ACLs enabled but support not detected" "$LINENO" 5
17032 elif test "$enable_acl$use_acl" = auto0; then
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
17034 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU tar will be built without ACL support." >&5
17036 $as_echo "$as_me: WARNING: GNU tar will be built without ACL support." >&2;}
17039 test $gl_need_lib_has_acl && LIB_HAS_ACL=$LIB_ACL
17042 cat >>confdefs.h <<_ACEOF
17043 #define USE_ACL $use_acl
17051 if test $ac_cv_func_alloca_works = no; then
17055 # Define an additional variable used in the Makefile substitution.
17056 if test $ac_cv_working_alloca_h = yes; then
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
17058 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
17059 if ${gl_cv_rpl_alloca+:} false; then :
17060 $as_echo_n "(cached) " >&6
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17066 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17072 $EGREP "Need own alloca" >/dev/null 2>&1; then :
17073 gl_cv_rpl_alloca=yes
17075 gl_cv_rpl_alloca=no
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
17082 $as_echo "$gl_cv_rpl_alloca" >&6; }
17083 if test $gl_cv_rpl_alloca = yes; then
17085 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17095 if test -n "$ALLOCA_H"; then
17096 GL_GENERATE_ALLOCA_H_TRUE=
17097 GL_GENERATE_ALLOCA_H_FALSE='#'
17099 GL_GENERATE_ALLOCA_H_TRUE='#'
17100 GL_GENERATE_ALLOCA_H_FALSE=
17106 cat >>confdefs.h <<_ACEOF
17107 #define GNULIB_AREADLINKAT 1
17113 cat >>confdefs.h <<_ACEOF
17114 #define GNULIB_AREADLINKAT_WITH_SIZE 1
17123 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
17125 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
17131 cat >>confdefs.h <<_ACEOF
17132 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
17134 if test $ac_have_decl = 1; then :
17138 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
17142 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
17144 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
17150 cat >>confdefs.h <<_ACEOF
17151 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
17153 if test $ac_have_decl = 1; then :
17157 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17162 # Check if program_invocation_name and program_invocation_short_name
17163 # are defined elsewhere. It is improbable that only one of them will
17164 # be defined and other not, I prefer to stay on the safe side and to
17165 # test each one separately.
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
17167 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17174 program_invocation_name = "test";
17179 if ac_fn_c_try_link "$LINENO"; then :
17181 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17184 $as_echo "yes" >&6; }
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17189 rm -f core conftest.err conftest.$ac_objext \
17190 conftest$ac_exeext conftest.$ac_ext
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
17193 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17200 program_invocation_short_name = "test";
17205 if ac_fn_c_try_link "$LINENO"; then :
17207 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17210 $as_echo "yes" >&6; }
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17213 $as_echo "no" >&6; }
17215 rm -f core conftest.err conftest.$ac_objext \
17216 conftest$ac_exeext conftest.$ac_ext
17236 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
17240 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
17250 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
17263 if test $ac_cv_func_btowc = no; then
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17271 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
17272 if ${gl_cv_func_btowc_nul+:} false; then :
17273 $as_echo_n "(cached) " >&6
17276 if test "$cross_compiling" = yes; then :
17279 # Guess no on Cygwin.
17280 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
17281 # Guess yes otherwise.
17282 *) gl_cv_func_btowc_nul="guessing yes" ;;
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h. */
17289 #include <string.h>
17290 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17292 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17293 included before <wchar.h>. */
17294 #include <stddef.h>
17300 if (btowc ('\0') != 0)
17305 if ac_fn_c_try_run "$LINENO"; then :
17306 gl_cv_func_btowc_nul=yes
17308 gl_cv_func_btowc_nul=no
17310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17311 conftest.$ac_objext conftest.beam conftest.$ac_ext
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17317 $as_echo "$gl_cv_func_btowc_nul" >&6; }
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17320 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
17321 if ${gl_cv_func_btowc_eof+:} false; then :
17322 $as_echo_n "(cached) " >&6
17326 # Guess no on IRIX.
17327 irix*) gl_cv_func_btowc_eof="guessing no" ;;
17328 # Guess yes otherwise.
17329 *) gl_cv_func_btowc_eof="guessing yes" ;;
17331 if test $LOCALE_FR != none; then
17332 if test "$cross_compiling" = yes; then :
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17338 #include <locale.h>
17339 #include <string.h>
17340 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17342 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17343 included before <wchar.h>. */
17344 #include <stddef.h>
17350 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17352 if (btowc (EOF) != WEOF)
17358 if ac_fn_c_try_run "$LINENO"; then :
17359 gl_cv_func_btowc_eof=yes
17361 gl_cv_func_btowc_eof=no
17363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17364 conftest.$ac_objext conftest.beam conftest.$ac_ext
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17371 $as_echo "$gl_cv_func_btowc_eof" >&6; }
17373 case "$gl_cv_func_btowc_nul" in
17375 *) REPLACE_BTOWC=1 ;;
17377 case "$gl_cv_func_btowc_eof" in
17379 *) REPLACE_BTOWC=1 ;;
17383 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
17392 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
17409 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17416 if test $ac_cv_func_canonicalize_file_name = no; then
17417 HAVE_CANONICALIZE_FILE_NAME=0
17418 if test $ac_cv_func_realpath = no; then
17421 case "$gl_cv_func_realpath_works" in
17423 *) REPLACE_REALPATH=1 ;;
17427 case "$gl_cv_func_realpath_works" in
17431 REPLACE_CANONICALIZE_FILE_NAME=1
17437 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
17446 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17451 cat >>confdefs.h <<_ACEOF
17452 #define GNULIB_CANONICALIZE_LGPL 1
17461 GNULIB_CANONICALIZE_FILE_NAME=1
17467 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
17482 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
17498 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
17505 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
17506 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false; then :
17507 $as_echo_n "(cached) " >&6
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17512 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17514 # include <unistd.h>
17516 #include <limits.h>
17517 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17518 # include <sys/param.h>
17520 #if !defined PATH_MAX && defined MAXPATHLEN
17521 # define PATH_MAX MAXPATHLEN
17525 # define PATH_MAX 1024
17527 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17529 # define PATH_MAX 260
17533 have_arbitrary_file_name_length_limit
17536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17537 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then :
17538 gl_cv_have_arbitrary_file_name_length_limit=yes
17540 gl_cv_have_arbitrary_file_name_length_limit=no
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
17546 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
17548 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
17557 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
17562 if test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1; then
17571 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
17574 if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
17583 gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
17597 $as_echo "#define GNULIB_TEST_CHOWN 1" >>confdefs.h
17604 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
17605 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
17607 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
17608 # programs in the package would end up linked with that potentially-shared
17609 # library, inducing unnecessary run-time overhead.
17612 gl_saved_libs=$LIBS
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17614 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17615 if ${ac_cv_search_clock_gettime+:} false; then :
17616 $as_echo_n "(cached) " >&6
17618 ac_func_search_save_LIBS=$LIBS
17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h. */
17622 /* Override any GCC internal prototype to avoid an error.
17623 Use char because int might match the return type of a GCC
17624 builtin and then its argument prototype would still apply. */
17628 char clock_gettime ();
17632 return clock_gettime ();
17637 for ac_lib in '' rt posix4; do
17638 if test -z "$ac_lib"; then
17639 ac_res="none required"
17642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17644 if ac_fn_c_try_link "$LINENO"; then :
17645 ac_cv_search_clock_gettime=$ac_res
17647 rm -f core conftest.err conftest.$ac_objext \
17649 if ${ac_cv_search_clock_gettime+:} false; then :
17653 if ${ac_cv_search_clock_gettime+:} false; then :
17656 ac_cv_search_clock_gettime=no
17658 rm conftest.$ac_ext
17659 LIBS=$ac_func_search_save_LIBS
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17662 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17663 ac_res=$ac_cv_search_clock_gettime
17664 if test "$ac_res" != no; then :
17665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17666 test "$ac_cv_search_clock_gettime" = "none required" ||
17667 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
17670 for ac_func in clock_gettime clock_settime
17672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17673 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17674 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17675 cat >>confdefs.h <<_ACEOF
17676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17682 LIBS=$gl_saved_libs
17686 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
17692 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17700 if test $ac_cv_header_sys_socket_h != yes; then
17701 for ac_header in winsock2.h
17703 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17704 if test "x$ac_cv_header_winsock2_h" = xyes; then :
17705 cat >>confdefs.h <<_ACEOF
17706 #define HAVE_WINSOCK2_H 1
17714 if test "$ac_cv_header_winsock2_h" = yes; then
17716 UNISTD_H_HAVE_WINSOCK2_H=1
17717 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17723 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
17728 if test $REPLACE_CLOSE = 0; then
17732 if test $ac_cv_func_fchdir = no; then
17736 if test $HAVE_FCHDIR = 0; then
17742 if test $REPLACE_CLOSE = 1; then
17751 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
17765 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
17774 cat >>confdefs.h <<_ACEOF
17775 #define GNULIB_CLOSE_STREAM 1
17782 for ac_func in closedir
17784 ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
17785 if test "x$ac_cv_func_closedir" = xyes; then :
17786 cat >>confdefs.h <<_ACEOF
17787 #define HAVE_CLOSEDIR 1
17793 if test $ac_cv_func_closedir = no; then
17800 if test $ac_cv_func_fchdir = no; then
17804 if test $HAVE_FCHDIR = 0; then
17805 if test $HAVE_CLOSEDIR = 1; then
17811 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
17820 gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
17834 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
17842 if test "x$datarootdir" = x; then
17843 datarootdir='${datadir}'
17846 if test "x$docdir" = x; then
17847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
17850 if test "x$htmldir" = x; then
17851 htmldir='${docdir}'
17854 if test "x$dvidir" = x; then
17858 if test "x$pdfdir" = x; then
17862 if test "x$psdir" = x; then
17866 if test "x$lispdir" = x; then
17867 lispdir='${datarootdir}/emacs/site-lisp'
17870 if test "x$localedir" = x; then
17871 localedir='${datarootdir}/locale'
17874 if test "x$runstatedir" = x; then
17875 runstatedir='${localstatedir}/run'
17879 pkglibexecdir='${libexecdir}/${PACKAGE}'
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
17883 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
17884 if ${gl_cv_struct_dirent_d_ino+:} false; then :
17885 $as_echo_n "(cached) " >&6
17887 if test "$cross_compiling" = yes; then :
17889 # Guess yes on glibc systems with Linux kernel.
17890 linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
17891 # If we don't know, assume the worst.
17892 *) gl_cv_struct_dirent_d_ino="guessing no" ;;
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17898 #include <sys/types.h>
17899 #include <sys/stat.h>
17900 #include <dirent.h>
17905 DIR *dp = opendir (".");
17913 if (lstat (e->d_name, &st) != 0)
17915 if (e->d_ino != st.st_ino)
17923 if ac_fn_c_try_run "$LINENO"; then :
17924 gl_cv_struct_dirent_d_ino=yes
17926 gl_cv_struct_dirent_d_ino=no
17928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17929 conftest.$ac_objext conftest.beam conftest.$ac_ext
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
17934 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
17935 case "$gl_cv_struct_dirent_d_ino" in
17938 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
17956 if test $gl_cv_have_include_next = yes; then
17957 gl_cv_next_dirent_h='<'dirent.h'>'
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
17960 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
17961 if ${gl_cv_next_dirent_h+:} false; then :
17962 $as_echo_n "(cached) " >&6
17965 if test $ac_cv_header_dirent_h = yes; then
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17972 #include <dirent.h>
17975 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17976 *) gl_absname_cpp="$ac_cpp" ;;
17981 gl_dirsep_regex='[/\\]'
17984 gl_dirsep_regex='\/'
17987 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17988 gl_header_literal_regex=`echo 'dirent.h' \
17989 | sed -e "$gl_make_literal_regex_sed"`
17990 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17991 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17997 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17998 sed -n "$gl_absolute_header_sed"`
18000 gl_header=$gl_cv_absolute_dirent_h
18001 gl_cv_next_dirent_h='"'$gl_header'"'
18003 gl_cv_next_dirent_h='<'dirent.h'>'
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
18009 $as_echo "$gl_cv_next_dirent_h" >&6; }
18011 NEXT_DIRENT_H=$gl_cv_next_dirent_h
18013 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18015 gl_next_as_first_directive='<'dirent.h'>'
18017 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18018 gl_next_as_first_directive=$gl_cv_next_dirent_h
18020 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
18025 if test $ac_cv_header_dirent_h = yes; then
18033 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
18034 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18036 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18037 if eval \${$as_gl_Symbol+:} false; then :
18038 $as_echo_n "(cached) " >&6
18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h. */
18042 #include <dirent.h>
18053 if ac_fn_c_try_compile "$LINENO"; then :
18054 eval "$as_gl_Symbol=yes"
18056 eval "$as_gl_Symbol=no"
18058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060 eval ac_res=\$$as_gl_Symbol
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18062 $as_echo "$ac_res" >&6; }
18063 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18064 cat >>confdefs.h <<_ACEOF
18065 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18068 eval ac_cv_have_decl_$gl_func=yes
18078 cat >>confdefs.h <<_ACEOF
18079 #define GNULIB_DIRENT_SAFER 1
18088 for ac_func in dirfd
18090 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
18091 if test "x$ac_cv_func_dirfd" = xyes; then :
18092 cat >>confdefs.h <<_ACEOF
18093 #define HAVE_DIRFD 1
18099 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
18100 #include <dirent.h>
18102 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
18108 cat >>confdefs.h <<_ACEOF
18109 #define HAVE_DECL_DIRFD $ac_have_decl
18112 if test $ac_cv_have_decl_dirfd = no; then
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
18117 $as_echo_n "checking whether dirfd is a macro... " >&6; }
18118 if ${gl_cv_func_dirfd_macro+:} false; then :
18119 $as_echo_n "(cached) " >&6
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18124 #include <sys/types.h>
18125 #include <dirent.h>
18127 dirent_header_defines_dirfd
18130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18131 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
18132 gl_cv_func_dirfd_macro=yes
18134 gl_cv_func_dirfd_macro=no
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
18140 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
18142 # Use the replacement only if we have no function or macro with that name.
18143 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
18144 if test $ac_cv_have_decl_dirfd = yes; then
18145 # If the system declares dirfd already, let's declare rpl_dirfd instead.
18150 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
18159 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
18163 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
18164 if ${gl_cv_sys_dir_fd_member_name+:} false; then :
18165 $as_echo_n "(cached) " >&6
18168 dirfd_save_CFLAGS=$CFLAGS
18169 for ac_expr in d_fd dd_fd; do
18171 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h. */
18175 #include <sys/types.h>
18176 #include <dirent.h>
18180 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18185 if ac_fn_c_try_compile "$LINENO"; then :
18189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18190 CFLAGS=$dirfd_save_CFLAGS
18191 test "$dir_fd_found" = yes && break
18193 test "$dir_fd_found" = yes || ac_expr=no_such_member
18195 gl_cv_sys_dir_fd_member_name=$ac_expr
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
18200 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
18201 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
18203 cat >>confdefs.h <<_ACEOF
18204 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18222 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
18231 cat >>confdefs.h <<_ACEOF
18232 #define GNULIB_DIRNAME 1
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
18243 $as_echo_n "checking whether // is distinct from /... " >&6; }
18244 if ${gl_cv_double_slash_root+:} false; then :
18245 $as_echo_n "(cached) " >&6
18247 if test x"$cross_compiling" = xyes ; then
18248 # When cross-compiling, there is no way to tell whether // is special
18249 # short of a list of hosts. However, the only known hosts to date
18250 # that have a distinct // are Apollo DomainOS (too old to port to),
18251 # Cygwin, and z/OS. If anyone knows of another system for which // has
18252 # special semantics and is distinct from /, please report it to
18253 # <bug-gnulib@gnu.org>.
18255 *-cygwin | i370-ibm-openedition)
18256 gl_cv_double_slash_root=yes ;;
18258 # Be optimistic and assume that / and // are the same when we
18260 gl_cv_double_slash_root='unknown, assuming no' ;;
18263 set x `ls -di / // 2>/dev/null`
18264 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
18265 gl_cv_double_slash_root=no
18267 gl_cv_double_slash_root=yes
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
18272 $as_echo "$gl_cv_double_slash_root" >&6; }
18273 if test "$gl_cv_double_slash_root" = yes; then
18275 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
18282 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
18289 if test $ac_cv_func_fchdir = no; then
18293 if test $HAVE_FCHDIR = 0; then
18298 if test $REPLACE_DUP = 1; then
18307 gl_LIBOBJS="$gl_LIBOBJS dup.$ac_objext"
18322 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
18331 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18334 if test $HAVE_DUP2 = 1; then
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18336 $as_echo_n "checking whether dup2 works... " >&6; }
18337 if ${gl_cv_func_dup2_works+:} false; then :
18338 $as_echo_n "(cached) " >&6
18340 if test "$cross_compiling" = yes; then :
18342 mingw*) # on this platform, dup2 always returns 0 for success
18343 gl_cv_func_dup2_works="guessing no" ;;
18344 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18345 gl_cv_func_dup2_works="guessing no" ;;
18347 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
18349 gl_cv_func_dup2_works="guessing no" ;;
18350 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18351 gl_cv_func_dup2_works="guessing no" ;;
18352 *-android*) # implemented using dup3(), which fails if oldfd == newfd
18353 gl_cv_func_dup2_works="guessing no" ;;
18354 *) gl_cv_func_dup2_works="guessing yes" ;;
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18362 #include <limits.h>
18363 #include <sys/resource.h>
18364 #include <unistd.h>
18365 #ifndef RLIM_SAVED_CUR
18366 # define RLIM_SAVED_CUR RLIM_INFINITY
18368 #ifndef RLIM_SAVED_MAX
18369 # define RLIM_SAVED_MAX RLIM_INFINITY
18376 int bad_fd = INT_MAX;
18377 struct rlimit rlim;
18378 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18379 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18380 && rlim.rlim_cur != RLIM_INFINITY
18381 && rlim.rlim_cur != RLIM_SAVED_MAX
18382 && rlim.rlim_cur != RLIM_SAVED_CUR)
18383 bad_fd = rlim.rlim_cur;
18385 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18388 if (dup2 (1, 1) != 1)
18391 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18395 if (dup2 (0, 0) != -1)
18397 /* Many gnulib modules require POSIX conformance of EBADF. */
18398 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
18400 /* Flush out some cygwin core dumps. */
18401 if (dup2 (2, -1) != -1 || errno != EBADF)
18411 if ac_fn_c_try_run "$LINENO"; then :
18412 gl_cv_func_dup2_works=yes
18414 gl_cv_func_dup2_works=no
18416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18417 conftest.$ac_objext conftest.beam conftest.$ac_ext
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18423 $as_echo "$gl_cv_func_dup2_works" >&6; }
18424 case "$gl_cv_func_dup2_works" in
18428 for ac_func in setdtablesize
18430 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
18431 if test "x$ac_cv_func_setdtablesize" = xyes; then :
18432 cat >>confdefs.h <<_ACEOF
18433 #define HAVE_SETDTABLESIZE 1
18446 if test $ac_cv_func_fchdir = no; then
18450 if test $HAVE_FCHDIR = 0; then
18451 if test $HAVE_DUP2 = 1; then
18457 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
18466 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18481 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
18497 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18504 $as_echo_n "checking for error_at_line... " >&6; }
18505 if ${ac_cv_lib_error_at_line+:} false; then :
18506 $as_echo_n "(cached) " >&6
18508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509 /* end confdefs.h. */
18514 error_at_line (0, 0, "", 0, "an error occurred");
18519 if ac_fn_c_try_link "$LINENO"; then :
18520 ac_cv_lib_error_at_line=yes
18522 ac_cv_lib_error_at_line=no
18524 rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18528 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18530 if test $ac_cv_lib_error_at_line = no; then
18539 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
18548 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
18552 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
18559 for ac_func in euidaccess
18561 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
18562 if test "x$ac_cv_func_euidaccess" = xyes; then :
18563 cat >>confdefs.h <<_ACEOF
18564 #define HAVE_EUIDACCESS 1
18570 if test $ac_cv_func_euidaccess = no; then
18574 if test $HAVE_EUIDACCESS = 0; then
18583 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
18587 for ac_header in libgen.h
18589 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
18590 if test "x$ac_cv_header_libgen_h" = xyes; then :
18591 cat >>confdefs.h <<_ACEOF
18592 #define HAVE_LIBGEN_H 1
18600 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
18601 if test "x$ac_cv_func_getgroups" = xyes; then :
18606 # If we don't yet have getgroups, see if it's in -lbsd.
18607 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
18609 if test $ac_cv_func_getgroups = no; then
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
18611 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
18612 if ${ac_cv_lib_bsd_getgroups+:} false; then :
18613 $as_echo_n "(cached) " >&6
18615 ac_check_lib_save_LIBS=$LIBS
18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h. */
18620 /* Override any GCC internal prototype to avoid an error.
18621 Use char because int might match the return type of a GCC
18622 builtin and then its argument prototype would still apply. */
18630 return getgroups ();
18635 if ac_fn_c_try_link "$LINENO"; then :
18636 ac_cv_lib_bsd_getgroups=yes
18638 ac_cv_lib_bsd_getgroups=no
18640 rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
18645 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
18646 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
18647 GETGROUPS_LIB=-lbsd
18652 # Run the program to test the functionality of the system-supplied
18653 # getgroups function only if there is such a function.
18654 if test $ac_cv_func_getgroups = yes; then
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
18656 $as_echo_n "checking for working getgroups... " >&6; }
18657 if ${ac_cv_func_getgroups_works+:} false; then :
18658 $as_echo_n "(cached) " >&6
18660 if test "$cross_compiling" = yes; then :
18661 case "$host_os" in # ((
18662 # Guess yes on glibc systems.
18663 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
18664 # If we don't know, assume the worst.
18665 *) ac_cv_func_getgroups_works="guessing no" ;;
18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18671 $ac_includes_default
18675 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
18676 return getgroups (0, 0) == -1;
18682 if ac_fn_c_try_run "$LINENO"; then :
18683 ac_cv_func_getgroups_works=yes
18685 ac_cv_func_getgroups_works=no
18687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18688 conftest.$ac_objext conftest.beam conftest.$ac_ext
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
18694 $as_echo "$ac_cv_func_getgroups_works" >&6; }
18696 ac_cv_func_getgroups_works=no
18698 case "$ac_cv_func_getgroups_works" in
18701 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
18708 # Solaris 9 and 10 need -lgen to get the eaccess function.
18709 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
18710 # programs in the package would end up linked with that potentially-shared
18711 # library, inducing unnecessary run-time overhead.
18714 gl_saved_libs=$LIBS
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
18716 $as_echo_n "checking for library containing eaccess... " >&6; }
18717 if ${ac_cv_search_eaccess+:} false; then :
18718 $as_echo_n "(cached) " >&6
18720 ac_func_search_save_LIBS=$LIBS
18721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18722 /* end confdefs.h. */
18724 /* Override any GCC internal prototype to avoid an error.
18725 Use char because int might match the return type of a GCC
18726 builtin and then its argument prototype would still apply. */
18739 for ac_lib in '' gen; do
18740 if test -z "$ac_lib"; then
18741 ac_res="none required"
18744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18746 if ac_fn_c_try_link "$LINENO"; then :
18747 ac_cv_search_eaccess=$ac_res
18749 rm -f core conftest.err conftest.$ac_objext \
18751 if ${ac_cv_search_eaccess+:} false; then :
18755 if ${ac_cv_search_eaccess+:} false; then :
18758 ac_cv_search_eaccess=no
18760 rm conftest.$ac_ext
18761 LIBS=$ac_func_search_save_LIBS
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
18764 $as_echo "$ac_cv_search_eaccess" >&6; }
18765 ac_res=$ac_cv_search_eaccess
18766 if test "$ac_res" != no; then :
18767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18768 test "$ac_cv_search_eaccess" = "none required" ||
18769 LIB_EACCESS=$ac_cv_search_eaccess
18772 for ac_func in eaccess
18774 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
18775 if test "x$ac_cv_func_eaccess" = xyes; then :
18776 cat >>confdefs.h <<_ACEOF
18777 #define HAVE_EACCESS 1
18783 LIBS=$gl_saved_libs
18791 GNULIB_EUIDACCESS=1
18797 $as_echo "#define GNULIB_TEST_EUIDACCESS 1" >>confdefs.h
18808 if test $ac_cv_func_faccessat = no; then
18812 if test $HAVE_FACCESSAT = 0; then
18821 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
18824 for ac_func in access
18826 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
18827 if test "x$ac_cv_func_access" = xyes; then :
18828 cat >>confdefs.h <<_ACEOF
18829 #define HAVE_ACCESS 1
18839 cat >>confdefs.h <<_ACEOF
18840 #define GNULIB_FACCESSAT 1
18855 $as_echo "#define GNULIB_TEST_FACCESSAT 1" >>confdefs.h
18864 if test $ac_cv_have_decl_fchdir = no; then
18869 if test $HAVE_FCHDIR = 0; then
18878 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
18882 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
18885 $as_echo_n "checking whether open can visit directories... " >&6; }
18886 if ${gl_cv_func_open_directory_works+:} false; then :
18887 $as_echo_n "(cached) " >&6
18889 if test "$cross_compiling" = yes; then :
18891 # Guess yes on glibc systems.
18892 *-gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
18893 # If we don't know, assume the worst.
18894 *) gl_cv_func_open_directory_works="guessing no" ;;
18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899 /* end confdefs.h. */
18905 return open(".", O_RDONLY) < 0;
18910 if ac_fn_c_try_run "$LINENO"; then :
18911 gl_cv_func_open_directory_works=yes
18913 gl_cv_func_open_directory_works=no
18915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18916 conftest.$ac_objext conftest.beam conftest.$ac_ext
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
18921 $as_echo "$gl_cv_func_open_directory_works" >&6; }
18922 case "$gl_cv_func_open_directory_works" in
18926 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
18943 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
18951 if test $ac_cv_func_fchmodat != yes; then
18955 if test $HAVE_FCHMODAT = 0; then
18964 gl_LIBOBJS="$gl_LIBOBJS fchmodat.$ac_objext"
18969 cat >>confdefs.h <<_ACEOF
18970 #define GNULIB_FCHMODAT 1
18984 $as_echo "#define GNULIB_TEST_FCHMODAT 1" >>confdefs.h
18992 ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat"
18993 if test "x$ac_cv_func_fchownat" = xyes; then :
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
18998 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
18999 if ${gl_cv_func_fchownat_nofollow_works+:} false; then :
19000 $as_echo_n "(cached) " >&6
19003 gl_dangle=conftest.dangle
19004 # Remove any remnants of a previous test.
19006 # Arrange for deletion of the temporary file this test creates.
19007 ac_clean_files="$ac_clean_files $gl_dangle"
19008 ln -s conftest.no-such $gl_dangle
19009 if test "$cross_compiling" = yes; then :
19010 gl_cv_func_fchownat_nofollow_works=no
19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h. */
19016 #include <unistd.h>
19017 #include <stdlib.h>
19019 #include <sys/types.h>
19023 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
19024 AT_SYMLINK_NOFOLLOW) != 0
19025 && errno == ENOENT);
19029 if ac_fn_c_try_run "$LINENO"; then :
19030 gl_cv_func_fchownat_nofollow_works=yes
19032 gl_cv_func_fchownat_nofollow_works=no
19034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19035 conftest.$ac_objext conftest.beam conftest.$ac_ext
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fchownat_nofollow_works" >&5
19041 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
19042 if test $gl_cv_func_fchownat_nofollow_works = no; then :
19045 $as_echo "#define FCHOWNAT_NOFOLLOW_BUG 1" >>confdefs.h
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fchownat works with an empty file name" >&5
19054 $as_echo_n "checking whether fchownat works with an empty file name... " >&6; }
19055 if ${gl_cv_func_fchownat_empty_filename_works+:} false; then :
19056 $as_echo_n "(cached) " >&6
19058 if test "$cross_compiling" = yes; then :
19059 gl_cv_func_fchownat_empty_filename_works="guessing no"
19061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062 /* end confdefs.h. */
19063 #include <unistd.h>
19071 if (mkdir ("conftestdir", 0700) < 0)
19073 fd = open ("conftestdir", O_RDONLY);
19076 ret = fchownat (fd, "", -1, -1, 0);
19078 rmdir ("conftestdir");
19085 if ac_fn_c_try_run "$LINENO"; then :
19086 gl_cv_func_fchownat_empty_filename_works=yes
19088 gl_cv_func_fchownat_empty_filename_works=no
19090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19091 conftest.$ac_objext conftest.beam conftest.$ac_ext
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fchownat_empty_filename_works" >&5
19097 $as_echo "$gl_cv_func_fchownat_empty_filename_works" >&6; }
19098 if test "$gl_cv_func_fchownat_empty_filename_works" != yes; then :
19101 $as_echo "#define FCHOWNAT_EMPTY_FILENAME_BUG 1" >>confdefs.h
19106 if test $REPLACE_CHOWN = 1; then
19114 if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
19123 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
19128 cat >>confdefs.h <<_ACEOF
19129 #define GNULIB_FCHOWNAT 1
19143 $as_echo "#define GNULIB_TEST_FCHOWNAT 1" >>confdefs.h
19152 if test $ac_cv_func_fcntl = no; then
19156 if test $ac_cv_func_fcntl = no; then
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
19164 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
19165 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
19166 $as_echo_n "(cached) " >&6
19168 if test "$cross_compiling" = yes; then :
19170 aix* | cygwin* | haiku*)
19171 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
19172 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h. */
19179 #include <limits.h>
19180 #include <sys/resource.h>
19181 #include <unistd.h>
19182 #ifndef RLIM_SAVED_CUR
19183 # define RLIM_SAVED_CUR RLIM_INFINITY
19185 #ifndef RLIM_SAVED_MAX
19186 # define RLIM_SAVED_MAX RLIM_INFINITY
19193 int bad_fd = INT_MAX;
19194 struct rlimit rlim;
19195 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
19196 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
19197 && rlim.rlim_cur != RLIM_INFINITY
19198 && rlim.rlim_cur != RLIM_SAVED_MAX
19199 && rlim.rlim_cur != RLIM_SAVED_CUR)
19200 bad_fd = rlim.rlim_cur;
19201 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
19202 if (errno != EINVAL) result |= 2;
19203 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
19204 if (errno != EINVAL) result |= 8;
19210 if ac_fn_c_try_run "$LINENO"; then :
19211 gl_cv_func_fcntl_f_dupfd_works=yes
19213 gl_cv_func_fcntl_f_dupfd_works=no
19215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19216 conftest.$ac_objext conftest.beam conftest.$ac_ext
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
19221 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
19222 case $gl_cv_func_fcntl_f_dupfd_works in
19227 if test $ac_cv_func_fcntl = no; then
19234 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
19239 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
19240 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
19241 $as_echo_n "(cached) " >&6
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19247 #ifndef F_DUPFD_CLOEXEC
19259 if ac_fn_c_try_compile "$LINENO"; then :
19260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261 /* end confdefs.h. */
19264 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
19265 it to support the semantics on older kernels that failed with EINVAL. */
19277 if ac_fn_c_try_compile "$LINENO"; then :
19278 gl_cv_func_fcntl_f_dupfd_cloexec=yes
19280 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284 gl_cv_func_fcntl_f_dupfd_cloexec=no
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
19289 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
19290 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
19294 if test $ac_cv_func_fcntl = no; then
19306 if test $ac_cv_func_fchdir = no; then
19310 if test $HAVE_FCHDIR = 0; then
19314 if test $ac_cv_func_fcntl = no; then
19323 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
19332 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
19346 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
19361 if test $gl_cv_have_include_next = yes; then
19362 gl_cv_next_fcntl_h='<'fcntl.h'>'
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
19365 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
19366 if ${gl_cv_next_fcntl_h+:} false; then :
19367 $as_echo_n "(cached) " >&6
19372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19373 /* end confdefs.h. */
19377 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19378 *) gl_absname_cpp="$ac_cpp" ;;
19383 gl_dirsep_regex='[/\\]'
19386 gl_dirsep_regex='\/'
19389 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19390 gl_header_literal_regex=`echo 'fcntl.h' \
19391 | sed -e "$gl_make_literal_regex_sed"`
19392 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19393 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19399 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19400 sed -n "$gl_absolute_header_sed"`
19402 gl_header=$gl_cv_absolute_fcntl_h
19403 gl_cv_next_fcntl_h='"'$gl_header'"'
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
19408 $as_echo "$gl_cv_next_fcntl_h" >&6; }
19410 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
19412 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19413 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19414 gl_next_as_first_directive='<'fcntl.h'>'
19416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19417 gl_next_as_first_directive=$gl_cv_next_fcntl_h
19419 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
19430 for gl_func in fcntl openat; do
19431 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19433 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19434 if eval \${$as_gl_Symbol+:} false; then :
19435 $as_echo_n "(cached) " >&6
19437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19438 /* end confdefs.h. */
19450 if ac_fn_c_try_compile "$LINENO"; then :
19451 eval "$as_gl_Symbol=yes"
19453 eval "$as_gl_Symbol=no"
19455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19457 eval ac_res=\$$as_gl_Symbol
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19459 $as_echo "$ac_res" >&6; }
19460 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19461 cat >>confdefs.h <<_ACEOF
19462 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19465 eval ac_cv_have_decl_$gl_func=yes
19475 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
19476 #include <dirent.h>
19479 if test "x$ac_cv_have_decl_fdopendir" = xyes; then :
19485 cat >>confdefs.h <<_ACEOF
19486 #define HAVE_DECL_FDOPENDIR $ac_have_decl
19488 if test $ac_have_decl = 1; then :
19491 HAVE_DECL_FDOPENDIR=0
19495 if test $ac_cv_func_fdopendir = no; then
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
19499 $as_echo_n "checking whether fdopendir works... " >&6; }
19500 if ${gl_cv_func_fdopendir_works+:} false; then :
19501 $as_echo_n "(cached) " >&6
19503 if test "$cross_compiling" = yes; then :
19505 # Guess yes on glibc systems.
19506 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
19507 # If we don't know, assume the worst.
19508 *) gl_cv_func_fdopendir_works="guessing no" ;;
19512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19513 /* end confdefs.h. */
19515 #include <dirent.h>
19517 #include <unistd.h>
19518 #if !HAVE_DECL_FDOPENDIR
19520 # ifdef __cplusplus
19523 DIR *fdopendir (int);
19530 int fd = open ("conftest.c", O_RDONLY);
19531 if (fd < 0) result |= 1;
19532 if (fdopendir (fd)) result |= 2;
19533 if (close (fd)) result |= 4;
19539 if ac_fn_c_try_run "$LINENO"; then :
19540 gl_cv_func_fdopendir_works=yes
19542 gl_cv_func_fdopendir_works=no
19544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19545 conftest.$ac_objext conftest.beam conftest.$ac_ext
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
19550 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
19551 case "$gl_cv_func_fdopendir_works" in
19554 REPLACE_FDOPENDIR=1
19559 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
19568 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
19582 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
19588 cat >>confdefs.h <<_ACEOF
19589 #define GNULIB_FDOPENDIR 1
19595 cat >>confdefs.h <<_ACEOF
19596 #define GNULIB_FDUTIMENSAT 1
19602 if test "$enable_acl" != no; then
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr with XATTR_NAME_POSIX_ACL macros" >&5
19604 $as_echo_n "checking for getxattr with XATTR_NAME_POSIX_ACL macros... " >&6; }
19605 if ${gl_cv_getxattr_with_posix_acls+:} false; then :
19606 $as_echo_n "(cached) " >&6
19608 gl_cv_getxattr_with_posix_acls=no
19609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19610 /* end confdefs.h. */
19611 #include <sys/types.h>
19612 #include <sys/xattr.h>
19613 #include <linux/xattr.h>
19618 ssize_t a = getxattr (".", XATTR_NAME_POSIX_ACL_ACCESS, 0, 0);
19619 ssize_t b = getxattr (".", XATTR_NAME_POSIX_ACL_DEFAULT, 0, 0);
19620 return a < 0 || b < 0;
19626 if ac_fn_c_try_link "$LINENO"; then :
19627 gl_cv_getxattr_with_posix_acls=yes
19629 rm -f core conftest.err conftest.$ac_objext \
19630 conftest$ac_exeext conftest.$ac_ext
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_getxattr_with_posix_acls" >&5
19633 $as_echo "$gl_cv_getxattr_with_posix_acls" >&6; }
19635 if test "$gl_cv_getxattr_with_posix_acls" = yes; then
19638 $as_echo "#define GETXATTR_WITH_POSIX_ACLS 1" >>confdefs.h
19641 gl_need_lib_has_acl=1
19642 LIB_HAS_ACL=$LIB_ACL
19648 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
19649 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
19651 cat >>confdefs.h <<_ACEOF
19652 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19656 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
19665 if test $ac_cv_member_struct_stat_st_blocks = no; then
19674 gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
19686 $as_echo_n "checking for flexible array member... " >&6; }
19687 if ${ac_cv_c_flexmember+:} false; then :
19688 $as_echo_n "(cached) " >&6
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h. */
19692 #include <stdlib.h>
19694 #include <stddef.h>
19695 struct s { int n; double d[]; };
19699 int m = getchar ();
19700 struct s *p = malloc (offsetof (struct s, d)
19701 + m * sizeof (double));
19703 return p->d != (double *) NULL;
19708 if ac_fn_c_try_compile "$LINENO"; then :
19709 ac_cv_c_flexmember=yes
19711 ac_cv_c_flexmember=no
19713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
19716 $as_echo "$ac_cv_c_flexmember" >&6; }
19717 if test $ac_cv_c_flexmember = yes; then
19719 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
19722 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
19730 REPLACE_FLOAT_LDBL=0
19732 aix* | beos* | openbsd* | mirbsd* | irix*)
19736 case "$host_cpu" in
19741 # On x86_64 systems, the C compiler may still be generating
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19745 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
19749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19750 $EGREP "yes" >/dev/null 2>&1; then :
19761 case "$host_cpu" in
19769 aix* | freebsd* | linux*)
19770 if test -n "$FLOAT_H"; then
19771 REPLACE_FLOAT_LDBL=1
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
19778 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
19779 if ${gl_cv_func_itold_works+:} false; then :
19780 $as_echo_n "(cached) " >&6
19783 if test "$cross_compiling" = yes; then :
19786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19787 /* end confdefs.h. */
19788 #if defined __LP64__ || defined __arch64__
19792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19793 $EGREP "yes" >/dev/null 2>&1; then :
19794 gl_cv_func_itold_works="guessing no"
19796 gl_cv_func_itold_works="guessing yes"
19801 *) gl_cv_func_itold_works="guessing yes" ;;
19805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19806 /* end confdefs.h. */
19809 volatile long double ld;
19818 if ac_fn_c_try_run "$LINENO"; then :
19819 gl_cv_func_itold_works=yes
19821 gl_cv_func_itold_works=no
19823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19824 conftest.$ac_objext conftest.beam conftest.$ac_ext
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
19830 $as_echo "$gl_cv_func_itold_works" >&6; }
19831 case "$gl_cv_func_itold_works" in
19838 if test -n "$FLOAT_H"; then
19847 if test $gl_cv_have_include_next = yes; then
19848 gl_cv_next_float_h='<'float.h'>'
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
19851 $as_echo_n "checking absolute name of <float.h>... " >&6; }
19852 if ${gl_cv_next_float_h+:} false; then :
19853 $as_echo_n "(cached) " >&6
19858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h. */
19863 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19864 *) gl_absname_cpp="$ac_cpp" ;;
19869 gl_dirsep_regex='[/\\]'
19872 gl_dirsep_regex='\/'
19875 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19876 gl_header_literal_regex=`echo 'float.h' \
19877 | sed -e "$gl_make_literal_regex_sed"`
19878 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19879 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19885 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19886 sed -n "$gl_absolute_header_sed"`
19888 gl_header=$gl_cv_absolute_float_h
19889 gl_cv_next_float_h='"'$gl_header'"'
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
19894 $as_echo "$gl_cv_next_float_h" >&6; }
19896 NEXT_FLOAT_H=$gl_cv_next_float_h
19898 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19900 gl_next_as_first_directive='<'float.h'>'
19902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19903 gl_next_as_first_directive=$gl_cv_next_float_h
19905 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
19912 if test -n "$FLOAT_H"; then
19913 GL_GENERATE_FLOAT_H_TRUE=
19914 GL_GENERATE_FLOAT_H_FALSE='#'
19916 GL_GENERATE_FLOAT_H_TRUE='#'
19917 GL_GENERATE_FLOAT_H_FALSE=
19922 if test $REPLACE_FLOAT_LDBL = 1; then
19931 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
19934 if test $REPLACE_ITOLD = 1; then
19943 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
19952 gl_fnmatch_required_lowercase=`
19953 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
19955 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
19957 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
19958 if eval \${$gl_fnmatch_cache_var+:} false; then :
19959 $as_echo_n "(cached) " >&6
19961 if test $gl_fnmatch_required = GNU; then
19962 gl_fnmatch_gnu_start=
19963 gl_fnmatch_gnu_end=
19965 gl_fnmatch_gnu_start='#if 0'
19966 gl_fnmatch_gnu_end='#endif'
19968 if test "$cross_compiling" = yes; then :
19969 eval "$gl_fnmatch_cache_var=\"guessing no\""
19971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19972 /* end confdefs.h. */
19973 #include <fnmatch.h>
19975 y (char const *pattern, char const *string, int flags)
19977 return fnmatch (pattern, string, flags) == 0;
19980 n (char const *pattern, char const *string, int flags)
19982 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19988 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19989 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19990 static char const A_1[] = { 'A' - 1, 0 };
19991 static char const A01[] = { 'A' + 1, 0 };
19992 static char const a_1[] = { 'a' - 1, 0 };
19993 static char const a01[] = { 'a' + 1, 0 };
19994 static char const bs_1[] = { '\\\\' - 1, 0 };
19995 static char const bs01[] = { '\\\\' + 1, 0 };
19997 if (!n ("a*", "", 0))
19999 if (!y ("a*", "abc", 0))
20001 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
20003 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
20005 if (!y ("a\\\\bc", "abc", 0))
20007 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
20009 if (!y ("*x", ".x", 0))
20011 if (!n ("*x", ".x", FNM_PERIOD))
20013 if (!y (Apat, "\\\\", 0))
20015 if (!y (Apat, "A", 0))
20017 if (!y (apat, "\\\\", 0))
20019 if (!y (apat, "a", 0))
20021 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
20023 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
20025 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
20027 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
20029 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
20031 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
20033 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
20035 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
20037 $gl_fnmatch_gnu_start
20038 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
20040 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
20042 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
20044 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
20046 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
20048 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
20050 $gl_fnmatch_gnu_end
20057 if ac_fn_c_try_run "$LINENO"; then :
20058 eval "$gl_fnmatch_cache_var=yes"
20060 eval "$gl_fnmatch_cache_var=no"
20062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20063 conftest.$ac_objext conftest.beam conftest.$ac_ext
20068 eval ac_res=\$$gl_fnmatch_cache_var
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20070 $as_echo "$ac_res" >&6; }
20071 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
20072 if test "$gl_fnmatch_result" = yes; then
20073 rm -f "$gl_source_base/fnmatch.h"
20075 FNMATCH_H=fnmatch.h
20078 if test -n "$FNMATCH_H"; then
20079 GL_GENERATE_FNMATCH_H_TRUE=
20080 GL_GENERATE_FNMATCH_H_FALSE='#'
20082 GL_GENERATE_FNMATCH_H_TRUE='#'
20083 GL_GENERATE_FNMATCH_H_FALSE=
20087 if test -n "$FNMATCH_H"; then
20096 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
20100 cat >>confdefs.h <<_ACEOF
20101 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
20105 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
20107 if test "x$ac_cv_have_decl_isblank" = xyes; then :
20113 cat >>confdefs.h <<_ACEOF
20114 #define HAVE_DECL_ISBLANK $ac_have_decl
20126 if test -n "$FNMATCH_H"; then
20135 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
20139 cat >>confdefs.h <<_ACEOF
20140 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
20144 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
20146 if test "x$ac_cv_have_decl_isblank" = xyes; then :
20152 cat >>confdefs.h <<_ACEOF
20153 #define HAVE_DECL_ISBLANK $ac_have_decl
20164 #if HAVE_STDIO_EXT_H
20165 # include <stdio_ext.h>
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
20169 $as_echo_n "checking for __fpending... " >&6; }
20170 if ${gl_cv_func___fpending+:} false; then :
20171 $as_echo_n "(cached) " >&6
20174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h. */
20180 return ! __fpending (stdin);
20185 if ac_fn_c_try_link "$LINENO"; then :
20186 gl_cv_func___fpending=yes
20188 gl_cv_func___fpending=no
20190 rm -f core conftest.err conftest.$ac_objext \
20191 conftest$ac_exeext conftest.$ac_ext
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
20195 $as_echo "$gl_cv_func___fpending" >&6; }
20196 if test $gl_cv_func___fpending = yes; then
20197 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
20199 if test "x$ac_cv_have_decl___fpending" = xyes; then :
20205 cat >>confdefs.h <<_ACEOF
20206 #define HAVE_DECL___FPENDING $ac_have_decl
20211 if test $gl_cv_func___fpending = no; then
20220 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
20224 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20225 if ${ac_cv_sys_pending_output_n_bytes+:} false; then :
20226 $as_echo_n "(cached) " >&6
20232 'fp->_IO_write_ptr - fp->_IO_write_base' \
20234 '# traditional Unix' \
20235 'fp->_ptr - fp->_base' \
20238 'fp->_p - fp->_bf._base' \
20240 '# SCO, Unixware' \
20241 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20244 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20247 'fp->__bufp - fp->__buffer' \
20249 '# old glibc iostream?' \
20250 'fp->_pptr - fp->_pbase' \
20253 'fp->_ptr - fp->_buffer' \
20256 'fp->_ptr - fp->_buf' \
20259 'fp->wp - fp->buf' \
20262 '(*fp)->_ptr - (*fp)->_base' \
20264 '# e.g., DGUX R4.11; the info is not available' \
20268 # Skip each embedded comment.
20269 case "$ac_expr" in '#'*) continue;; esac
20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h. */
20277 FILE *fp = stdin; (void) ($ac_expr);
20282 if ac_fn_c_try_compile "$LINENO"; then :
20286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287 test "$fp_done" = yes && break
20290 ac_cv_sys_pending_output_n_bytes=$ac_expr
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
20295 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
20297 cat >>confdefs.h <<_ACEOF
20298 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
20306 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
20310 if test $REPLACE_FSEEK = 1; then
20319 gl_LIBOBJS="$gl_LIBOBJS fseek.$ac_objext"
20333 $as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
20346 $as_echo_n "checking for fseeko... " >&6; }
20347 if ${gl_cv_func_fseeko+:} false; then :
20348 $as_echo_n "(cached) " >&6
20351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352 /* end confdefs.h. */
20358 fseeko (stdin, 0, 0);
20363 if ac_fn_c_try_link "$LINENO"; then :
20364 gl_cv_func_fseeko=yes
20366 gl_cv_func_fseeko=no
20368 rm -f core conftest.err conftest.$ac_objext \
20369 conftest$ac_exeext conftest.$ac_ext
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
20373 $as_echo "$gl_cv_func_fseeko" >&6; }
20376 if test $ac_cv_have_decl_fseeko = no; then
20380 if test $gl_cv_func_fseeko = no; then
20383 if test $WINDOWS_64_BIT_OFF_T = 1; then
20386 if test $gl_cv_var_stdin_large_offset = no; then
20392 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
20401 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
20404 for ac_func in _fseeki64
20406 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
20407 if test "x$ac_cv_func__fseeki64" = xyes; then :
20408 cat >>confdefs.h <<_ACEOF
20409 #define HAVE__FSEEKI64 1
20428 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
20436 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20441 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20449 if test $ac_cv_func_fchdir = no; then
20453 if test $HAVE_FCHDIR = 0; then
20454 case "$gl_cv_func_open_directory_works" in
20463 if test $REPLACE_FSTAT = 1; then
20472 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
20487 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
20497 if test $ac_cv_func_fstatat = no; then
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
20501 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
20502 if ${gl_cv_func_fstatat_zero_flag+:} false; then :
20503 $as_echo_n "(cached) " >&6
20505 if test "$cross_compiling" = yes; then :
20507 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
20508 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
20512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513 /* end confdefs.h. */
20516 #include <sys/stat.h>
20521 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
20525 if ac_fn_c_try_run "$LINENO"; then :
20526 gl_cv_func_fstatat_zero_flag=yes
20528 gl_cv_func_fstatat_zero_flag=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_func_fstatat_zero_flag" >&5
20537 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
20539 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
20541 *) REPLACE_FSTATAT=1
20542 case $gl_cv_func_fstatat_zero_flag in
20545 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
20553 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
20562 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
20576 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
20584 if test $ac_cv_func_futimens = no; then
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimens works" >&5
20588 $as_echo_n "checking whether futimens works... " >&6; }
20589 if ${gl_cv_func_futimens_works+:} false; then :
20590 $as_echo_n "(cached) " >&6
20592 if test "$cross_compiling" = yes; then :
20593 gl_cv_func_futimens_works="guessing no"
20595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h. */
20599 #include <sys/stat.h>
20600 #include <unistd.h>
20606 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
20607 int fd = creat ("conftest.file", 0600);
20609 if (fd < 0) return 1;
20611 if (futimens (AT_FDCWD, NULL) == 0) return 2;
20612 if (errno != EBADF) return 3;
20613 if (futimens (fd, ts)) return 4;
20615 ts[0].tv_nsec = UTIME_NOW;
20616 ts[1].tv_nsec = UTIME_OMIT;
20617 if (futimens (fd, ts)) return 5;
20618 if (fstat (fd, &st)) return 6;
20619 if (st.st_ctime < st.st_atime) return 7;
20625 if ac_fn_c_try_run "$LINENO"; then :
20626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20627 /* end confdefs.h. */
20630 /* The Linux kernel added futimens in 2.6.22, but has bugs with UTIME_OMIT
20631 in several file systems as recently as 2.6.32. Always replace futimens
20632 to support older kernels. */
20644 if ac_fn_c_try_compile "$LINENO"; then :
20645 gl_cv_func_futimens_works=yes
20647 gl_cv_func_futimens_works="needs runtime check"
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651 gl_cv_func_futimens_works=no
20653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20654 conftest.$ac_objext conftest.beam conftest.$ac_ext
20657 rm -f conftest.file
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimens_works" >&5
20660 $as_echo "$gl_cv_func_futimens_works" >&6; }
20661 if test "$gl_cv_func_futimens_works" != yes; then
20666 if test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1; then
20675 gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
20689 $as_echo "#define GNULIB_TEST_FUTIMENS 1" >>confdefs.h
20701 gl_cv_func_getcwd_path_max=yes
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
20710 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
20711 if ${gl_cv_func_getcwd_path_max+:} false; then :
20712 $as_echo_n "(cached) " >&6
20714 # Arrange for deletion of the temporary directory this test creates.
20715 ac_clean_files="$ac_clean_files confdir3"
20716 if test "$cross_compiling" = yes; then :
20718 aix*) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
20719 *) gl_cv_func_getcwd_path_max=no;;
20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20726 #include <stdlib.h>
20728 # include <unistd.h>
20730 # include <direct.h>
20732 #include <string.h>
20733 #include <limits.h>
20734 #include <sys/stat.h>
20735 #include <sys/types.h>
20739 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20741 # include <unistd.h>
20743 #include <limits.h>
20744 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20745 # include <sys/param.h>
20747 #if !defined PATH_MAX && defined MAXPATHLEN
20748 # define PATH_MAX MAXPATHLEN
20752 # define PATH_MAX 1024
20754 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20756 # define PATH_MAX 260
20761 # define AT_FDCWD 0
20763 #ifdef ENAMETOOLONG
20764 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
20766 # define is_ENAMETOOLONG(x) 0
20769 /* Use the getcwd function, not any macro. */
20772 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
20776 # define S_IRWXU 0700
20779 /* The length of this name must be 8. */
20780 #define DIR_NAME "confdir3"
20781 #define DIR_NAME_LEN 8
20782 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
20784 /* The length of "../". */
20785 #define DOTDOTSLASH_LEN 3
20787 /* Leftover bytes in the buffer, to work around library or OS bugs. */
20788 #define BUF_SLOP 20
20794 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
20795 at least not on a local file system. And if we were to start worrying
20796 about remote file systems, we'd have to enable the wrapper function
20797 all of the time, just to be safe. That's not worth the cost. */
20799 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
20800 - DIR_NAME_SIZE - BUF_SLOP) \
20802 /* FIXME: Assuming there's a system for which this is true,
20803 this should be done in a compile test. */
20806 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
20807 + DIR_NAME_SIZE + BUF_SLOP];
20808 char *cwd = getcwd (buf, PATH_MAX);
20809 size_t initial_cwd_len;
20812 size_t n_chdirs = 0;
20817 cwd_len = initial_cwd_len = strlen (cwd);
20821 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
20824 cwd_len += DIR_NAME_SIZE;
20825 /* If mkdir or chdir fails, it could be that this system cannot create
20826 any file with an absolute name longer than PATH_MAX, such as cygwin.
20827 If so, leave fail as 0, because the current working directory can't
20828 be too long for getcwd if it can't even be created. For other
20829 errors, be pessimistic and consider that as a failure, too. */
20830 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
20832 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20837 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
20841 c = getcwd (buf, PATH_MAX);
20842 if (!c && errno == ENOENT)
20852 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20858 /* Our replacement needs to be able to stat() long ../../paths,
20859 so generate a path larger than PATH_MAX to check,
20860 avoiding the replacement if we can't stat(). */
20861 c = getcwd (buf, cwd_len + 1);
20862 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
20869 if (dotdot_max <= cwd_len - initial_cwd_len)
20871 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
20873 c = getcwd (buf, cwd_len + 1);
20876 if (! (errno == ERANGE || errno == ENOENT
20877 || is_ENAMETOOLONG (errno)))
20882 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
20890 if (c && strlen (c) != cwd_len)
20898 /* Leaving behind such a deep directory is not polite.
20899 So clean up here, right away, even though the driving
20900 shell script would also clean up. */
20904 /* Try rmdir first, in case the chdir failed. */
20906 for (i = 0; i <= n_chdirs; i++)
20908 if (chdir ("..") < 0)
20910 if (rmdir (DIR_NAME) != 0)
20920 if ac_fn_c_try_run "$LINENO"; then :
20921 gl_cv_func_getcwd_path_max=yes
20924 10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
20925 31) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
20926 32) gl_cv_func_getcwd_path_max='yes, but with shorter paths';;
20927 *) gl_cv_func_getcwd_path_max=no;;
20930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20931 conftest.$ac_objext conftest.beam conftest.$ac_ext
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
20937 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
20939 case "$gl_cv_func_getcwd_null" in
20945 for ac_func in getpagesize
20947 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20948 if test "x$ac_cv_func_getpagesize" = xyes; then :
20949 cat >>confdefs.h <<_ACEOF
20950 #define HAVE_GETPAGESIZE 1
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
20957 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
20958 if ${gl_cv_func_getcwd_abort_bug+:} false; then :
20959 $as_echo_n "(cached) " >&6
20961 # Remove any remnants of a previous test.
20962 rm -rf confdir-14B---
20963 # Arrange for deletion of the temporary directory this test creates.
20964 ac_clean_files="$ac_clean_files confdir-14B---"
20965 if test "$cross_compiling" = yes; then :
20966 gl_cv_func_getcwd_abort_bug=yes
20968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20969 /* end confdefs.h. */
20972 #include <stdlib.h>
20974 # include <unistd.h>
20975 #else /* on Windows with MSVC */
20976 # include <direct.h>
20978 #include <string.h>
20979 #include <sys/stat.h>
20982 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20984 # include <unistd.h>
20986 #include <limits.h>
20987 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20988 # include <sys/param.h>
20990 #if !defined PATH_MAX && defined MAXPATHLEN
20991 # define PATH_MAX MAXPATHLEN
20995 # define PATH_MAX 1024
20997 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20999 # define PATH_MAX 260
21003 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
21007 # define S_IRWXU 0700
21010 /* FIXME: skip the run-test altogether on systems without getpagesize. */
21011 #if ! HAVE_GETPAGESIZE
21012 # define getpagesize() 0
21015 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
21016 the 16kB pagesize on ia64 linux. Those conditions make the code below
21017 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
21018 #define TARGET_LEN (5 * 1024)
21024 size_t initial_cwd_len;
21027 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
21028 this relatively expensive and invasive test if that's not true. */
21030 int bug_possible = PATH_MAX < getpagesize ();
21032 int bug_possible = 0;
21034 if (! bug_possible)
21037 cwd = getcwd (NULL, 0);
21041 initial_cwd_len = strlen (cwd);
21046 static char const dir_name[] = "confdir-14B---";
21047 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
21048 / sizeof dir_name);
21050 for (d = 0; d < desired_depth; d++)
21052 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
21054 if (! (errno == ERANGE || errno == ENAMETOOLONG
21055 || errno == ENOENT))
21056 fail = 3; /* Unable to construct deep hierarchy. */
21061 /* If libc has the bug in question, this invocation of getcwd
21062 results in a failed assertion. */
21063 cwd = getcwd (NULL, 0);
21065 fail = 4; /* getcwd didn't assert, but it failed for a long name
21066 where the answer could have been learned. */
21069 /* Call rmdir first, in case the above chdir failed. */
21073 if (chdir ("..") < 0)
21086 if ac_fn_c_try_run "$LINENO"; then :
21087 gl_cv_func_getcwd_abort_bug=no
21090 if test $ret -ge 128 || test $ret = 4; then
21091 gl_cv_func_getcwd_abort_bug=yes
21093 gl_cv_func_getcwd_abort_bug=no
21096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21097 conftest.$ac_objext conftest.beam conftest.$ac_ext
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
21103 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
21104 if test $gl_cv_func_getcwd_abort_bug = yes; then :
21112 case "$gl_cv_func_getcwd_path_max" in
21113 "no"|"no, it has the AIX bug") ;;
21116 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
21120 case "$gl_cv_func_getcwd_path_max" in
21121 "no, but it is partly working")
21123 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
21126 "yes, but with shorter paths")
21128 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
21133 if { case "$gl_cv_func_getcwd_null" in *yes) false;; *) true;; esac; } \
21134 || test $gl_cv_func_getcwd_posix_signature != yes \
21135 || { case "$gl_cv_func_getcwd_path_max" in *yes*) false;; *) true;; esac; } \
21136 || test $gl_abort_bug = yes; then
21140 if test $REPLACE_GETCWD = 1; then
21149 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
21159 cat >>confdefs.h <<_ACEOF
21160 #define GNULIB_GETCWD 1
21175 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
21184 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
21191 if test $REPLACE_GETCWD = 1; then
21200 gl_LIBOBJS="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
21214 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
21226 if test $ac_cv_func_getdelim = yes; then
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
21229 $as_echo_n "checking for working getdelim function... " >&6; }
21230 if ${gl_cv_func_working_getdelim+:} false; then :
21231 $as_echo_n "(cached) " >&6
21233 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
21234 if test "$cross_compiling" = yes; then :
21235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21236 /* end confdefs.h. */
21238 #include <features.h>
21239 #ifdef __GNU_LIBRARY__
21240 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
21246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21247 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
21248 gl_cv_func_working_getdelim="guessing yes"
21250 gl_cv_func_working_getdelim="guessing no"
21256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21257 /* end confdefs.h. */
21259 # include <stdio.h>
21260 # include <stdlib.h>
21261 # include <string.h>
21264 FILE *in = fopen ("./conftest.data", "r");
21268 /* Test result for a NULL buffer and a zero size.
21269 Based on a test program from Karl Heuer. */
21272 int len = getdelim (&line, &siz, '\n', in);
21273 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
21277 /* Test result for a NULL buffer and a non-zero size.
21278 This crashes on FreeBSD 8.0. */
21280 size_t siz = (size_t)(~0) / 4;
21281 if (getdelim (&line, &siz, '\n', in) == -1)
21288 if ac_fn_c_try_run "$LINENO"; then :
21289 gl_cv_func_working_getdelim=yes
21291 gl_cv_func_working_getdelim=no
21293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21294 conftest.$ac_objext conftest.beam conftest.$ac_ext
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
21299 $as_echo "$gl_cv_func_working_getdelim" >&6; }
21300 case "$gl_cv_func_working_getdelim" in
21309 if test $ac_cv_have_decl_getdelim = no; then
21310 HAVE_DECL_GETDELIM=0
21313 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
21322 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
21325 for ac_func in flockfile funlockfile
21327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21328 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21329 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21330 cat >>confdefs.h <<_ACEOF
21331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21337 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
21338 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
21344 cat >>confdefs.h <<_ACEOF
21345 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
21361 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
21370 if test $ac_cv_func_getdtablesize = yes &&
21371 test $ac_cv_have_decl_getdtablesize = yes; then
21372 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
21373 # up to an unchangeable hard limit; all other platforms correctly
21374 # require setrlimit before getdtablesize() can report a larger value.
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
21376 $as_echo_n "checking whether getdtablesize works... " >&6; }
21377 if ${gl_cv_func_getdtablesize_works+:} false; then :
21378 $as_echo_n "(cached) " >&6
21380 if test "$cross_compiling" = yes; then :
21382 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
21383 gl_cv_func_getdtablesize_works="guessing no" ;;
21384 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
21387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21388 /* end confdefs.h. */
21390 #include <unistd.h>
21394 int size = getdtablesize();
21395 if (dup2 (0, getdtablesize()) != -1)
21397 if (size != getdtablesize())
21404 if ac_fn_c_try_run "$LINENO"; then :
21405 gl_cv_func_getdtablesize_works=yes
21407 gl_cv_func_getdtablesize_works=no
21409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21410 conftest.$ac_objext conftest.beam conftest.$ac_ext
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
21416 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
21417 case "$gl_cv_func_getdtablesize_works" in
21419 *) REPLACE_GETDTABLESIZE=1 ;;
21422 HAVE_GETDTABLESIZE=0
21425 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
21434 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
21443 GNULIB_GETDTABLESIZE=1
21449 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
21458 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
21459 if test "x$ac_cv_func_getgroups" = xyes; then :
21464 # If we don't yet have getgroups, see if it's in -lbsd.
21465 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
21467 if test $ac_cv_func_getgroups = no; then
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
21469 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
21470 if ${ac_cv_lib_bsd_getgroups+:} false; then :
21471 $as_echo_n "(cached) " >&6
21473 ac_check_lib_save_LIBS=$LIBS
21475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21476 /* end confdefs.h. */
21478 /* Override any GCC internal prototype to avoid an error.
21479 Use char because int might match the return type of a GCC
21480 builtin and then its argument prototype would still apply. */
21488 return getgroups ();
21493 if ac_fn_c_try_link "$LINENO"; then :
21494 ac_cv_lib_bsd_getgroups=yes
21496 ac_cv_lib_bsd_getgroups=no
21498 rm -f core conftest.err conftest.$ac_objext \
21499 conftest$ac_exeext conftest.$ac_ext
21500 LIBS=$ac_check_lib_save_LIBS
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
21503 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
21504 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
21505 GETGROUPS_LIB=-lbsd
21510 # Run the program to test the functionality of the system-supplied
21511 # getgroups function only if there is such a function.
21512 if test $ac_cv_func_getgroups = yes; then
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
21514 $as_echo_n "checking for working getgroups... " >&6; }
21515 if ${ac_cv_func_getgroups_works+:} false; then :
21516 $as_echo_n "(cached) " >&6
21518 if test "$cross_compiling" = yes; then :
21519 case "$host_os" in # ((
21520 # Guess yes on glibc systems.
21521 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
21522 # If we don't know, assume the worst.
21523 *) ac_cv_func_getgroups_works="guessing no" ;;
21527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21528 /* end confdefs.h. */
21529 $ac_includes_default
21533 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
21534 return getgroups (0, 0) == -1;
21540 if ac_fn_c_try_run "$LINENO"; then :
21541 ac_cv_func_getgroups_works=yes
21543 ac_cv_func_getgroups_works=no
21545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21546 conftest.$ac_objext conftest.beam conftest.$ac_ext
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
21552 $as_echo "$ac_cv_func_getgroups_works" >&6; }
21554 ac_cv_func_getgroups_works=no
21556 case "$ac_cv_func_getgroups_works" in
21559 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
21565 if test $ac_cv_func_getgroups != yes; then
21568 if test "$ac_cv_type_getgroups" != gid_t \
21569 || { case "$ac_cv_func_getgroups_works" in
21574 REPLACE_GETGROUPS=1
21576 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
21580 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
21581 if ${gl_cv_func_getgroups_works+:} false; then :
21582 $as_echo_n "(cached) " >&6
21584 if test "$cross_compiling" = yes; then :
21586 # Guess yes on glibc systems.
21587 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
21588 # If we don't know, assume the worst.
21589 *) gl_cv_func_getgroups_works="guessing no" ;;
21593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21594 /* end confdefs.h. */
21595 $ac_includes_default
21599 int size = getgroups (0, 0);
21600 gid_t *list = malloc (size * sizeof *list);
21601 return getgroups (-1, list) != -1;
21606 if ac_fn_c_try_run "$LINENO"; then :
21607 gl_cv_func_getgroups_works=yes
21609 gl_cv_func_getgroups_works=no
21611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21612 conftest.$ac_objext conftest.beam conftest.$ac_ext
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
21617 $as_echo "$gl_cv_func_getgroups_works" >&6; }
21618 case "$gl_cv_func_getgroups_works" in
21620 *) REPLACE_GETGROUPS=1 ;;
21624 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
21626 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
21635 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
21649 $as_echo "#define GNULIB_TEST_GETGROUPS 1" >>confdefs.h
21660 gl_getline_needs_run_time_check=no
21661 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
21662 if test "x$ac_cv_func_getline" = xyes; then :
21663 gl_getline_needs_run_time_check=yes
21665 am_cv_func_working_getline=no
21668 if test $gl_getline_needs_run_time_check = yes; then
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
21670 $as_echo_n "checking for working getline function... " >&6; }
21671 if ${am_cv_func_working_getline+:} false; then :
21672 $as_echo_n "(cached) " >&6
21674 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
21675 if test "$cross_compiling" = yes; then :
21676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21677 /* end confdefs.h. */
21679 #include <features.h>
21680 #ifdef __GNU_LIBRARY__
21681 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
21687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21688 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
21689 am_cv_func_working_getline="guessing yes"
21691 am_cv_func_working_getline="guessing no"
21697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21698 /* end confdefs.h. */
21700 # include <stdio.h>
21701 # include <stdlib.h>
21702 # include <string.h>
21705 FILE *in = fopen ("./conftest.data", "r");
21709 /* Test result for a NULL buffer and a zero size.
21710 Based on a test program from Karl Heuer. */
21713 int len = getline (&line, &siz, in);
21714 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
21718 /* Test result for a NULL buffer and a non-zero size.
21719 This crashes on FreeBSD 8.0. */
21721 size_t siz = (size_t)(~0) / 4;
21722 if (getline (&line, &siz, in) == -1)
21729 if ac_fn_c_try_run "$LINENO"; then :
21730 am_cv_func_working_getline=yes
21732 am_cv_func_working_getline=no
21734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21735 conftest.$ac_objext conftest.beam conftest.$ac_ext
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
21740 $as_echo "$am_cv_func_working_getline" >&6; }
21743 if test $ac_cv_have_decl_getline = no; then
21744 HAVE_DECL_GETLINE=0
21747 case "$am_cv_func_working_getline" in
21753 if test $REPLACE_GETLINE = 1; then
21762 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
21779 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
21788 if test $REPLACE_GETOPT = 1; then
21797 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21807 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21812 GNULIB_GL_UNISTD_H_GETOPT=1
21817 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
21827 if test $REPLACE_GETOPT = 1; then
21831 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21837 if test $REPLACE_GETOPT = 1; then
21846 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21856 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21861 GNULIB_GL_UNISTD_H_GETOPT=1
21867 for ac_func in getpagesize
21869 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21870 if test "x$ac_cv_func_getpagesize" = xyes; then :
21871 cat >>confdefs.h <<_ACEOF
21872 #define HAVE_GETPAGESIZE 1
21878 if test $ac_cv_func_getpagesize = no; then
21880 for ac_header in OS.h
21882 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
21883 if test "x$ac_cv_header_OS_h" = xyes; then :
21884 cat >>confdefs.h <<_ACEOF
21885 #define HAVE_OS_H 1
21892 if test $ac_cv_header_OS_h = yes; then
21895 for ac_header in sys/param.h
21897 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
21898 if test "x$ac_cv_header_sys_param_h" = xyes; then :
21899 cat >>confdefs.h <<_ACEOF
21900 #define HAVE_SYS_PARAM_H 1
21907 if test $ac_cv_header_sys_param_h = yes; then
21913 REPLACE_GETPAGESIZE=1
21916 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
21917 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
21920 HAVE_DECL_GETPAGESIZE=0
21924 if test $REPLACE_GETPAGESIZE = 1; then
21933 gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
21941 GNULIB_GETPAGESIZE=1
21947 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
21965 gl_gettimeofday_timezone=void
21966 if test $ac_cv_func_gettimeofday != yes; then
21967 HAVE_GETTIMEOFDAY=0
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21973 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21974 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
21975 $as_echo_n "(cached) " >&6
21977 if test "$cross_compiling" = yes; then :
21978 # When cross-compiling:
21980 # Guess all is fine on glibc systems.
21981 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21982 # If we don't know, assume the worst.
21983 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21988 /* end confdefs.h. */
21989 #include <string.h>
21990 #include <sys/time.h>
21992 #include <stdlib.h>
22000 struct tm saved_lt;
22002 lt = localtime (&t);
22004 gettimeofday (&tv, NULL);
22005 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22011 if ac_fn_c_try_run "$LINENO"; then :
22012 gl_cv_func_gettimeofday_clobber=no
22014 gl_cv_func_gettimeofday_clobber=yes
22016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22017 conftest.$ac_objext conftest.beam conftest.$ac_ext
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22022 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22024 case "$gl_cv_func_gettimeofday_clobber" in
22026 REPLACE_GETTIMEOFDAY=1
22029 REPLACE_LOCALTIME=1
22032 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22038 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22039 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
22040 $as_echo_n "(cached) " >&6
22042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22043 /* end confdefs.h. */
22044 #include <sys/time.h>
22046 int gettimeofday (struct timeval *restrict, void *restrict);
22051 /* glibc uses struct timezone * rather than the POSIX void *
22052 if _GNU_SOURCE is defined. However, since the only portable
22053 use of gettimeofday uses NULL as the second parameter, and
22054 since the glibc definition is actually more typesafe, it is
22055 not worth wrapping this to get a compliant signature. */
22056 int (*f) (struct timeval *restrict, void *restrict)
22059 return !(x | c.tv_sec | c.tv_usec);
22065 if ac_fn_c_try_compile "$LINENO"; then :
22066 gl_cv_func_gettimeofday_posix_signature=yes
22068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22069 /* end confdefs.h. */
22070 #include <sys/time.h>
22071 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22081 if ac_fn_c_try_compile "$LINENO"; then :
22082 gl_cv_func_gettimeofday_posix_signature=almost
22084 gl_cv_func_gettimeofday_posix_signature=no
22086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22091 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22092 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22093 gl_gettimeofday_timezone='struct timezone'
22094 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22095 REPLACE_GETTIMEOFDAY=1
22097 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22098 REPLACE_GETTIMEOFDAY=1
22103 cat >>confdefs.h <<_ACEOF
22104 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22108 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22117 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22120 for ac_header in sys/timeb.h
22122 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22123 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
22124 cat >>confdefs.h <<_ACEOF
22125 #define HAVE_SYS_TIMEB_H 1
22132 for ac_func in _ftime
22134 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22135 if test "x$ac_cv_func__ftime" = xyes; then :
22136 cat >>confdefs.h <<_ACEOF
22137 #define HAVE__FTIME 1
22150 GNULIB_GETTIMEOFDAY=1
22156 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
22165 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
22166 if test "x$ac_cv_func_group_member" = xyes; then :
22170 HAVE_GROUP_MEMBER=0
22175 if test $HAVE_GROUP_MEMBER = 0; then
22184 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
22195 GNULIB_GROUP_MEMBER=1
22201 $as_echo "#define GNULIB_TEST_GROUP_MEMBER 1" >>confdefs.h
22224 if test -n "$STDINT_H"; then
22225 PRIPTR_PREFIX='"l"'
22227 for glpfx in '' l ll I64; do
22229 '') gltype1='int';;
22230 l) gltype1='long int';;
22231 ll) gltype1='long long int';;
22232 I64) gltype1='__int64';;
22234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22235 /* end confdefs.h. */
22236 #include <stdint.h>
22237 extern intptr_t foo;
22238 extern $gltype1 foo;
22247 if ac_fn_c_try_compile "$LINENO"; then :
22248 PRIPTR_PREFIX='"'$glpfx'"'
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22251 test -n "$PRIPTR_PREFIX" && break
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
22258 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
22259 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
22260 $as_echo_n "(cached) " >&6
22262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22263 /* end confdefs.h. */
22264 /* Work also in C++ mode. */
22265 #define __STDC_LIMIT_MACROS 1
22267 /* Work if build is not clean. */
22268 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22270 #include <limits.h>
22272 #include <stdint.h>
22275 #if defined INT32_MAX && defined INTMAX_MAX
22276 #define CONDITION (INT32_MAX < INTMAX_MAX)
22277 #elif HAVE_LONG_LONG_INT
22278 #define CONDITION (sizeof (int) < sizeof (long long int))
22280 #define CONDITION 0
22282 int test[CONDITION ? 1 : -1];
22291 if ac_fn_c_try_compile "$LINENO"; then :
22292 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
22294 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
22296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
22299 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
22300 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
22301 INT32_MAX_LT_INTMAX_MAX=1;
22303 INT32_MAX_LT_INTMAX_MAX=0;
22307 if test $APPLE_UNIVERSAL_BUILD = 0; then
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
22310 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
22311 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
22312 $as_echo_n "(cached) " >&6
22314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22315 /* end confdefs.h. */
22316 /* Work also in C++ mode. */
22317 #define __STDC_LIMIT_MACROS 1
22319 /* Work if build is not clean. */
22320 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22322 #include <limits.h>
22324 #include <stdint.h>
22327 #if defined INT64_MAX
22328 #define CONDITION (INT64_MAX == LONG_MAX)
22329 #elif HAVE_LONG_LONG_INT
22330 #define CONDITION (sizeof (long long int) == sizeof (long int))
22332 #define CONDITION 0
22334 int test[CONDITION ? 1 : -1];
22343 if ac_fn_c_try_compile "$LINENO"; then :
22344 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
22346 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
22348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
22351 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
22352 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
22353 INT64_MAX_EQ_LONG_MAX=1;
22355 INT64_MAX_EQ_LONG_MAX=0;
22360 INT64_MAX_EQ_LONG_MAX=-1
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
22364 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
22365 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
22366 $as_echo_n "(cached) " >&6
22368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22369 /* end confdefs.h. */
22370 /* Work also in C++ mode. */
22371 #define __STDC_LIMIT_MACROS 1
22373 /* Work if build is not clean. */
22374 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22376 #include <limits.h>
22378 #include <stdint.h>
22381 #if defined UINT32_MAX && defined UINTMAX_MAX
22382 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
22383 #elif HAVE_LONG_LONG_INT
22384 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
22386 #define CONDITION 0
22388 int test[CONDITION ? 1 : -1];
22397 if ac_fn_c_try_compile "$LINENO"; then :
22398 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
22400 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
22402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
22405 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
22406 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
22407 UINT32_MAX_LT_UINTMAX_MAX=1;
22409 UINT32_MAX_LT_UINTMAX_MAX=0;
22413 if test $APPLE_UNIVERSAL_BUILD = 0; then
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
22416 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
22417 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
22418 $as_echo_n "(cached) " >&6
22420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22421 /* end confdefs.h. */
22422 /* Work also in C++ mode. */
22423 #define __STDC_LIMIT_MACROS 1
22425 /* Work if build is not clean. */
22426 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22428 #include <limits.h>
22430 #include <stdint.h>
22433 #if defined UINT64_MAX
22434 #define CONDITION (UINT64_MAX == ULONG_MAX)
22435 #elif HAVE_LONG_LONG_INT
22436 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
22438 #define CONDITION 0
22440 int test[CONDITION ? 1 : -1];
22449 if ac_fn_c_try_compile "$LINENO"; then :
22450 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
22452 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
22454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
22457 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
22458 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
22459 UINT64_MAX_EQ_ULONG_MAX=1;
22461 UINT64_MAX_EQ_ULONG_MAX=0;
22466 UINT64_MAX_EQ_ULONG_MAX=-1
22476 ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
22477 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22479 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
22480 before <wchar.h>. */
22481 #include <stddef.h>
22485 #include <wctype.h>
22488 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
22494 cat >>confdefs.h <<_ACEOF
22495 #define HAVE_DECL_ISWBLANK $ac_have_decl
22498 if test $ac_cv_func_iswblank = no; then
22500 if test $ac_cv_have_decl_iswblank = yes; then
22504 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
22507 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
22513 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
22516 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
22525 gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
22540 $as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
22558 if test $gl_cv_have_include_next = yes; then
22559 gl_cv_next_langinfo_h='<'langinfo.h'>'
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
22562 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
22563 if ${gl_cv_next_langinfo_h+:} false; then :
22564 $as_echo_n "(cached) " >&6
22567 if test $ac_cv_header_langinfo_h = yes; then
22572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22573 /* end confdefs.h. */
22574 #include <langinfo.h>
22577 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22578 *) gl_absname_cpp="$ac_cpp" ;;
22583 gl_dirsep_regex='[/\\]'
22586 gl_dirsep_regex='\/'
22589 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22590 gl_header_literal_regex=`echo 'langinfo.h' \
22591 | sed -e "$gl_make_literal_regex_sed"`
22592 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22593 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22599 gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22600 sed -n "$gl_absolute_header_sed"`
22602 gl_header=$gl_cv_absolute_langinfo_h
22603 gl_cv_next_langinfo_h='"'$gl_header'"'
22605 gl_cv_next_langinfo_h='<'langinfo.h'>'
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
22611 $as_echo "$gl_cv_next_langinfo_h" >&6; }
22613 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
22615 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22616 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22617 gl_next_as_first_directive='<'langinfo.h'>'
22619 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22620 gl_next_as_first_directive=$gl_cv_next_langinfo_h
22622 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
22628 HAVE_LANGINFO_CODESET=0
22629 HAVE_LANGINFO_T_FMT_AMPM=0
22630 HAVE_LANGINFO_ERA=0
22631 HAVE_LANGINFO_YESEXPR=0
22633 if test $ac_cv_header_langinfo_h = yes; then
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
22636 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
22637 if ${gl_cv_header_langinfo_codeset+:} false; then :
22638 $as_echo_n "(cached) " >&6
22640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22641 /* end confdefs.h. */
22642 #include <langinfo.h>
22653 if ac_fn_c_try_compile "$LINENO"; then :
22654 gl_cv_header_langinfo_codeset=yes
22656 gl_cv_header_langinfo_codeset=no
22658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
22662 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
22663 if test $gl_cv_header_langinfo_codeset = yes; then
22664 HAVE_LANGINFO_CODESET=1
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
22667 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
22668 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
22669 $as_echo_n "(cached) " >&6
22671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h. */
22673 #include <langinfo.h>
22674 int a = T_FMT_AMPM;
22684 if ac_fn_c_try_compile "$LINENO"; then :
22685 gl_cv_header_langinfo_t_fmt_ampm=yes
22687 gl_cv_header_langinfo_t_fmt_ampm=no
22689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
22693 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
22694 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
22695 HAVE_LANGINFO_T_FMT_AMPM=1
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
22698 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
22699 if ${gl_cv_header_langinfo_era+:} false; then :
22700 $as_echo_n "(cached) " >&6
22702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703 /* end confdefs.h. */
22704 #include <langinfo.h>
22715 if ac_fn_c_try_compile "$LINENO"; then :
22716 gl_cv_header_langinfo_era=yes
22718 gl_cv_header_langinfo_era=no
22720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
22724 $as_echo "$gl_cv_header_langinfo_era" >&6; }
22725 if test $gl_cv_header_langinfo_era = yes; then
22726 HAVE_LANGINFO_ERA=1
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
22729 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
22730 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
22731 $as_echo_n "(cached) " >&6
22733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22734 /* end confdefs.h. */
22735 #include <langinfo.h>
22746 if ac_fn_c_try_compile "$LINENO"; then :
22747 gl_cv_header_langinfo_yesexpr=yes
22749 gl_cv_header_langinfo_yesexpr=no
22751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
22755 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
22756 if test $gl_cv_header_langinfo_yesexpr = yes; then
22757 HAVE_LANGINFO_YESEXPR=1
22769 for gl_func in nl_langinfo; do
22770 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22772 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22773 if eval \${$as_gl_Symbol+:} false; then :
22774 $as_echo_n "(cached) " >&6
22776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777 /* end confdefs.h. */
22778 #include <langinfo.h>
22789 if ac_fn_c_try_compile "$LINENO"; then :
22790 eval "$as_gl_Symbol=yes"
22792 eval "$as_gl_Symbol=no"
22794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22796 eval ac_res=\$$as_gl_Symbol
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22798 $as_echo "$ac_res" >&6; }
22799 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22800 cat >>confdefs.h <<_ACEOF
22801 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22804 eval ac_cv_have_decl_$gl_func=yes
22814 for ac_func in lchown
22816 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
22817 if test "x$ac_cv_func_lchown" = xyes; then :
22818 cat >>confdefs.h <<_ACEOF
22819 #define HAVE_LCHOWN 1
22825 if test $ac_cv_func_lchown = no; then
22828 case "$gl_cv_func_chown_slash_works" in
22834 case "$gl_cv_func_chown_ctime_works" in
22842 if test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1; then
22851 gl_LIBOBJS="$gl_LIBOBJS lchown.$ac_objext"
22865 $as_echo "#define GNULIB_TEST_LCHOWN 1" >>confdefs.h
22872 if test $ac_cv_func_link = no; then
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link obeys POSIX" >&5
22876 $as_echo_n "checking whether link obeys POSIX... " >&6; }
22877 if ${gl_cv_func_link_works+:} false; then :
22878 $as_echo_n "(cached) " >&6
22881 # Assume that if we have lstat, we can also check symlinks.
22882 if test $ac_cv_func_lstat = yes; then
22883 ln -s conftest.a conftest.lnk
22885 if test "$cross_compiling" = yes; then :
22887 # Guess yes on glibc systems.
22888 *-gnu*) gl_cv_func_link_works="guessing yes" ;;
22889 # If we don't know, assume the worst.
22890 *) gl_cv_func_link_works="guessing no" ;;
22894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22895 /* end confdefs.h. */
22896 #include <unistd.h>
22902 if (!link ("conftest.a", "conftest.b/"))
22905 if (!link ("conftest.lnk/", "conftest.b"))
22907 if (rename ("conftest.a", "conftest.b"))
22909 if (!link ("conftest.b", "conftest.lnk"))
22918 if ac_fn_c_try_run "$LINENO"; then :
22919 gl_cv_func_link_works=yes
22921 gl_cv_func_link_works=no
22923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22924 conftest.$ac_objext conftest.beam conftest.$ac_ext
22927 rm -f conftest.a conftest.b conftest.lnk
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_link_works" >&5
22930 $as_echo "$gl_cv_func_link_works" >&6; }
22931 case "$gl_cv_func_link_works" in
22939 if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
22948 gl_LIBOBJS="$gl_LIBOBJS link.$ac_objext"
22962 $as_echo "#define GNULIB_TEST_LINK 1" >>confdefs.h
22967 gl_link_follows_symlinks=0 # assume GNU behavior
22968 if test $ac_cv_func_readlink = yes; then
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __xpg4" >&5
22970 $as_echo_n "checking for __xpg4... " >&6; }
22971 if ${gl_cv_have___xpg4+:} false; then :
22972 $as_echo_n "(cached) " >&6
22974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22975 /* end confdefs.h. */
22985 if ac_fn_c_try_link "$LINENO"; then :
22986 gl_cv_have___xpg4=yes
22988 gl_cv_have___xpg4=no
22990 rm -f core conftest.err conftest.$ac_objext \
22991 conftest$ac_exeext conftest.$ac_ext
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___xpg4" >&5
22995 $as_echo "$gl_cv_have___xpg4" >&6; }
22996 if test $gl_cv_have___xpg4 = yes; then
22997 gl_link_follows_symlinks=-1
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link(2) dereferences a symlink" >&5
23000 $as_echo_n "checking whether link(2) dereferences a symlink... " >&6; }
23001 if ${gl_cv_func_link_follows_symlink+:} false; then :
23002 $as_echo_n "(cached) " >&6
23005 # Create a regular file.
23006 echo > conftest.file
23007 if test "$cross_compiling" = yes; then :
23009 # On glibc/Linux we know the result.
23010 linux*-gnu*) gl_cv_func_link_follows_symlink="guessing no" ;;
23011 # Otherwise, we don't know.
23012 *) gl_cv_func_link_follows_symlink=unknown ;;
23016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23017 /* end confdefs.h. */
23019 # include <sys/types.h>
23020 # include <sys/stat.h>
23021 # include <unistd.h>
23022 # include <stdlib.h>
23024 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
23025 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
23026 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
23031 const char *file = "conftest.file";
23032 const char *sym = "conftest.sym";
23033 const char *hard = "conftest.hard";
23034 struct stat sb_file, sb_hard;
23036 /* Create a symlink to the regular file. */
23037 if (symlink (file, sym))
23040 /* Create a hard link to that symlink. */
23041 if (link (sym, hard))
23044 if (lstat (hard, &sb_hard))
23046 if (lstat (file, &sb_file))
23049 /* If the dev/inode of hard and file are the same, then
23050 the link call followed the symlink. */
23051 return SAME_INODE (sb_hard, sb_file) ? 1 : 0;
23055 if ac_fn_c_try_run "$LINENO"; then :
23056 gl_cv_func_link_follows_symlink=no
23058 gl_cv_func_link_follows_symlink=yes
23060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23061 conftest.$ac_objext conftest.beam conftest.$ac_ext
23064 rm -f conftest.file conftest.sym conftest.hard
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_link_follows_symlink" >&5
23068 $as_echo "$gl_cv_func_link_follows_symlink" >&6; }
23069 case "$gl_cv_func_link_follows_symlink" in
23070 *yes) gl_link_follows_symlinks=1 ;;
23071 *no) ;; # already defaulted to 0
23072 *) gl_link_follows_symlinks=-2 ;;
23077 cat >>confdefs.h <<_ACEOF
23078 #define LINK_FOLLOWS_SYMLINKS $gl_link_follows_symlinks
23089 if test $ac_cv_func_linkat = no; then
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linkat() can link symlinks" >&5
23093 $as_echo_n "checking whether linkat() can link symlinks... " >&6; }
23094 if ${gl_cv_func_linkat_nofollow+:} false; then :
23095 $as_echo_n "(cached) " >&6
23097 rm -rf conftest.l1 conftest.l2
23098 ln -s target conftest.l1
23099 if test "$cross_compiling" = yes; then :
23101 darwin*) gl_cv_func_linkat_nofollow="guessing no" ;;
23102 *) gl_cv_func_linkat_nofollow="guessing yes" ;;
23105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106 /* end confdefs.h. */
23108 #include <unistd.h>
23113 return linkat (AT_FDCWD, "conftest.l1", AT_FDCWD,
23120 if ac_fn_c_try_run "$LINENO"; then :
23121 gl_cv_func_linkat_nofollow=yes
23123 gl_cv_func_linkat_nofollow=no
23125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23126 conftest.$ac_objext conftest.beam conftest.$ac_ext
23130 rm -rf conftest.l1 conftest.l2
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_linkat_nofollow" >&5
23133 $as_echo "$gl_cv_func_linkat_nofollow" >&6; }
23135 case $gl_cv_func_linkat_nofollow in
23136 *no) LINKAT_SYMLINK_NOTSUP=1 ;;
23137 *yes) LINKAT_SYMLINK_NOTSUP=0 ;;
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linkat handles trailing slash correctly" >&5
23141 $as_echo_n "checking whether linkat handles trailing slash correctly... " >&6; }
23142 if ${gl_cv_func_linkat_slash+:} false; then :
23143 $as_echo_n "(cached) " >&6
23145 rm -rf conftest.a conftest.b conftest.c conftest.d conftest.e conftest.s
23146 if test "$cross_compiling" = yes; then :
23147 # Guess yes on glibc systems, no otherwise.
23149 *-gnu*) gl_cv_func_linkat_slash="guessing yes";;
23150 *) gl_cv_func_linkat_slash="guessing no";;
23154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23155 /* end confdefs.h. */
23156 #include <unistd.h>
23166 /* Create a regular file. */
23167 fd = open ("conftest.a", O_CREAT | O_EXCL | O_WRONLY, 0600);
23170 if (write (fd, "hello", 5) < 5)
23172 if (close (fd) < 0)
23174 /* Test whether hard links are supported on the current
23176 if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.b",
23177 AT_SYMLINK_FOLLOW) < 0)
23180 /* Test whether a trailing "/" is treated like "/.". */
23181 if (linkat (AT_FDCWD, "conftest.a/", AT_FDCWD, "conftest.c",
23182 AT_SYMLINK_FOLLOW) == 0)
23184 if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.d/",
23185 AT_SYMLINK_FOLLOW) == 0)
23188 /* On OS X 10.10 a trailing "/" will cause the second path to be
23189 dereferenced, and thus will succeed on a dangling symlink. */
23190 if (symlink ("conftest.e", "conftest.s") == 0)
23192 if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.s/",
23193 AT_SYMLINK_FOLLOW) == 0)
23203 if ac_fn_c_try_run "$LINENO"; then :
23204 gl_cv_func_linkat_slash=yes
23206 gl_cv_func_linkat_slash=no
23208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23209 conftest.$ac_objext conftest.beam conftest.$ac_ext
23212 rm -rf conftest.a conftest.b conftest.c conftest.d conftest.e conftest.s
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_linkat_slash" >&5
23215 $as_echo "$gl_cv_func_linkat_slash" >&6; }
23216 case "$gl_cv_func_linkat_slash" in
23217 *yes) gl_linkat_slash_bug=0 ;;
23218 *) gl_linkat_slash_bug=1 ;;
23221 case "$gl_cv_func_linkat_nofollow" in
23222 *yes) linkat_nofollow=yes ;;
23223 *) linkat_nofollow=no ;;
23226 if test "$linkat_nofollow" != yes \
23227 || test $gl_linkat_slash_bug = 1; then
23230 cat >>confdefs.h <<_ACEOF
23231 #define LINKAT_TRAILING_SLASH_BUG $gl_linkat_slash_bug
23235 cat >>confdefs.h <<_ACEOF
23236 #define LINKAT_SYMLINK_NOTSUP $LINKAT_SYMLINK_NOTSUP
23242 if test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1; then
23251 gl_LIBOBJS="$gl_LIBOBJS linkat.$ac_objext"
23261 gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
23275 $as_echo "#define GNULIB_TEST_LINKAT 1" >>confdefs.h
23287 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
23300 $as_echo "#define _LCONV_C99 1" >>confdefs.h
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
23306 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
23307 if ${gl_cv_header_locale_h_posix2001+:} false; then :
23308 $as_echo_n "(cached) " >&6
23310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23311 /* end confdefs.h. */
23312 #include <locale.h>
23313 int x = LC_MESSAGES;
23314 int y = sizeof (((struct lconv *) 0)->decimal_point);
23323 if ac_fn_c_try_compile "$LINENO"; then :
23324 gl_cv_header_locale_h_posix2001=yes
23326 gl_cv_header_locale_h_posix2001=no
23328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
23331 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
23334 if test $ac_cv_header_xlocale_h = yes; then
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
23337 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
23338 if ${gl_cv_header_locale_has_locale_t+:} false; then :
23339 $as_echo_n "(cached) " >&6
23341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23342 /* end confdefs.h. */
23343 #include <locale.h>
23353 if ac_fn_c_try_compile "$LINENO"; then :
23354 gl_cv_header_locale_has_locale_t=yes
23356 gl_cv_header_locale_has_locale_t=no
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
23362 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
23363 if test $gl_cv_header_locale_has_locale_t = yes; then
23364 gl_cv_header_locale_h_needs_xlocale_h=no
23366 gl_cv_header_locale_h_needs_xlocale_h=yes
23370 gl_cv_header_locale_h_needs_xlocale_h=no
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
23375 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
23376 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
23377 $as_echo_n "(cached) " >&6
23379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23380 /* end confdefs.h. */
23381 #include <locale.h>
23383 int x = sizeof (l.decimal_point);
23384 int y = sizeof (l.int_p_cs_precedes);
23393 if ac_fn_c_try_compile "$LINENO"; then :
23394 gl_cv_sys_struct_lconv_ok=yes
23396 gl_cv_sys_struct_lconv_ok=no
23398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
23402 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
23403 if test $gl_cv_sys_struct_lconv_ok = no; then
23404 REPLACE_STRUCT_LCONV=1
23415 if test $gl_cv_have_include_next = yes; then
23416 gl_cv_next_locale_h='<'locale.h'>'
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
23419 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
23420 if ${gl_cv_next_locale_h+:} false; then :
23421 $as_echo_n "(cached) " >&6
23426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23427 /* end confdefs.h. */
23428 #include <locale.h>
23431 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23432 *) gl_absname_cpp="$ac_cpp" ;;
23437 gl_dirsep_regex='[/\\]'
23440 gl_dirsep_regex='\/'
23443 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23444 gl_header_literal_regex=`echo 'locale.h' \
23445 | sed -e "$gl_make_literal_regex_sed"`
23446 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23447 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23453 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23454 sed -n "$gl_absolute_header_sed"`
23456 gl_header=$gl_cv_absolute_locale_h
23457 gl_cv_next_locale_h='"'$gl_header'"'
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
23462 $as_echo "$gl_cv_next_locale_h" >&6; }
23464 NEXT_LOCALE_H=$gl_cv_next_locale_h
23466 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23467 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23468 gl_next_as_first_directive='<'locale.h'>'
23470 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23471 gl_next_as_first_directive=$gl_cv_next_locale_h
23473 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
23480 for gl_func in setlocale duplocale; do
23481 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23483 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23484 if eval \${$as_gl_Symbol+:} false; then :
23485 $as_echo_n "(cached) " >&6
23487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23488 /* end confdefs.h. */
23489 #include <locale.h>
23490 /* Some systems provide declarations in a non-standard header. */
23492 # include <xlocale.h>
23504 if ac_fn_c_try_compile "$LINENO"; then :
23505 eval "$as_gl_Symbol=yes"
23507 eval "$as_gl_Symbol=no"
23509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23511 eval ac_res=\$$as_gl_Symbol
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23513 $as_echo "$ac_res" >&6; }
23514 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23515 cat >>confdefs.h <<_ACEOF
23516 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23519 eval ac_cv_have_decl_$gl_func=yes
23528 if test $REPLACE_STRUCT_LCONV = 1; then
23529 REPLACE_LOCALECONV=1
23532 if test $REPLACE_LOCALECONV = 1; then
23541 gl_LIBOBJS="$gl_LIBOBJS localeconv.$ac_objext"
23544 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
23546 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
23548 cat >>confdefs.h <<_ACEOF
23549 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
23562 GNULIB_LOCALECONV=1
23568 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
23579 $as_echo_n "checking whether lseek detects pipes... " >&6; }
23580 if ${gl_cv_func_lseek_pipe+:} false; then :
23581 $as_echo_n "(cached) " >&6
23585 gl_cv_func_lseek_pipe=no
23588 if test $cross_compiling = no; then
23589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23590 /* end confdefs.h. */
23592 #include <sys/types.h> /* for off_t */
23593 #include <stdio.h> /* for SEEK_CUR */
23595 # include <unistd.h>
23596 #else /* on Windows with MSVC */
23604 /* Exit with success only if stdin is seekable. */
23605 return lseek (0, (off_t)0, SEEK_CUR) < 0;
23611 if ac_fn_c_try_link "$LINENO"; then :
23612 if test -s conftest$ac_exeext \
23613 && ./conftest$ac_exeext < conftest.$ac_ext \
23614 && test 1 = "`echo hi \
23615 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
23616 gl_cv_func_lseek_pipe=yes
23618 gl_cv_func_lseek_pipe=no
23622 gl_cv_func_lseek_pipe=no
23624 rm -f core conftest.err conftest.$ac_objext \
23625 conftest$ac_exeext conftest.$ac_ext
23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h. */
23630 #if defined __BEOS__
23631 /* BeOS mistakenly return 0 when trying to seek on pipes. */
23635 if ac_fn_c_try_compile "$LINENO"; then :
23636 gl_cv_func_lseek_pipe=yes
23638 gl_cv_func_lseek_pipe=no
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
23647 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
23648 if test $gl_cv_func_lseek_pipe = no; then
23651 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
23656 if test $WINDOWS_64_BIT_OFF_T = 1; then
23660 if test $REPLACE_LSEEK = 1; then
23669 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
23683 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
23690 if test $ac_cv_func_lstat = yes; then
23692 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
23701 if test $REPLACE_LSTAT = 1; then
23710 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
23725 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
23732 for ac_header in stdlib.h
23734 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23735 if test "x$ac_cv_header_stdlib_h" = xyes; then :
23736 cat >>confdefs.h <<_ACEOF
23737 #define HAVE_STDLIB_H 1
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
23745 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
23746 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
23747 $as_echo_n "(cached) " >&6
23749 if test "$cross_compiling" = yes; then :
23751 # Guess yes on platforms where we know the result.
23752 *-gnu* | freebsd* | netbsd* | openbsd* \
23753 | hpux* | solaris* | cygwin* | mingw*)
23754 ac_cv_func_malloc_0_nonnull=yes ;;
23755 # If we don't know, assume the worst.
23756 *) ac_cv_func_malloc_0_nonnull=no ;;
23760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23761 /* end confdefs.h. */
23762 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
23763 # include <stdlib.h>
23771 return ! malloc (0);
23777 if ac_fn_c_try_run "$LINENO"; then :
23778 ac_cv_func_malloc_0_nonnull=yes
23780 ac_cv_func_malloc_0_nonnull=no
23782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23783 conftest.$ac_objext conftest.beam conftest.$ac_ext
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
23789 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
23790 if test $ac_cv_func_malloc_0_nonnull = yes; then :
23792 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
23795 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
23802 if test $REPLACE_MALLOC = 1; then
23811 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
23816 cat >>confdefs.h <<_ACEOF
23817 #define GNULIB_MALLOC_GNU 1
23824 if test $gl_cv_func_malloc_posix = yes; then
23826 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
23832 if test $REPLACE_MALLOC = 1; then
23841 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
23849 GNULIB_MALLOC_POSIX=1
23855 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
23876 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
23881 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
23882 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
23883 $as_echo_n "(cached) " >&6
23887 # Guess no on AIX and OSF/1.
23888 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
23889 # Guess yes otherwise.
23890 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
23892 if test $LOCALE_JA != none; then
23893 if test "$cross_compiling" = yes; then :
23896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23897 /* end confdefs.h. */
23899 #include <locale.h>
23900 #include <string.h>
23901 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23903 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23904 included before <wchar.h>. */
23905 #include <stddef.h>
23911 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23913 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23917 memset (&state, '\0', sizeof (mbstate_t));
23918 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23919 if (mbsinit (&state))
23925 if ac_fn_c_try_run "$LINENO"; then :
23926 gl_cv_func_mbrtowc_incomplete_state=yes
23928 gl_cv_func_mbrtowc_incomplete_state=no
23930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23931 conftest.$ac_objext conftest.beam conftest.$ac_ext
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
23938 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
23944 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
23945 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
23946 $as_echo_n "(cached) " >&6
23950 # Guess no on Solaris 8.
23951 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
23952 # Guess yes otherwise.
23953 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
23955 if test $LOCALE_ZH_CN != none; then
23956 if test "$cross_compiling" = yes; then :
23959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23962 #include <locale.h>
23963 #include <stdlib.h>
23964 #include <string.h>
23965 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23967 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23968 included before <wchar.h>. */
23969 #include <stddef.h>
23975 /* This fails on Solaris 8:
23976 mbrtowc returns 2, and sets wc to 0x00F0.
23977 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
23978 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23980 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
23984 memset (&state, '\0', sizeof (mbstate_t));
23985 if (mbrtowc (&wc, input + 3, 6, &state) != 4
23986 && mbtowc (&wc, input + 3, 6) == 4)
23992 if ac_fn_c_try_run "$LINENO"; then :
23993 gl_cv_func_mbrtowc_sanitycheck=yes
23995 gl_cv_func_mbrtowc_sanitycheck=no
23997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23998 conftest.$ac_objext conftest.beam conftest.$ac_ext
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24005 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24007 REPLACE_MBSTATE_T=0
24008 case "$gl_cv_func_mbrtowc_incomplete_state" in
24010 *) REPLACE_MBSTATE_T=1 ;;
24012 case "$gl_cv_func_mbrtowc_sanitycheck" in
24014 *) REPLACE_MBSTATE_T=1 ;;
24017 REPLACE_MBSTATE_T=1
24022 if test $ac_cv_func_mbrtowc = no; then
24024 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
24025 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24027 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24028 included before <wchar.h>. */
24029 #include <stddef.h>
24035 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
24041 cat >>confdefs.h <<_ACEOF
24042 #define HAVE_DECL_MBRTOWC $ac_have_decl
24045 if test $ac_cv_have_decl_mbrtowc = yes; then
24049 if test $REPLACE_MBSTATE_T = 1; then
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
24056 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
24057 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
24058 $as_echo_n "(cached) " >&6
24062 # Guess no on Solaris.
24063 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
24064 # Guess yes otherwise.
24065 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
24067 if test $LOCALE_FR_UTF8 != none; then
24068 if test "$cross_compiling" = yes; then :
24071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24072 /* end confdefs.h. */
24074 #include <locale.h>
24075 #include <stdlib.h>
24076 #include <string.h>
24077 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24079 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24080 included before <wchar.h>. */
24081 #include <stddef.h>
24089 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24091 char input[] = "\303\237er";
24096 memset (&state, '\0', sizeof (mbstate_t));
24097 wc = (wchar_t) 0xBADFACE;
24098 ret = mbrtowc (&wc, input, 5, &state);
24101 if (!mbsinit (&state))
24104 memset (&state, '\0', sizeof (mbstate_t));
24105 ret = mbrtowc (NULL, input, 5, &state);
24106 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
24108 if (!mbsinit (&state))
24114 if ac_fn_c_try_run "$LINENO"; then :
24115 gl_cv_func_mbrtowc_null_arg1=yes
24117 gl_cv_func_mbrtowc_null_arg1=no
24119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24120 conftest.$ac_objext conftest.beam conftest.$ac_ext
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
24127 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
24133 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
24134 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
24135 $as_echo_n "(cached) " >&6
24139 # Guess no on OSF/1.
24140 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
24141 # Guess yes otherwise.
24142 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
24144 if test $LOCALE_FR_UTF8 != none; then
24145 if test "$cross_compiling" = yes; then :
24148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24149 /* end confdefs.h. */
24151 #include <locale.h>
24152 #include <string.h>
24153 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24155 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24156 included before <wchar.h>. */
24157 #include <stddef.h>
24163 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24169 memset (&state, '\0', sizeof (mbstate_t));
24170 wc = (wchar_t) 0xBADFACE;
24171 mbrtowc (&wc, NULL, 5, &state);
24172 /* Check that wc was not modified. */
24173 if (wc != (wchar_t) 0xBADFACE)
24179 if ac_fn_c_try_run "$LINENO"; then :
24180 gl_cv_func_mbrtowc_null_arg2=yes
24182 gl_cv_func_mbrtowc_null_arg2=no
24184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24185 conftest.$ac_objext conftest.beam conftest.$ac_ext
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
24192 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
24200 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
24201 if ${gl_cv_func_mbrtowc_retval+:} false; then :
24202 $as_echo_n "(cached) " >&6
24206 # Guess no on HP-UX, Solaris, native Windows.
24207 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
24208 # Guess yes otherwise.
24209 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
24211 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
24212 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
24213 if test "$cross_compiling" = yes; then :
24216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24217 /* end confdefs.h. */
24219 #include <locale.h>
24220 #include <string.h>
24221 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24223 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24224 included before <wchar.h>. */
24225 #include <stddef.h>
24232 int found_some_locale = 0;
24233 /* This fails on Solaris. */
24234 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24236 char input[] = "B\303\274\303\237er"; /* "Büßer" */
24240 memset (&state, '\0', sizeof (mbstate_t));
24241 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24244 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
24247 found_some_locale = 1;
24249 /* This fails on HP-UX 11.11. */
24250 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24252 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24256 memset (&state, '\0', sizeof (mbstate_t));
24257 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24260 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
24263 found_some_locale = 1;
24265 /* This fails on native Windows. */
24266 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
24268 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
24272 memset (&state, '\0', sizeof (mbstate_t));
24273 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
24276 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
24279 found_some_locale = 1;
24281 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
24283 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
24287 memset (&state, '\0', sizeof (mbstate_t));
24288 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
24291 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
24294 found_some_locale = 1;
24296 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
24298 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
24302 memset (&state, '\0', sizeof (mbstate_t));
24303 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
24306 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
24309 found_some_locale = 1;
24311 return (found_some_locale ? result : 77);
24314 if ac_fn_c_try_run "$LINENO"; then :
24315 gl_cv_func_mbrtowc_retval=yes
24317 if test $? != 77; then
24318 gl_cv_func_mbrtowc_retval=no
24322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24323 conftest.$ac_objext conftest.beam conftest.$ac_ext
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
24330 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
24336 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
24337 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
24338 $as_echo_n "(cached) " >&6
24342 # Guess no on Solaris 8 and 9.
24343 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
24344 # Guess yes otherwise.
24345 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
24347 if test $LOCALE_ZH_CN != none; then
24348 if test "$cross_compiling" = yes; then :
24351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24352 /* end confdefs.h. */
24354 #include <locale.h>
24355 #include <string.h>
24356 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24358 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24359 included before <wchar.h>. */
24360 #include <stddef.h>
24366 /* This fails on Solaris 8 and 9. */
24367 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24372 memset (&state, '\0', sizeof (mbstate_t));
24373 if (mbrtowc (&wc, "", 1, &state) != 0)
24379 if ac_fn_c_try_run "$LINENO"; then :
24380 gl_cv_func_mbrtowc_nul_retval=yes
24382 gl_cv_func_mbrtowc_nul_retval=no
24384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24385 conftest.$ac_objext conftest.beam conftest.$ac_ext
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
24392 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
24397 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
24398 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
24399 $as_echo_n "(cached) " >&6
24403 # Guess no on AIX and glibc systems.
24405 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
24406 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
24408 if test "$cross_compiling" = yes; then :
24411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24412 /* end confdefs.h. */
24416 static mbstate_t mbs;
24420 return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
24423 if ac_fn_c_try_run "$LINENO"; then :
24424 gl_cv_func_mbrtowc_empty_input=no
24426 gl_cv_func_mbrtowc_empty_input=yes
24428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24429 conftest.$ac_objext conftest.beam conftest.$ac_ext
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
24435 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
24437 case "$gl_cv_func_mbrtowc_null_arg1" in
24440 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
24445 case "$gl_cv_func_mbrtowc_null_arg2" in
24448 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
24453 case "$gl_cv_func_mbrtowc_retval" in
24456 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
24461 case "$gl_cv_func_mbrtowc_nul_retval" in
24464 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
24469 case "$gl_cv_func_mbrtowc_empty_input" in
24472 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
24480 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
24489 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
24506 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
24515 GNULIB_MBSCASECMP=1
24521 $as_echo "#define GNULIB_TEST_MBSCASECMP 1" >>confdefs.h
24536 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24541 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24542 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
24543 $as_echo_n "(cached) " >&6
24547 # Guess no on AIX and OSF/1.
24548 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24549 # Guess yes otherwise.
24550 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24552 if test $LOCALE_JA != none; then
24553 if test "$cross_compiling" = yes; then :
24556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24557 /* end confdefs.h. */
24559 #include <locale.h>
24560 #include <string.h>
24561 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24563 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24564 included before <wchar.h>. */
24565 #include <stddef.h>
24571 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24573 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24577 memset (&state, '\0', sizeof (mbstate_t));
24578 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24579 if (mbsinit (&state))
24585 if ac_fn_c_try_run "$LINENO"; then :
24586 gl_cv_func_mbrtowc_incomplete_state=yes
24588 gl_cv_func_mbrtowc_incomplete_state=no
24590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24591 conftest.$ac_objext conftest.beam conftest.$ac_ext
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24598 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24604 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24605 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
24606 $as_echo_n "(cached) " >&6
24610 # Guess no on Solaris 8.
24611 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24612 # Guess yes otherwise.
24613 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24615 if test $LOCALE_ZH_CN != none; then
24616 if test "$cross_compiling" = yes; then :
24619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24620 /* end confdefs.h. */
24622 #include <locale.h>
24623 #include <stdlib.h>
24624 #include <string.h>
24625 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24627 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24628 included before <wchar.h>. */
24629 #include <stddef.h>
24635 /* This fails on Solaris 8:
24636 mbrtowc returns 2, and sets wc to 0x00F0.
24637 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24638 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24640 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24644 memset (&state, '\0', sizeof (mbstate_t));
24645 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24646 && mbtowc (&wc, input + 3, 6) == 4)
24652 if ac_fn_c_try_run "$LINENO"; then :
24653 gl_cv_func_mbrtowc_sanitycheck=yes
24655 gl_cv_func_mbrtowc_sanitycheck=no
24657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24658 conftest.$ac_objext conftest.beam conftest.$ac_ext
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24665 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24667 REPLACE_MBSTATE_T=0
24668 case "$gl_cv_func_mbrtowc_incomplete_state" in
24670 *) REPLACE_MBSTATE_T=1 ;;
24672 case "$gl_cv_func_mbrtowc_sanitycheck" in
24674 *) REPLACE_MBSTATE_T=1 ;;
24677 REPLACE_MBSTATE_T=1
24682 if test $ac_cv_func_mbsinit = no; then
24684 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
24685 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24687 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24688 included before <wchar.h>. */
24689 #include <stddef.h>
24695 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
24701 cat >>confdefs.h <<_ACEOF
24702 #define HAVE_DECL_MBSINIT $ac_have_decl
24705 if test $ac_cv_have_decl_mbsinit = yes; then
24709 if test $REPLACE_MBSTATE_T = 1; then
24713 mingw*) REPLACE_MBSINIT=1 ;;
24718 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
24727 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
24744 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
24758 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24763 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24764 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
24765 $as_echo_n "(cached) " >&6
24769 # Guess no on AIX and OSF/1.
24770 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24771 # Guess yes otherwise.
24772 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24774 if test $LOCALE_JA != none; then
24775 if test "$cross_compiling" = yes; then :
24778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24779 /* end confdefs.h. */
24781 #include <locale.h>
24782 #include <string.h>
24783 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24785 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24786 included before <wchar.h>. */
24787 #include <stddef.h>
24793 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24795 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24799 memset (&state, '\0', sizeof (mbstate_t));
24800 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24801 if (mbsinit (&state))
24807 if ac_fn_c_try_run "$LINENO"; then :
24808 gl_cv_func_mbrtowc_incomplete_state=yes
24810 gl_cv_func_mbrtowc_incomplete_state=no
24812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24813 conftest.$ac_objext conftest.beam conftest.$ac_ext
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24820 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24826 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24827 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
24828 $as_echo_n "(cached) " >&6
24832 # Guess no on Solaris 8.
24833 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24834 # Guess yes otherwise.
24835 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24837 if test $LOCALE_ZH_CN != none; then
24838 if test "$cross_compiling" = yes; then :
24841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24842 /* end confdefs.h. */
24844 #include <locale.h>
24845 #include <stdlib.h>
24846 #include <string.h>
24847 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24849 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24850 included before <wchar.h>. */
24851 #include <stddef.h>
24857 /* This fails on Solaris 8:
24858 mbrtowc returns 2, and sets wc to 0x00F0.
24859 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24860 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24862 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24866 memset (&state, '\0', sizeof (mbstate_t));
24867 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24868 && mbtowc (&wc, input + 3, 6) == 4)
24874 if ac_fn_c_try_run "$LINENO"; then :
24875 gl_cv_func_mbrtowc_sanitycheck=yes
24877 gl_cv_func_mbrtowc_sanitycheck=no
24879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24880 conftest.$ac_objext conftest.beam conftest.$ac_ext
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24887 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24889 REPLACE_MBSTATE_T=0
24890 case "$gl_cv_func_mbrtowc_incomplete_state" in
24892 *) REPLACE_MBSTATE_T=1 ;;
24894 case "$gl_cv_func_mbrtowc_sanitycheck" in
24896 *) REPLACE_MBSTATE_T=1 ;;
24899 REPLACE_MBSTATE_T=1
24904 if test $ac_cv_func_mbsrtowcs = no; then
24906 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
24907 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24909 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24910 included before <wchar.h>. */
24911 #include <stddef.h>
24917 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
24923 cat >>confdefs.h <<_ACEOF
24924 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
24927 if test $ac_cv_have_decl_mbsrtowcs = yes; then
24928 REPLACE_MBSRTOWCS=1
24931 if test $REPLACE_MBSTATE_T = 1; then
24932 REPLACE_MBSRTOWCS=1
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
24941 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
24942 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
24943 $as_echo_n "(cached) " >&6
24947 # Guess no on HP-UX, Solaris, mingw.
24948 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
24949 # Guess yes otherwise.
24950 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
24952 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
24953 if test "$cross_compiling" = yes; then :
24956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24957 /* end confdefs.h. */
24959 #include <locale.h>
24960 #include <string.h>
24961 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24963 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24964 included before <wchar.h>. */
24965 #include <stddef.h>
24972 /* Test whether the function supports a NULL destination argument.
24973 This fails on native Windows. */
24974 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
24976 const char input[] = "\337er";
24977 const char *src = input;
24980 memset (&state, '\0', sizeof (mbstate_t));
24981 if (mbsrtowcs (NULL, &src, 1, &state) != 3
24985 /* Test whether the function works when started with a conversion state
24986 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
24987 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24989 const char input[] = "B\303\274\303\237er";
24992 memset (&state, '\0', sizeof (mbstate_t));
24993 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24994 if (!mbsinit (&state))
24996 const char *src = input + 2;
24997 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
25001 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
25003 const char input[] = "<\306\374\313\334\270\354>";
25006 memset (&state, '\0', sizeof (mbstate_t));
25007 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
25008 if (!mbsinit (&state))
25010 const char *src = input + 4;
25011 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
25015 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
25017 const char input[] = "B\250\271\201\060\211\070er";
25020 memset (&state, '\0', sizeof (mbstate_t));
25021 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
25022 if (!mbsinit (&state))
25024 const char *src = input + 2;
25025 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
25032 if ac_fn_c_try_run "$LINENO"; then :
25033 gl_cv_func_mbsrtowcs_works=yes
25035 gl_cv_func_mbsrtowcs_works=no
25037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25038 conftest.$ac_objext conftest.beam conftest.$ac_ext
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
25045 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
25047 case "$gl_cv_func_mbsrtowcs_works" in
25049 *) REPLACE_MBSRTOWCS=1 ;;
25054 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
25063 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
25073 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
25090 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
25101 if test $REPLACE_MBTOWC = 1; then
25110 gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
25127 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
25136 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
25145 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
25148 for ac_header in bp-sym.h
25150 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
25151 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
25152 cat >>confdefs.h <<_ACEOF
25153 #define HAVE_BP_SYM_H 1
25173 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
25183 for ac_func in mempcpy
25185 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
25186 if test "x$ac_cv_func_mempcpy" = xyes; then :
25187 cat >>confdefs.h <<_ACEOF
25188 #define HAVE_MEMPCPY 1
25194 if test $ac_cv_func_mempcpy = no; then
25198 if test $HAVE_MEMPCPY = 0; then
25207 gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
25224 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
25233 if test $ac_cv_have_decl_memrchr = no; then
25234 HAVE_DECL_MEMRCHR=0
25237 for ac_func in memrchr
25239 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
25240 if test "x$ac_cv_func_memrchr" = xyes; then :
25241 cat >>confdefs.h <<_ACEOF
25242 #define HAVE_MEMRCHR 1
25249 if test $ac_cv_func_memrchr = no; then
25258 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
25273 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
25280 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
25281 if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
25282 $as_echo_n "(cached) " >&6
25284 rm -rf conftest.dir
25285 if test "$cross_compiling" = yes; then :
25287 # Guess yes on glibc systems.
25288 *-gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
25289 # If we don't know, assume the worst.
25290 *) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
25294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25295 /* end confdefs.h. */
25297 # include <sys/types.h>
25298 # include <sys/stat.h>
25303 return mkdir ("conftest.dir/", 0700);
25308 if ac_fn_c_try_run "$LINENO"; then :
25309 gl_cv_func_mkdir_trailing_slash_works=yes
25311 gl_cv_func_mkdir_trailing_slash_works=no
25313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25314 conftest.$ac_objext conftest.beam conftest.$ac_ext
25317 rm -rf conftest.dir
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
25322 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
25323 case "$gl_cv_func_mkdir_trailing_slash_works" in
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
25331 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
25332 if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
25333 $as_echo_n "(cached) " >&6
25335 rm -rf conftest.dir
25336 if test "$cross_compiling" = yes; then :
25338 # Guess yes on glibc systems.
25339 *-gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
25340 # If we don't know, assume the worst.
25341 *) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
25345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25346 /* end confdefs.h. */
25348 # include <sys/types.h>
25349 # include <sys/stat.h>
25354 return !mkdir ("conftest.dir/./", 0700);
25359 if ac_fn_c_try_run "$LINENO"; then :
25360 gl_cv_func_mkdir_trailing_dot_works=yes
25362 gl_cv_func_mkdir_trailing_dot_works=no
25364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25365 conftest.$ac_objext conftest.beam conftest.$ac_ext
25368 rm -rf conftest.dir
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
25373 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
25374 case "$gl_cv_func_mkdir_trailing_dot_works" in
25379 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
25384 if test $REPLACE_MKDIR = 1; then
25393 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
25400 if test $ac_cv_func_mkdirat != yes; then
25404 if test $HAVE_MKDIRAT = 0; then
25413 gl_LIBOBJS="$gl_LIBOBJS mkdirat.$ac_objext"
25430 $as_echo "#define GNULIB_TEST_MKDIRAT 1" >>confdefs.h
25436 for ac_func in mkdtemp
25438 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
25439 if test "x$ac_cv_func_mkdtemp" = xyes; then :
25440 cat >>confdefs.h <<_ACEOF
25441 #define HAVE_MKDTEMP 1
25447 if test $ac_cv_func_mkdtemp = no; then
25451 if test $HAVE_MKDTEMP = 0; then
25460 gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
25476 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
25483 if test $ac_cv_func_mkfifo = no; then
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkfifo rejects trailing slashes" >&5
25488 $as_echo_n "checking whether mkfifo rejects trailing slashes... " >&6; }
25489 if ${gl_cv_func_mkfifo_works+:} false; then :
25490 $as_echo_n "(cached) " >&6
25492 # Assume that if we have lstat, we can also check symlinks.
25493 if test $ac_cv_func_lstat = yes; then
25494 ln -s conftest.tmp conftest.lnk
25496 if test "$cross_compiling" = yes; then :
25498 # Guess yes on glibc systems.
25499 *-gnu*) gl_cv_func_mkfifo_works="guessing yes" ;;
25500 # If we don't know, assume the worst.
25501 *) gl_cv_func_mkfifo_works="guessing no" ;;
25505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25506 /* end confdefs.h. */
25507 #include <sys/stat.h>
25513 if (!mkfifo ("conftest.tmp/", 0600))
25516 if (!mkfifo ("conftest.lnk/", 0600))
25525 if ac_fn_c_try_run "$LINENO"; then :
25526 gl_cv_func_mkfifo_works=yes
25528 gl_cv_func_mkfifo_works=no
25530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25531 conftest.$ac_objext conftest.beam conftest.$ac_ext
25534 rm -f conftest.tmp conftest.lnk
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkfifo_works" >&5
25537 $as_echo "$gl_cv_func_mkfifo_works" >&6; }
25538 case "$gl_cv_func_mkfifo_works" in
25542 $as_echo "#define MKFIFO_TRAILING_SLASH_BUG 1" >>confdefs.h
25549 if test $HAVE_MKFIFO = 0 || test $REPLACE_MKFIFO = 1; then
25558 gl_LIBOBJS="$gl_LIBOBJS mkfifo.$ac_objext"
25572 $as_echo "#define GNULIB_TEST_MKFIFO 1" >>confdefs.h
25581 if test $ac_cv_func_mkfifoat = no; then
25582 # No known system has mkfifoat but not mknodat
25587 if test $HAVE_MKFIFOAT = 0; then
25596 gl_LIBOBJS="$gl_LIBOBJS mkfifoat.$ac_objext"
25599 if test $HAVE_MKNODAT = 0; then
25608 gl_LIBOBJS="$gl_LIBOBJS mknodat.$ac_objext"
25622 $as_echo "#define GNULIB_TEST_MKFIFOAT 1" >>confdefs.h
25637 $as_echo "#define GNULIB_TEST_MKNODAT 1" >>confdefs.h
25646 if test $ac_cv_func_mknod = no; then
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mknod can create fifo without root privileges" >&5
25650 $as_echo_n "checking whether mknod can create fifo without root privileges... " >&6; }
25651 if ${gl_cv_func_mknod_works+:} false; then :
25652 $as_echo_n "(cached) " >&6
25654 if test "$cross_compiling" = yes; then :
25656 # Guess yes on glibc systems.
25657 *-gnu*) gl_cv_func_mknod_works="guessing yes" ;;
25658 # If we don't know, assume the worst.
25659 *) gl_cv_func_mknod_works="guessing no" ;;
25663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664 /* end confdefs.h. */
25665 #include <sys/stat.h>
25666 #include <unistd.h>
25668 /* Copied from root-uid.h. FIXME: Just use root-uid.h. */
25670 # define ROOT_UID 65535
25672 # define ROOT_UID 0
25678 /* Indeterminate for super-user, assume no. Why are you running
25679 configure as root, anyway? */
25680 if (geteuid () == ROOT_UID) return 99;
25681 if (mknod ("conftest.fifo", S_IFIFO | 0600, 0)) return 2;
25686 if ac_fn_c_try_run "$LINENO"; then :
25687 gl_cv_func_mknod_works=yes
25689 if test $? = 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then
25690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25692 as_fn_error $? "you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
25693 See \`config.log' for more details" "$LINENO" 5; }
25695 gl_cv_func_mknod_works=no
25697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25698 conftest.$ac_objext conftest.beam conftest.$ac_ext
25701 rm -f conftest.fifo
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mknod_works" >&5
25704 $as_echo "$gl_cv_func_mknod_works" >&6; }
25705 case "$gl_cv_func_mknod_works" in
25710 $as_echo "#define MKNOD_FIFO_BUG 1" >>confdefs.h
25714 if test $REPLACE_MKFIFO = 1; then
25719 if test $HAVE_MKNOD = 0 || test $REPLACE_MKNOD = 1; then
25728 gl_LIBOBJS="$gl_LIBOBJS mknod.$ac_objext"
25742 $as_echo "#define GNULIB_TEST_MKNOD 1" >>confdefs.h
25752 if test $APPLE_UNIVERSAL_BUILD = 1; then
25753 # A universal build on Apple Mac OS X platforms.
25754 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
25755 # But we need a configuration result that is valid in both modes.
25756 gl_cv_func_working_mktime=no
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
25759 $as_echo_n "checking for working mktime... " >&6; }
25760 if ${gl_cv_func_working_mktime+:} false; then :
25761 $as_echo_n "(cached) " >&6
25763 if test "$cross_compiling" = yes; then :
25764 gl_cv_func_working_mktime=no
25766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25767 /* end confdefs.h. */
25768 /* Test program from Paul Eggert and Tony Leneis. */
25769 #include <limits.h>
25770 #include <stdlib.h>
25773 #ifdef HAVE_UNISTD_H
25774 # include <unistd.h>
25777 #if HAVE_DECL_ALARM
25778 # include <signal.h>
25781 /* Work around redefinition to rpl_putenv by other config tests. */
25784 static time_t time_t_max;
25785 static time_t time_t_min;
25787 /* Values we'll use to set the TZ environment variable. */
25788 static char *tz_strings[] = {
25789 (char *) 0, "TZ=GMT0", "TZ=JST-9",
25790 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
25792 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
25794 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
25795 Based on a problem report from Andreas Jaeger. */
25797 spring_forward_gap ()
25799 /* glibc (up to about 1998-10-07) failed this test. */
25802 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
25803 instead of "TZ=America/Vancouver" in order to detect the bug even
25804 on systems that don't support the Olson extension, or don't have the
25805 full zoneinfo tables installed. */
25806 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
25815 return mktime (&tm) != (time_t) -1;
25819 mktime_test1 (time_t now)
25822 return ! (lt = localtime (&now)) || mktime (lt) == now;
25826 mktime_test (time_t now)
25828 return (mktime_test1 (now)
25829 && mktime_test1 ((time_t) (time_t_max - now))
25830 && mktime_test1 ((time_t) (time_t_min + now)));
25836 /* Based on code from Ariel Faigon. */
25846 return tm.tm_mon == 2 && tm.tm_mday == 31;
25850 bigtime_test (int j)
25854 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
25855 now = mktime (&tm);
25856 if (now != (time_t) -1)
25858 struct tm *lt = localtime (&now);
25860 && lt->tm_year == tm.tm_year
25861 && lt->tm_mon == tm.tm_mon
25862 && lt->tm_mday == tm.tm_mday
25863 && lt->tm_hour == tm.tm_hour
25864 && lt->tm_min == tm.tm_min
25865 && lt->tm_sec == tm.tm_sec
25866 && lt->tm_yday == tm.tm_yday
25867 && lt->tm_wday == tm.tm_wday
25868 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
25869 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
25878 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
25879 ignoring leap seconds. */
25880 unsigned long int answer = 2527315200UL;
25884 tm.tm_year = 2050 - 1900;
25887 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
25890 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
25891 instead of "TZ=America/Vancouver" in order to detect the bug even
25892 on systems that don't support the Olson extension, or don't have the
25893 full zoneinfo tables installed. */
25894 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
25898 /* Check that the result is either a failure, or close enough
25899 to the correct answer that we can assume the discrepancy is
25900 due to leap seconds. */
25901 return (t == (time_t) -1
25902 || (0 < t && answer - 120 <= t && t <= answer + 120));
25911 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
25912 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
25914 #if HAVE_DECL_ALARM
25915 /* This test makes some buggy mktime implementations loop.
25916 Give up after 60 seconds; a mktime slower than that
25917 isn't worth using anyway. */
25918 signal (SIGALRM, SIG_DFL);
25922 time_t_max = (! time_t_signed
25924 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
25926 time_t_min = (! time_t_signed
25928 : time_t_signed_magnitude
25932 delta = time_t_max / 997; /* a suitable prime number */
25933 for (i = 0; i < N_STRINGS; i++)
25936 putenv (tz_strings[i]);
25938 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
25939 if (! mktime_test (t))
25941 if ((result & 2) == 0
25942 && ! (mktime_test ((time_t) 1)
25943 && mktime_test ((time_t) (60 * 60))
25944 && mktime_test ((time_t) (60 * 60 * 24))))
25947 for (j = 1; (result & 4) == 0; j <<= 1)
25949 if (! bigtime_test (j))
25951 if (INT_MAX / 2 < j)
25954 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
25957 if (! irix_6_4_bug ())
25959 if (! spring_forward_gap ())
25961 if (! year_2050_test ())
25966 if ac_fn_c_try_run "$LINENO"; then :
25967 gl_cv_func_working_mktime=yes
25969 gl_cv_func_working_mktime=no
25971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25972 conftest.$ac_objext conftest.beam conftest.$ac_ext
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
25978 $as_echo "$gl_cv_func_working_mktime" >&6; }
25980 if test $gl_cv_func_working_mktime = no; then
25986 if test $REPLACE_MKTIME = 1; then
25995 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
26010 $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
26016 if test $REPLACE_MKTIME = 0; then
26017 ac_fn_c_check_func "$LINENO" "__mktime_internal" "ac_cv_func___mktime_internal"
26018 if test "x$ac_cv_func___mktime_internal" = xyes; then :
26020 $as_echo "#define mktime_internal __mktime_internal" >>confdefs.h
26030 if test $REPLACE_MKTIME = 1; then
26039 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
26048 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
26049 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
26051 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
26054 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
26058 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26067 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
26073 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26082 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
26090 if test $ac_cv_func_nl_langinfo = yes; then
26091 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
26093 $as_echo_n "checking whether YESEXPR works... " >&6; }
26094 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
26095 $as_echo_n "(cached) " >&6
26097 if test "$cross_compiling" = yes; then :
26100 # Guess no on irix systems.
26101 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
26102 # Guess yes elsewhere.
26103 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
26107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26108 /* end confdefs.h. */
26109 #include <langinfo.h>
26114 return !*nl_langinfo(YESEXPR);
26120 if ac_fn_c_try_run "$LINENO"; then :
26121 gl_cv_func_nl_langinfo_yesexpr_works=yes
26123 gl_cv_func_nl_langinfo_yesexpr_works=no
26125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26126 conftest.$ac_objext conftest.beam conftest.$ac_ext
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
26132 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
26133 case $gl_cv_func_nl_langinfo_yesexpr_works in
26134 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
26135 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
26138 cat >>confdefs.h <<_ACEOF
26139 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
26142 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
26143 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
26146 REPLACE_NL_LANGINFO=1
26148 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
26155 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
26164 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
26172 GNULIB_NL_LANGINFO=1
26178 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks that work with any size object" >&5
26195 $as_echo_n "checking for obstacks that work with any size object... " >&6; }
26196 if ${ac_cv_func_obstack+:} false; then :
26197 $as_echo_n "(cached) " >&6
26199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26200 /* end confdefs.h. */
26201 #include "obstack.h"
26202 void *obstack_chunk_alloc (size_t n) { return 0; }
26203 void obstack_chunk_free (void *p) { }
26204 /* Check that an internal function returns size_t, not int. */
26205 size_t _obstack_memory_used (struct obstack *);
26210 struct obstack mem;
26211 obstack_init (&mem);
26212 obstack_free (&mem, 0);
26218 if ac_fn_c_try_link "$LINENO"; then :
26219 ac_cv_func_obstack=yes
26221 ac_cv_func_obstack=no
26223 rm -f core conftest.err conftest.$ac_objext \
26224 conftest$ac_exeext conftest.$ac_ext
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
26227 $as_echo "$ac_cv_func_obstack" >&6; }
26228 if test "$ac_cv_func_obstack" = yes; then
26230 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
26241 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
26254 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
26255 if ${gl_cv_func_open_slash+:} false; then :
26256 $as_echo_n "(cached) " >&6
26258 # Assume that if we have lstat, we can also check symlinks.
26259 if test $ac_cv_func_lstat = yes; then
26261 ln -s conftest.tmp conftest.lnk
26263 if test "$cross_compiling" = yes; then :
26266 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
26267 gl_cv_func_open_slash="guessing no" ;;
26269 gl_cv_func_open_slash="guessing yes" ;;
26273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26274 /* end confdefs.h. */
26278 # include <unistd.h>
26284 if (open ("conftest.lnk/", O_RDONLY) != -1)
26287 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
26292 if ac_fn_c_try_run "$LINENO"; then :
26293 gl_cv_func_open_slash=yes
26295 gl_cv_func_open_slash=no
26297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26298 conftest.$ac_objext conftest.beam conftest.$ac_ext
26301 rm -f conftest.sl conftest.tmp conftest.lnk
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
26305 $as_echo "$gl_cv_func_open_slash" >&6; }
26306 case "$gl_cv_func_open_slash" in
26309 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
26317 if test $REPLACE_OPEN = 0; then
26321 if test $ac_cv_func_fchdir = no; then
26325 if test $HAVE_FCHDIR = 0; then
26332 if test $REPLACE_OPEN = 1; then
26341 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
26359 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
26368 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
26372 # Solaris 9 has *at functions, but uniformly mishandles trailing
26373 # slash in all of them.
26381 if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
26390 gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
26399 cat >>confdefs.h <<_ACEOF
26400 #define GNULIB_OPENAT 1
26414 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
26421 for ac_func in opendir
26423 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
26424 if test "x$ac_cv_func_opendir" = xyes; then :
26425 cat >>confdefs.h <<_ACEOF
26426 #define HAVE_OPENDIR 1
26432 if test $ac_cv_func_opendir = no; then
26439 if test $ac_cv_func_fchdir = no; then
26443 if test $HAVE_FCHDIR = 0; then
26444 if test $HAVE_OPENDIR = 1; then
26450 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
26459 gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
26473 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
26483 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26484 #include <$ac_cv_struct_tm>
26487 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26489 cat >>confdefs.h <<_ACEOF
26490 #define HAVE_STRUCT_TM_TM_ZONE 1
26496 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26498 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26501 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26503 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26509 cat >>confdefs.h <<_ACEOF
26510 #define HAVE_DECL_TZNAME $ac_have_decl
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26514 $as_echo_n "checking for tzname... " >&6; }
26515 if ${ac_cv_var_tzname+:} false; then :
26516 $as_echo_n "(cached) " >&6
26518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26519 /* end confdefs.h. */
26521 #if !HAVE_DECL_TZNAME
26522 extern char *tzname[];
26528 return tzname[0][0];
26533 if ac_fn_c_try_link "$LINENO"; then :
26534 ac_cv_var_tzname=yes
26536 ac_cv_var_tzname=no
26538 rm -f core conftest.err conftest.$ac_objext \
26539 conftest$ac_exeext conftest.$ac_ext
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26542 $as_echo "$ac_cv_var_tzname" >&6; }
26543 if test $ac_cv_var_tzname = yes; then
26545 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26553 /* end confdefs.h. */
26555 #include <time.h> /* for time_t */
26556 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
26557 #define TYPE_MINIMUM(t) \
26558 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
26559 #define TYPE_MAXIMUM(t) \
26560 ((t) ((t) 0 < (t) -1 \
26562 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
26563 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
26564 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
26567 if ac_fn_c_try_compile "$LINENO"; then :
26569 $as_echo "#define TIME_T_FITS_IN_LONG_INT 1" >>confdefs.h
26573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26579 for ac_func in getppriv
26581 ac_fn_c_check_func "$LINENO" "getppriv" "ac_cv_func_getppriv"
26582 if test "x$ac_cv_func_getppriv" = xyes; then :
26583 cat >>confdefs.h <<_ACEOF
26584 #define HAVE_GETPPRIV 1
26592 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
26594 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
26600 cat >>confdefs.h <<_ACEOF
26601 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
26604 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
26606 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
26612 cat >>confdefs.h <<_ACEOF
26613 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
26626 for ac_func in raise
26628 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
26629 if test "x$ac_cv_func_raise" = xyes; then :
26630 cat >>confdefs.h <<_ACEOF
26631 #define HAVE_RAISE 1
26637 if test $ac_cv_func_raise = no; then
26640 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26646 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
26655 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
26670 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
26678 for ac_func in rawmemchr
26680 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
26681 if test "x$ac_cv_func_rawmemchr" = xyes; then :
26682 cat >>confdefs.h <<_ACEOF
26683 #define HAVE_RAWMEMCHR 1
26689 if test $ac_cv_func_rawmemchr = no; then
26693 if test $HAVE_RAWMEMCHR = 0; then
26702 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
26717 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
26724 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26729 if test $REPLACE_READ = 1; then
26738 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
26753 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
26760 for ac_func in readdir
26762 ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
26763 if test "x$ac_cv_func_readdir" = xyes; then :
26764 cat >>confdefs.h <<_ACEOF
26765 #define HAVE_READDIR 1
26771 if test $ac_cv_func_readdir = no; then
26775 if test $HAVE_READDIR = 0; then
26784 gl_LIBOBJS="$gl_LIBOBJS readdir.$ac_objext"
26798 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
26805 if test $ac_cv_func_readlink = no; then
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
26809 $as_echo_n "checking whether readlink signature is correct... " >&6; }
26810 if ${gl_cv_decl_readlink_works+:} false; then :
26811 $as_echo_n "(cached) " >&6
26813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26814 /* end confdefs.h. */
26815 #include <unistd.h>
26816 /* Cause compilation failure if original declaration has wrong type. */
26817 ssize_t readlink (const char *, char *, size_t);
26826 if ac_fn_c_try_compile "$LINENO"; then :
26827 gl_cv_decl_readlink_works=yes
26829 gl_cv_decl_readlink_works=no
26831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
26834 $as_echo "$gl_cv_decl_readlink_works" >&6; }
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
26836 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
26837 if ${gl_cv_func_readlink_works+:} false; then :
26838 $as_echo_n "(cached) " >&6
26840 # We have readlink, so assume ln -s works.
26841 ln -s conftest.no-such conftest.link
26842 ln -s conftest.link conftest.lnk2
26843 if test "$cross_compiling" = yes; then :
26845 # Guess yes on glibc systems.
26846 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
26847 # If we don't know, assume the worst.
26848 *) gl_cv_func_readlink_works="guessing no" ;;
26852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26853 /* end confdefs.h. */
26854 #include <unistd.h>
26860 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
26865 if ac_fn_c_try_run "$LINENO"; then :
26866 gl_cv_func_readlink_works=yes
26868 gl_cv_func_readlink_works=no
26870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26871 conftest.$ac_objext conftest.beam conftest.$ac_ext
26874 rm -f conftest.link conftest.lnk2
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
26877 $as_echo "$gl_cv_func_readlink_works" >&6; }
26878 case "$gl_cv_func_readlink_works" in
26880 if test "$gl_cv_decl_readlink_works" != yes; then
26886 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
26893 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26902 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
26919 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
26928 if test $ac_cv_func_readlinkat = no; then
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlinkat signature is correct" >&5
26932 $as_echo_n "checking whether readlinkat signature is correct... " >&6; }
26933 if ${gl_cv_decl_readlinkat_works+:} false; then :
26934 $as_echo_n "(cached) " >&6
26936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26937 /* end confdefs.h. */
26938 #include <unistd.h>
26939 /* Check whether original declaration has correct type. */
26940 ssize_t readlinkat (int, char const *, char *, size_t);
26949 if ac_fn_c_try_compile "$LINENO"; then :
26950 gl_cv_decl_readlinkat_works=yes
26952 gl_cv_decl_readlinkat_works=no
26954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlinkat_works" >&5
26957 $as_echo "$gl_cv_decl_readlinkat_works" >&6; }
26958 # Assume readinkat has the same trailing slash bug as readlink,
26959 # as is the case on Mac Os X 10.10
26960 case "$gl_cv_func_readlink_works" in
26962 if test "$gl_cv_decl_readlinkat_works" != yes; then
26963 REPLACE_READLINKAT=1
26967 REPLACE_READLINKAT=1
26972 if test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1; then
26981 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
26989 GNULIB_READLINKAT=1
26995 $as_echo "#define GNULIB_TEST_READLINKAT 1" >>confdefs.h
27002 if test $gl_cv_func_malloc_posix = yes; then
27004 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
27010 if test $REPLACE_REALLOC = 1; then
27019 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
27027 GNULIB_REALLOC_POSIX=1
27033 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
27039 # Check whether --with-included-regex was given.
27040 if test "${with_included_regex+set}" = set; then :
27041 withval=$with_included_regex;
27045 case $with_included_regex in #(
27046 yes|no) ac_use_included_regex=$with_included_regex
27049 # If the system regex support is good enough that it passes the
27050 # following run test, then default to *not* using the included regex.c.
27051 # If cross compiling, assume the test would fail and use the included
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
27056 $as_echo_n "checking for working re_compile_pattern... " >&6; }
27057 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
27058 $as_echo_n "(cached) " >&6
27060 if test "$cross_compiling" = yes; then :
27061 gl_cv_func_re_compile_pattern_working=no
27063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27064 /* end confdefs.h. */
27067 #include <locale.h>
27068 #include <limits.h>
27069 #include <string.h>
27071 #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
27072 # include <signal.h>
27073 # include <unistd.h>
27077 # include <malloc.h>
27080 #ifdef M_CHECK_ACTION
27081 /* Exit with distinguishable exit code. */
27082 static void sigabrt_no_core (int sig) { raise (SIGTERM); }
27089 static struct re_pattern_buffer regex;
27090 unsigned char folded_chars[UCHAR_MAX + 1];
27093 struct re_registers regs;
27095 /* Some builds of glibc go into an infinite loop on this
27096 test. Use alarm to force death, and mallopt to avoid
27097 malloc recursion in diagnosing the corrupted heap. */
27098 #if HAVE_DECL_ALARM
27099 signal (SIGALRM, SIG_DFL);
27102 #ifdef M_CHECK_ACTION
27103 signal (SIGABRT, sigabrt_no_core);
27104 mallopt (M_CHECK_ACTION, 2);
27107 if (setlocale (LC_ALL, "en_US.UTF-8"))
27110 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
27111 This test needs valgrind to catch the bug on Debian
27112 GNU/Linux 3.1 x86, but it might catch the bug better
27113 on other platforms and it shouldn't hurt to try the
27115 static char const pat[] = "insert into";
27116 static char const data[] =
27117 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
27118 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
27120 memset (®ex, 0, sizeof regex);
27121 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
27124 else if (re_search (®ex, data, sizeof data - 1,
27125 0, sizeof data - 1, ®s)
27131 /* This test is from glibc bug 15078.
27132 The test case is from Andreas Schwab in
27133 <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
27135 static char const pat[] = "[^x]x";
27136 static char const data[] =
27137 /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
27148 memset (®ex, 0, sizeof regex);
27149 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
27154 i = re_search (®ex, data, sizeof data - 1,
27155 0, sizeof data - 1, 0);
27156 if (i != 0 && i != 21)
27161 if (! setlocale (LC_ALL, "C"))
27165 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
27166 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
27167 memset (®ex, 0, sizeof regex);
27168 s = re_compile_pattern ("a[^x]b", 6, ®ex);
27171 /* This should fail, but succeeds for glibc-2.5. */
27172 else if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
27175 /* This regular expression is from Spencer ere test number 75
27177 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
27178 memset (®ex, 0, sizeof regex);
27179 for (i = 0; i <= UCHAR_MAX; i++)
27180 folded_chars[i] = i;
27181 regex.translate = folded_chars;
27182 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
27183 /* This should fail with _Invalid character class name_ error. */
27187 /* Ensure that [b-a] is diagnosed as invalid, when
27188 using RE_NO_EMPTY_RANGES. */
27189 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
27190 memset (®ex, 0, sizeof regex);
27191 s = re_compile_pattern ("a[b-a]", 6, ®ex);
27195 /* This should succeed, but does not for glibc-2.1.3. */
27196 memset (®ex, 0, sizeof regex);
27197 s = re_compile_pattern ("{1", 2, ®ex);
27201 /* The following example is derived from a problem report
27202 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
27203 memset (®ex, 0, sizeof regex);
27204 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
27207 /* This should match, but does not for glibc-2.2.1. */
27208 else if (re_match (®ex, "an", 2, 0, ®s) != 2)
27211 memset (®ex, 0, sizeof regex);
27212 s = re_compile_pattern ("x", 1, ®ex);
27215 /* glibc-2.2.93 does not work with a negative RANGE argument. */
27216 else if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
27219 /* The version of regex.c in older versions of gnulib
27220 ignored RE_ICASE. Detect that problem too. */
27221 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
27222 memset (®ex, 0, sizeof regex);
27223 s = re_compile_pattern ("x", 1, ®ex);
27226 else if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
27229 /* Catch a bug reported by Vin Shelton in
27230 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
27232 re_set_syntax (RE_SYNTAX_POSIX_BASIC
27233 & ~RE_CONTEXT_INVALID_DUP
27234 & ~RE_NO_EMPTY_RANGES);
27235 memset (®ex, 0, sizeof regex);
27236 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
27240 /* REG_STARTEND was added to glibc on 2004-01-15.
27241 Reject older versions. */
27242 if (! REG_STARTEND)
27246 /* It would be nice to reject hosts whose regoff_t values are too
27247 narrow (including glibc on hosts with 64-bit ptrdiff_t and
27248 32-bit int), but we should wait until glibc implements this
27249 feature. Otherwise, support for equivalence classes and
27250 multibyte collation symbols would always be broken except
27251 when compiling --without-included-regex. */
27252 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
27253 || sizeof (regoff_t) < sizeof (ssize_t))
27263 if ac_fn_c_try_run "$LINENO"; then :
27264 gl_cv_func_re_compile_pattern_working=yes
27266 gl_cv_func_re_compile_pattern_working=no
27268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27269 conftest.$ac_objext conftest.beam conftest.$ac_ext
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
27274 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
27275 case $gl_cv_func_re_compile_pattern_working in #(
27276 yes) ac_use_included_regex=no;; #(
27277 no) ac_use_included_regex=yes;;
27280 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
27284 if test $ac_use_included_regex = yes; then
27286 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
27289 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
27292 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
27295 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
27298 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
27301 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
27304 $as_echo "#define re_search rpl_re_search" >>confdefs.h
27307 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
27310 $as_echo "#define re_match rpl_re_match" >>confdefs.h
27313 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
27316 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
27319 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
27322 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
27325 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
27328 $as_echo "#define regexec rpl_regexec" >>confdefs.h
27331 $as_echo "#define regerror rpl_regerror" >>confdefs.h
27334 $as_echo "#define regfree rpl_regfree" >>confdefs.h
27338 if test $ac_use_included_regex = yes; then
27347 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
27356 for ac_header in libintl.h
27358 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
27359 if test "x$ac_cv_header_libintl_h" = xyes; then :
27360 cat >>confdefs.h <<_ACEOF
27361 #define HAVE_LIBINTL_H 1
27369 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
27371 if test "x$ac_cv_have_decl_isblank" = xyes; then :
27377 cat >>confdefs.h <<_ACEOF
27378 #define HAVE_DECL_ISBLANK $ac_have_decl
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
27389 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
27390 if ${gl_cv_func_rename_slash_dst_works+:} false; then :
27391 $as_echo_n "(cached) " >&6
27393 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
27394 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
27395 as_fn_error $? "cannot create temporary files" "$LINENO" 5
27396 # Assume that if we have lstat, we can also check symlinks.
27397 if test $ac_cv_func_lstat = yes; then
27398 ln -s conftest.f conftest.lnk
27400 if test "$cross_compiling" = yes; then :
27402 # Guess yes on glibc systems.
27403 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
27404 # If we don't know, assume the worst.
27405 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
27409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27410 /* end confdefs.h. */
27412 # include <stdio.h>
27413 # include <stdlib.h>
27419 if (rename ("conftest.f1", "conftest.f2/") == 0)
27421 if (rename ("conftest.d1", "conftest.d2/") != 0)
27424 if (rename ("conftest.f", "conftest.lnk/") == 0)
27433 if ac_fn_c_try_run "$LINENO"; then :
27434 gl_cv_func_rename_slash_dst_works=yes
27436 gl_cv_func_rename_slash_dst_works=no
27438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27439 conftest.$ac_objext conftest.beam conftest.$ac_ext
27442 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
27446 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
27447 case "$gl_cv_func_rename_slash_dst_works" in
27452 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
27458 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
27459 if ${gl_cv_func_rename_slash_src_works+:} false; then :
27460 $as_echo_n "(cached) " >&6
27462 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
27463 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
27464 as_fn_error $? "cannot create temporary files" "$LINENO" 5
27465 # Assume that if we have lstat, we can also check symlinks.
27466 if test $ac_cv_func_lstat = yes; then
27467 ln -s conftest.f conftest.lnk
27469 if test "$cross_compiling" = yes; then :
27471 # Guess yes on glibc systems.
27472 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
27473 # If we don't know, assume the worst.
27474 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
27478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27479 /* end confdefs.h. */
27481 # include <stdio.h>
27482 # include <stdlib.h>
27488 if (rename ("conftest.f1/", "conftest.d3") == 0)
27490 if (rename ("conftest.d1/", "conftest.d2") != 0)
27493 if (rename ("conftest.lnk/", "conftest.f") == 0)
27502 if ac_fn_c_try_run "$LINENO"; then :
27503 gl_cv_func_rename_slash_src_works=yes
27505 gl_cv_func_rename_slash_src_works=no
27507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27508 conftest.$ac_objext conftest.beam conftest.$ac_ext
27511 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
27515 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
27516 case "$gl_cv_func_rename_slash_src_works" in
27521 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
27528 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
27529 if ${gl_cv_func_rename_link_works+:} false; then :
27530 $as_echo_n "(cached) " >&6
27532 if test $ac_cv_func_link = yes; then
27533 rm -rf conftest.f conftest.f1
27534 if touch conftest.f && ln conftest.f conftest.f1 &&
27535 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
27536 if test "$cross_compiling" = yes; then :
27538 # Guess yes on glibc systems.
27539 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
27540 # If we don't know, assume the worst.
27541 *) gl_cv_func_rename_link_works="guessing no" ;;
27545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27546 /* end confdefs.h. */
27548 # include <stdio.h>
27549 # include <stdlib.h>
27550 # include <unistd.h>
27556 if (rename ("conftest.f", "conftest.f1"))
27558 if (unlink ("conftest.f1"))
27560 if (rename ("conftest.f", "conftest.f"))
27562 if (rename ("conftest.f1", "conftest.f1") == 0)
27570 if ac_fn_c_try_run "$LINENO"; then :
27571 gl_cv_func_rename_link_works=yes
27573 gl_cv_func_rename_link_works=no
27575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27576 conftest.$ac_objext conftest.beam conftest.$ac_ext
27580 gl_cv_func_rename_link_works="guessing no"
27582 rm -rf conftest.f conftest.f1
27584 gl_cv_func_rename_link_works=yes
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
27589 $as_echo "$gl_cv_func_rename_link_works" >&6; }
27590 case "$gl_cv_func_rename_link_works" in
27595 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
27601 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
27602 if ${gl_cv_func_rename_dest_works+:} false; then :
27603 $as_echo_n "(cached) " >&6
27605 rm -rf conftest.f conftest.d1 conftest.d2
27606 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
27607 as_fn_error $? "cannot create temporary files" "$LINENO" 5
27608 if test "$cross_compiling" = yes; then :
27610 # Guess yes on glibc systems.
27611 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
27612 # If we don't know, assume the worst.
27613 *) gl_cv_func_rename_dest_works="guessing no" ;;
27617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27618 /* end confdefs.h. */
27620 # include <stdio.h>
27621 # include <stdlib.h>
27627 if (rename ("conftest.d1", "conftest.d2") != 0)
27629 if (rename ("conftest.d2", "conftest.f") == 0)
27637 if ac_fn_c_try_run "$LINENO"; then :
27638 gl_cv_func_rename_dest_works=yes
27640 gl_cv_func_rename_dest_works=no
27642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27643 conftest.$ac_objext conftest.beam conftest.$ac_ext
27646 rm -rf conftest.f conftest.d1 conftest.d2
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
27650 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
27651 case "$gl_cv_func_rename_dest_works" in
27656 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
27661 if test $REPLACE_RENAME = 1; then
27670 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
27684 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
27694 if test $ac_cv_func_renameat = no; then
27696 elif test $REPLACE_RENAME = 1; then
27700 if test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1; then
27709 gl_LIBOBJS="$gl_LIBOBJS renameat.$ac_objext"
27712 if test $HAVE_RENAMEAT = 0; then
27721 gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
27735 $as_echo "#define GNULIB_TEST_RENAMEAT 1" >>confdefs.h
27742 for ac_func in rewinddir
27744 ac_fn_c_check_func "$LINENO" "rewinddir" "ac_cv_func_rewinddir"
27745 if test "x$ac_cv_func_rewinddir" = xyes; then :
27746 cat >>confdefs.h <<_ACEOF
27747 #define HAVE_REWINDDIR 1
27753 if test $ac_cv_func_rewinddir = no; then
27757 if test $HAVE_REWINDDIR = 0; then
27766 gl_LIBOBJS="$gl_LIBOBJS rewinddir.$ac_objext"
27780 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
27788 $as_echo_n "checking whether rmdir works... " >&6; }
27789 if ${gl_cv_func_rmdir_works+:} false; then :
27790 $as_echo_n "(cached) " >&6
27793 touch conftest.file
27794 if test "$cross_compiling" = yes; then :
27796 # Guess yes on glibc systems.
27797 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
27798 # If we don't know, assume the worst.
27799 *) gl_cv_func_rmdir_works="guessing no" ;;
27803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27804 /* end confdefs.h. */
27808 # include <unistd.h>
27809 #else /* on Windows with MSVC */
27810 # include <direct.h>
27817 if (!rmdir ("conftest.file/"))
27819 else if (errno != ENOTDIR)
27821 if (!rmdir ("conftest.dir/./"))
27829 if ac_fn_c_try_run "$LINENO"; then :
27830 gl_cv_func_rmdir_works=yes
27832 gl_cv_func_rmdir_works=no
27834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27835 conftest.$ac_objext conftest.beam conftest.$ac_ext
27838 rm -rf conftest.dir conftest.file
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
27841 $as_echo "$gl_cv_func_rmdir_works" >&6; }
27842 case "$gl_cv_func_rmdir_works" in
27849 if test $REPLACE_RMDIR = 1; then
27858 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
27872 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
27880 for ac_func in rpmatch
27882 ac_fn_c_check_func "$LINENO" "rpmatch" "ac_cv_func_rpmatch"
27883 if test "x$ac_cv_func_rpmatch" = xyes; then :
27884 cat >>confdefs.h <<_ACEOF
27885 #define HAVE_RPMATCH 1
27891 if test $ac_cv_func_rpmatch = no; then
27895 if test $HAVE_RPMATCH = 0; then
27904 gl_LIBOBJS="$gl_LIBOBJS rpmatch.$ac_objext"
27907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and YESEXPR" >&5
27908 $as_echo_n "checking for nl_langinfo and YESEXPR... " >&6; }
27909 if ${gl_cv_langinfo_yesexpr+:} false; then :
27910 $as_echo_n "(cached) " >&6
27912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27913 /* end confdefs.h. */
27914 #include <langinfo.h>
27918 char* cs = nl_langinfo(YESEXPR); return !cs;
27923 if ac_fn_c_try_link "$LINENO"; then :
27924 gl_cv_langinfo_yesexpr=yes
27926 gl_cv_langinfo_yesexpr=no
27928 rm -f core conftest.err conftest.$ac_objext \
27929 conftest$ac_exeext conftest.$ac_ext
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_langinfo_yesexpr" >&5
27933 $as_echo "$gl_cv_langinfo_yesexpr" >&6; }
27934 if test $gl_cv_langinfo_yesexpr = yes; then
27936 $as_echo "#define HAVE_LANGINFO_YESEXPR 1" >>confdefs.h
27952 $as_echo "#define GNULIB_TEST_RPMATCH 1" >>confdefs.h
27975 if test $ac_cv_func_secure_getenv = no; then
27976 HAVE_SECURE_GETENV=0
27979 if test $HAVE_SECURE_GETENV = 0; then
27988 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
27991 for ac_func in __secure_getenv
27993 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
27994 if test "x$ac_cv_func___secure_getenv" = xyes; then :
27995 cat >>confdefs.h <<_ACEOF
27996 #define HAVE___SECURE_GETENV 1
28002 if test $ac_cv_func___secure_getenv = no; then
28003 for ac_func in issetugid
28005 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
28006 if test "x$ac_cv_func_issetugid" = xyes; then :
28007 cat >>confdefs.h <<_ACEOF
28008 #define HAVE_ISSETUGID 1
28022 GNULIB_SECURE_GETENV=1
28028 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
28032 for ac_header in selinux/flask.h
28034 ac_fn_c_check_header_mongrel "$LINENO" "selinux/flask.h" "ac_cv_header_selinux_flask_h" "$ac_includes_default"
28035 if test "x$ac_cv_header_selinux_flask_h" = xyes; then :
28036 cat >>confdefs.h <<_ACEOF
28037 #define HAVE_SELINUX_FLASK_H 1
28052 gl_LIBOBJS="$gl_LIBOBJS selinux-at.$ac_objext"
28056 if test "$with_selinux" != no; then
28057 for ac_header in selinux/selinux.h
28059 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
28060 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
28061 cat >>confdefs.h <<_ACEOF
28062 #define HAVE_SELINUX_SELINUX_H 1
28070 if test "$ac_cv_header_selinux_selinux_h" = yes; then
28071 # We do have <selinux/selinux.h>, so do compile getfilecon.c
28072 # and arrange to use its wrappers.
28082 if test $gl_cv_have_include_next = yes; then
28083 gl_cv_next_selinux_selinux_h='<'selinux/selinux.h'>'
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <selinux/selinux.h>" >&5
28086 $as_echo_n "checking absolute name of <selinux/selinux.h>... " >&6; }
28087 if ${gl_cv_next_selinux_selinux_h+:} false; then :
28088 $as_echo_n "(cached) " >&6
28091 if test $ac_cv_header_selinux_selinux_h = yes; then
28096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28097 /* end confdefs.h. */
28098 #include <selinux/selinux.h>
28101 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28102 *) gl_absname_cpp="$ac_cpp" ;;
28107 gl_dirsep_regex='[/\\]'
28110 gl_dirsep_regex='\/'
28113 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28114 gl_header_literal_regex=`echo 'selinux/selinux.h' \
28115 | sed -e "$gl_make_literal_regex_sed"`
28116 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28117 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28123 gl_cv_absolute_selinux_selinux_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28124 sed -n "$gl_absolute_header_sed"`
28126 gl_header=$gl_cv_absolute_selinux_selinux_h
28127 gl_cv_next_selinux_selinux_h='"'$gl_header'"'
28129 gl_cv_next_selinux_selinux_h='<'selinux/selinux.h'>'
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_selinux_selinux_h" >&5
28135 $as_echo "$gl_cv_next_selinux_selinux_h" >&6; }
28137 NEXT_SELINUX_SELINUX_H=$gl_cv_next_selinux_selinux_h
28139 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28141 gl_next_as_first_directive='<'selinux/selinux.h'>'
28143 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28144 gl_next_as_first_directive=$gl_cv_next_selinux_selinux_h
28146 NEXT_AS_FIRST_DIRECTIVE_SELINUX_SELINUX_H=$gl_next_as_first_directive
28152 $as_echo "#define getfilecon rpl_getfilecon" >>confdefs.h
28155 $as_echo "#define lgetfilecon rpl_lgetfilecon" >>confdefs.h
28158 $as_echo "#define fgetfilecon rpl_fgetfilecon" >>confdefs.h
28162 case "$ac_cv_search_setfilecon:$ac_cv_header_selinux_selinux_h" in
28163 no:*) # already warned
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libselinux was found but selinux/selinux.h is missing." >&5
28167 $as_echo "$as_me: WARNING: libselinux was found but selinux/selinux.h is missing." >&2;}
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU tar will be compiled without SELinux support." >&5
28169 $as_echo "$as_me: WARNING: GNU tar will be compiled without SELinux support." >&2;}
28172 # Do as if <selinux/selinux.h> does not exist, even if
28173 # AC_CHECK_HEADERS_ONCE has already determined that it exists.
28174 $as_echo "#define HAVE_SELINUX_SELINUX_H 0" >>confdefs.h
28180 if test "$with_selinux" != no; then
28181 for ac_header in selinux/context.h
28183 ac_fn_c_check_header_mongrel "$LINENO" "selinux/context.h" "ac_cv_header_selinux_context_h" "$ac_includes_default"
28184 if test "x$ac_cv_header_selinux_context_h" = xyes; then :
28185 cat >>confdefs.h <<_ACEOF
28186 #define HAVE_SELINUX_CONTEXT_H 1
28190 SELINUX_CONTEXT_H=selinux/context.h
28196 SELINUX_CONTEXT_H=selinux/context.h
28199 if test -n "$SELINUX_CONTEXT_H"; then
28200 GL_GENERATE_SELINUX_CONTEXT_H_TRUE=
28201 GL_GENERATE_SELINUX_CONTEXT_H_FALSE='#'
28203 GL_GENERATE_SELINUX_CONTEXT_H_TRUE='#'
28204 GL_GENERATE_SELINUX_CONTEXT_H_FALSE=
28208 if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
28217 gl_LIBOBJS="$gl_LIBOBJS getfilecon.$ac_objext"
28222 if test $ac_cv_func_setenv = no; then
28225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
28226 $as_echo_n "checking whether setenv validates arguments... " >&6; }
28227 if ${gl_cv_func_setenv_works+:} false; then :
28228 $as_echo_n "(cached) " >&6
28230 if test "$cross_compiling" = yes; then :
28232 # Guess yes on glibc systems.
28233 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
28234 # If we don't know, assume the worst.
28235 *) gl_cv_func_setenv_works="guessing no" ;;
28239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28240 /* end confdefs.h. */
28242 #include <stdlib.h>
28244 #include <string.h>
28252 if (setenv ("", "", 0) != -1)
28254 else if (errno != EINVAL)
28258 if (setenv ("a", "=", 1) != 0)
28260 else if (strcmp (getenv ("a"), "=") != 0)
28269 if ac_fn_c_try_run "$LINENO"; then :
28270 gl_cv_func_setenv_works=yes
28272 gl_cv_func_setenv_works=no
28274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28275 conftest.$ac_objext conftest.beam conftest.$ac_ext
28279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
28280 $as_echo "$gl_cv_func_setenv_works" >&6; }
28281 case "$gl_cv_func_setenv_works" in
28289 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
28298 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
28312 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
28327 if test $gl_cv_have_include_next = yes; then
28328 gl_cv_next_signal_h='<'signal.h'>'
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
28331 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
28332 if ${gl_cv_next_signal_h+:} false; then :
28333 $as_echo_n "(cached) " >&6
28338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28339 /* end confdefs.h. */
28340 #include <signal.h>
28343 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28344 *) gl_absname_cpp="$ac_cpp" ;;
28349 gl_dirsep_regex='[/\\]'
28352 gl_dirsep_regex='\/'
28355 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28356 gl_header_literal_regex=`echo 'signal.h' \
28357 | sed -e "$gl_make_literal_regex_sed"`
28358 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28359 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28365 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28366 sed -n "$gl_absolute_header_sed"`
28368 gl_header=$gl_cv_absolute_signal_h
28369 gl_cv_next_signal_h='"'$gl_header'"'
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
28374 $as_echo "$gl_cv_next_signal_h" >&6; }
28376 NEXT_SIGNAL_H=$gl_cv_next_signal_h
28378 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28380 gl_next_as_first_directive='<'signal.h'>'
28382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28383 gl_next_as_first_directive=$gl_cv_next_signal_h
28385 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
28391 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
28392 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
28393 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
28394 #include <signal.h>
28397 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
28400 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
28409 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
28410 #include <signal.h>
28413 if test "x$ac_cv_type_sighandler_t" = xyes; then :
28416 HAVE_SIGHANDLER_T=0
28421 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
28422 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28424 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28425 if eval \${$as_gl_Symbol+:} false; then :
28426 $as_echo_n "(cached) " >&6
28428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28429 /* end confdefs.h. */
28430 #include <signal.h>
28441 if ac_fn_c_try_compile "$LINENO"; then :
28442 eval "$as_gl_Symbol=yes"
28444 eval "$as_gl_Symbol=no"
28446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28448 eval ac_res=\$$as_gl_Symbol
28449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28450 $as_echo "$ac_res" >&6; }
28451 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28452 cat >>confdefs.h <<_ACEOF
28453 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28456 eval ac_cv_have_decl_$gl_func=yes
28462 for ac_header in stdint.h
28464 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
28465 if test "x$ac_cv_header_stdint_h" = xyes; then :
28466 cat >>confdefs.h <<_ACEOF
28467 #define HAVE_STDINT_H 1
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
28475 $as_echo_n "checking for SIZE_MAX... " >&6; }
28476 if ${gl_cv_size_max+:} false; then :
28477 $as_echo_n "(cached) " >&6
28481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28482 /* end confdefs.h. */
28484 #include <limits.h>
28486 #include <stdint.h>
28493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28494 $EGREP "Found it" >/dev/null 2>&1; then :
28499 if test -z "$gl_cv_size_max"; then
28500 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
28501 #include <limits.h>"; then :
28504 size_t_bits_minus_1=
28507 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
28513 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
28514 if test $fits_in_uint = 1; then
28515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28516 /* end confdefs.h. */
28517 #include <stddef.h>
28519 extern unsigned long foo;
28529 if ac_fn_c_try_compile "$LINENO"; then :
28532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28534 if test $fits_in_uint = 1; then
28535 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
28537 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
28540 gl_cv_size_max='((size_t)~(size_t)0)'
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
28546 $as_echo "$gl_cv_size_max" >&6; }
28547 if test "$gl_cv_size_max" != yes; then
28549 cat >>confdefs.h <<_ACEOF
28550 #define SIZE_MAX $gl_cv_size_max
28558 ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
28560 if test "x$ac_cv_have_decl_sleep" = xyes; then :
28566 cat >>confdefs.h <<_ACEOF
28567 #define HAVE_DECL_SLEEP $ac_have_decl
28571 if test $ac_cv_have_decl_sleep != yes; then
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
28575 $as_echo_n "checking for working sleep... " >&6; }
28576 if ${gl_cv_func_sleep_works+:} false; then :
28577 $as_echo_n "(cached) " >&6
28579 if test "$cross_compiling" = yes; then :
28581 # Guess yes on glibc systems.
28582 *-gnu*) gl_cv_func_sleep_works="guessing yes" ;;
28583 # If we don't know, assume the worst.
28584 *) gl_cv_func_sleep_works="guessing no" ;;
28588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28589 /* end confdefs.h. */
28592 #include <unistd.h>
28593 #include <signal.h>
28595 handle_alarm (int sig)
28597 if (sig != SIGALRM)
28605 /* Failure to compile this test due to missing alarm is okay,
28606 since all such platforms (mingw) also lack sleep. */
28607 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
28608 unsigned int remaining;
28609 signal (SIGALRM, handle_alarm);
28611 remaining = sleep (pentecost);
28612 if (remaining > pentecost)
28614 if (remaining <= pentecost - 10)
28622 if ac_fn_c_try_run "$LINENO"; then :
28623 gl_cv_func_sleep_works=yes
28625 gl_cv_func_sleep_works=no
28627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28628 conftest.$ac_objext conftest.beam conftest.$ac_ext
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
28633 $as_echo "$gl_cv_func_sleep_works" >&6; }
28634 case "$gl_cv_func_sleep_works" in
28642 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
28651 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
28665 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
28671 gl_cv_func_snprintf_usable=no
28672 for ac_func in snprintf
28674 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
28675 if test "x$ac_cv_func_snprintf" = xyes; then :
28676 cat >>confdefs.h <<_ACEOF
28677 #define HAVE_SNPRINTF 1
28683 if test $ac_cv_func_snprintf = yes; then
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
28688 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
28689 if ${gl_cv_func_snprintf_size1+:} false; then :
28690 $as_echo_n "(cached) " >&6
28693 if test "$cross_compiling" = yes; then :
28694 gl_cv_func_snprintf_size1="guessing yes"
28696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28697 /* end confdefs.h. */
28701 # define my_snprintf snprintf
28703 # include <stdarg.h>
28704 static int my_snprintf (char *buf, int size, const char *format, ...)
28708 va_start (args, format);
28709 ret = vsnprintf (buf, size, format, args);
28716 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
28717 my_snprintf (buf, 1, "%d", 12345);
28718 return buf[1] != 'E';
28721 if ac_fn_c_try_run "$LINENO"; then :
28722 gl_cv_func_snprintf_size1=yes
28724 gl_cv_func_snprintf_size1=no
28726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28727 conftest.$ac_objext conftest.beam conftest.$ac_ext
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
28733 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
28735 case "$gl_cv_func_snprintf_size1" in
28738 case "$gl_cv_func_snprintf_retval_c99" in
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
28743 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
28744 if ${gl_cv_func_printf_positions+:} false; then :
28745 $as_echo_n "(cached) " >&6
28748 if test "$cross_compiling" = yes; then :
28751 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
28752 gl_cv_func_printf_positions="guessing no";;
28753 beos*) gl_cv_func_printf_positions="guessing no";;
28754 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
28755 *) gl_cv_func_printf_positions="guessing yes";;
28759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28760 /* end confdefs.h. */
28763 #include <string.h>
28764 /* The string "%2$d %1$d", with dollar characters protected from the shell's
28765 dollar expansion (possibly an autoconf bug). */
28766 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
28767 static char buf[100];
28770 sprintf (buf, format, 33, 55);
28771 return (strcmp (buf, "55 33") != 0);
28774 if ac_fn_c_try_run "$LINENO"; then :
28775 gl_cv_func_printf_positions=yes
28777 gl_cv_func_printf_positions=no
28779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28780 conftest.$ac_objext conftest.beam conftest.$ac_ext
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
28786 $as_echo "$gl_cv_func_printf_positions" >&6; }
28788 case "$gl_cv_func_printf_positions" in
28790 gl_cv_func_snprintf_usable=yes
28798 if test $gl_cv_func_snprintf_usable = no; then
28809 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
28811 if test $ac_cv_func_snprintf = yes; then
28818 if test $ac_cv_have_decl_snprintf = no; then
28819 HAVE_DECL_SNPRINTF=0
28833 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
28839 cat >>confdefs.h <<_ACEOF
28840 #define GNULIB_SNPRINTF 1
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
28846 $as_echo_n "checking for ssize_t... " >&6; }
28847 if ${gt_cv_ssize_t+:} false; then :
28848 $as_echo_n "(cached) " >&6
28850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28851 /* end confdefs.h. */
28852 #include <sys/types.h>
28856 int x = sizeof (ssize_t *) + sizeof (ssize_t);
28862 if ac_fn_c_try_compile "$LINENO"; then :
28867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
28870 $as_echo "$gt_cv_ssize_t" >&6; }
28871 if test $gt_cv_ssize_t = no; then
28873 $as_echo "#define ssize_t int" >>confdefs.h
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28881 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28882 if ${gl_cv_func_stat_dir_slash+:} false; then :
28883 $as_echo_n "(cached) " >&6
28885 if test "$cross_compiling" = yes; then :
28887 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28888 *) gl_cv_func_stat_dir_slash="guessing yes";;
28891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28892 /* end confdefs.h. */
28893 #include <sys/stat.h>
28898 struct stat st; return stat (".", &st) != stat ("./", &st);
28903 if ac_fn_c_try_run "$LINENO"; then :
28904 gl_cv_func_stat_dir_slash=yes
28906 gl_cv_func_stat_dir_slash=no
28908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28909 conftest.$ac_objext conftest.beam conftest.$ac_ext
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28914 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28916 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28917 if ${gl_cv_func_stat_file_slash+:} false; then :
28918 $as_echo_n "(cached) " >&6
28921 # Assume that if we have lstat, we can also check symlinks.
28922 if test $ac_cv_func_lstat = yes; then
28923 ln -s conftest.tmp conftest.lnk
28925 if test "$cross_compiling" = yes; then :
28927 # Guess yes on glibc systems.
28928 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28929 # If we don't know, assume the worst.
28930 *) gl_cv_func_stat_file_slash="guessing no" ;;
28934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28935 /* end confdefs.h. */
28936 #include <sys/stat.h>
28943 if (!stat ("conftest.tmp/", &st))
28946 if (!stat ("conftest.lnk/", &st))
28955 if ac_fn_c_try_run "$LINENO"; then :
28956 gl_cv_func_stat_file_slash=yes
28958 gl_cv_func_stat_file_slash=no
28960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28961 conftest.$ac_objext conftest.beam conftest.$ac_ext
28964 rm -f conftest.tmp conftest.lnk
28966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28967 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28968 case $gl_cv_func_stat_dir_slash in
28969 *no) REPLACE_STAT=1
28971 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28974 case $gl_cv_func_stat_file_slash in
28975 *no) REPLACE_STAT=1
28977 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28981 if test $REPLACE_STAT = 1; then
28990 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
29005 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
29013 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
29014 #include <sys/stat.h>
29016 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
29018 cat >>confdefs.h <<_ACEOF
29019 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
29023 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
29024 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
29025 $as_echo_n "(cached) " >&6
29027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29028 /* end confdefs.h. */
29030 #include <sys/types.h>
29031 #include <sys/stat.h>
29032 #if HAVE_SYS_TIME_H
29033 # include <sys/time.h>
29036 struct timespec ts;
29049 if ac_fn_c_try_compile "$LINENO"; then :
29050 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
29052 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
29054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
29057 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
29058 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
29060 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
29064 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
29065 #include <sys/stat.h>
29067 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
29069 cat >>confdefs.h <<_ACEOF
29070 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
29075 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
29076 #include <sys/stat.h>
29078 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
29080 cat >>confdefs.h <<_ACEOF
29081 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
29086 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
29087 #include <sys/stat.h>
29089 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
29091 cat >>confdefs.h <<_ACEOF
29092 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
29108 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
29109 #include <sys/stat.h>
29111 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
29113 cat >>confdefs.h <<_ACEOF
29114 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
29119 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
29120 #include <sys/stat.h>
29122 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
29124 cat >>confdefs.h <<_ACEOF
29125 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
29130 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
29131 #include <sys/stat.h>
29133 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
29135 cat >>confdefs.h <<_ACEOF
29136 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
29149 cat >>confdefs.h <<_ACEOF
29150 #define GNULIB_STATAT 1
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
29155 $as_echo_n "checking for working stdalign.h... " >&6; }
29156 if ${gl_cv_header_working_stdalign_h+:} false; then :
29157 $as_echo_n "(cached) " >&6
29159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29160 /* end confdefs.h. */
29161 #include <stdalign.h>
29162 #include <stddef.h>
29164 /* Test that alignof yields a result consistent with offsetof.
29165 This catches GCC bug 52023
29166 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
29168 template <class t> struct alignof_helper { char a; t b; };
29169 # define ao(type) offsetof (alignof_helper<type>, b)
29171 # define ao(type) offsetof (struct { char a; type b; }, b)
29173 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
29174 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
29175 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
29177 /* Test _Alignas only on platforms where gnulib can help. */
29179 ((defined __cplusplus && 201103 <= __cplusplus) \
29180 || (defined __APPLE__ && defined __MACH__ \
29181 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
29183 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
29184 || __ICC || 0x5110 <= __SUNPRO_C \
29185 || 1300 <= _MSC_VER)
29186 struct alignas_test { char c; char alignas (8) alignas_8; };
29187 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
29199 if ac_fn_c_try_compile "$LINENO"; then :
29200 gl_cv_header_working_stdalign_h=yes
29202 gl_cv_header_working_stdalign_h=no
29204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
29207 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
29209 if test $gl_cv_header_working_stdalign_h = yes; then
29212 STDALIGN_H='stdalign.h'
29216 if test -n "$STDALIGN_H"; then
29217 GL_GENERATE_STDALIGN_H_TRUE=
29218 GL_GENERATE_STDALIGN_H_FALSE='#'
29220 GL_GENERATE_STDALIGN_H_TRUE='#'
29221 GL_GENERATE_STDALIGN_H_FALSE=
29227 NEXT_STDARG_H='<stdarg.h>'
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
29229 $as_echo_n "checking for va_copy... " >&6; }
29230 if ${gl_cv_func_va_copy+:} false; then :
29231 $as_echo_n "(cached) " >&6
29234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29235 /* end confdefs.h. */
29236 #include <stdarg.h>
29242 void (*func) (va_list, va_list) = va_copy;
29249 if ac_fn_c_try_compile "$LINENO"; then :
29250 gl_cv_func_va_copy=yes
29252 gl_cv_func_va_copy=no
29254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
29258 $as_echo "$gl_cv_func_va_copy" >&6; }
29259 if test $gl_cv_func_va_copy = no; then
29260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29261 /* end confdefs.h. */
29262 #if defined _AIX && !defined __GNUC__
29267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29268 $EGREP "vaccine" >/dev/null 2>&1; then :
29275 if test $gl_aixcc = yes; then
29285 if test $gl_cv_have_include_next = yes; then
29286 gl_cv_next_stdarg_h='<'stdarg.h'>'
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
29289 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
29290 if ${gl_cv_next_stdarg_h+:} false; then :
29291 $as_echo_n "(cached) " >&6
29296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29297 /* end confdefs.h. */
29298 #include <stdarg.h>
29301 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29302 *) gl_absname_cpp="$ac_cpp" ;;
29307 gl_dirsep_regex='[/\\]'
29310 gl_dirsep_regex='\/'
29313 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29314 gl_header_literal_regex=`echo 'stdarg.h' \
29315 | sed -e "$gl_make_literal_regex_sed"`
29316 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29317 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29323 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29324 sed -n "$gl_absolute_header_sed"`
29326 gl_header=$gl_cv_absolute_stdarg_h
29327 gl_cv_next_stdarg_h='"'$gl_header'"'
29331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
29332 $as_echo "$gl_cv_next_stdarg_h" >&6; }
29334 NEXT_STDARG_H=$gl_cv_next_stdarg_h
29336 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29338 gl_next_as_first_directive='<'stdarg.h'>'
29340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29341 gl_next_as_first_directive=$gl_cv_next_stdarg_h
29343 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
29348 if test "$gl_cv_next_stdarg_h" = '""'; then
29349 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
29350 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
29354 saved_as_echo_n="$as_echo_n"
29356 if ${gl_cv_func___va_copy+:} false; then :
29357 $as_echo_n "(cached) " >&6
29360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29361 /* end confdefs.h. */
29362 #include <stdarg.h>
29375 if ac_fn_c_try_compile "$LINENO"; then :
29376 gl_cv_func___va_copy=yes
29378 gl_cv_func___va_copy=no
29380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29383 as_echo_n="$saved_as_echo_n"
29385 if test $gl_cv_func___va_copy = yes; then
29387 $as_echo "#define va_copy __va_copy" >>confdefs.h
29392 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
29398 if test -n "$STDARG_H"; then
29399 GL_GENERATE_STDARG_H_TRUE=
29400 GL_GENERATE_STDARG_H_FALSE='#'
29402 GL_GENERATE_STDARG_H_TRUE='#'
29403 GL_GENERATE_STDARG_H_FALSE=
29411 # Define two additional variables used in the Makefile substitution.
29413 if test "$ac_cv_header_stdbool_h" = yes; then
29416 STDBOOL_H='stdbool.h'
29419 if test -n "$STDBOOL_H"; then
29420 GL_GENERATE_STDBOOL_H_TRUE=
29421 GL_GENERATE_STDBOOL_H_FALSE='#'
29423 GL_GENERATE_STDBOOL_H_TRUE='#'
29424 GL_GENERATE_STDBOOL_H_FALSE=
29428 if test "$ac_cv_type__Bool" = yes; then
29439 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
29442 if test "x$ac_cv_type_max_align_t" = xyes; then :
29445 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
29448 if test $gt_cv_c_wchar_t = no; then
29452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
29453 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
29454 if ${gl_cv_decl_null_works+:} false; then :
29455 $as_echo_n "(cached) " >&6
29457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29458 /* end confdefs.h. */
29459 #include <stddef.h>
29460 int test[2 * (sizeof NULL == sizeof (void *)) -1];
29470 if ac_fn_c_try_compile "$LINENO"; then :
29471 gl_cv_decl_null_works=yes
29473 gl_cv_decl_null_works=no
29475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
29478 $as_echo "$gl_cv_decl_null_works" >&6; }
29479 if test $gl_cv_decl_null_works = no; then
29484 if test -n "$STDDEF_H"; then
29485 GL_GENERATE_STDDEF_H_TRUE=
29486 GL_GENERATE_STDDEF_H_FALSE='#'
29488 GL_GENERATE_STDDEF_H_TRUE='#'
29489 GL_GENERATE_STDDEF_H_FALSE=
29492 if test -n "$STDDEF_H"; then
29501 if test $gl_cv_have_include_next = yes; then
29502 gl_cv_next_stddef_h='<'stddef.h'>'
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
29505 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
29506 if ${gl_cv_next_stddef_h+:} false; then :
29507 $as_echo_n "(cached) " >&6
29512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29513 /* end confdefs.h. */
29514 #include <stddef.h>
29517 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29518 *) gl_absname_cpp="$ac_cpp" ;;
29523 gl_dirsep_regex='[/\\]'
29526 gl_dirsep_regex='\/'
29529 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29530 gl_header_literal_regex=`echo 'stddef.h' \
29531 | sed -e "$gl_make_literal_regex_sed"`
29532 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29533 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29539 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29540 sed -n "$gl_absolute_header_sed"`
29542 gl_header=$gl_cv_absolute_stddef_h
29543 gl_cv_next_stddef_h='"'$gl_header'"'
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
29548 $as_echo "$gl_cv_next_stddef_h" >&6; }
29550 NEXT_STDDEF_H=$gl_cv_next_stddef_h
29552 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29553 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29554 gl_next_as_first_directive='<'stddef.h'>'
29556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29557 gl_next_as_first_directive=$gl_cv_next_stddef_h
29559 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
29579 if test $gl_cv_have_include_next = yes; then
29580 gl_cv_next_stdio_h='<'stdio.h'>'
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
29583 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
29584 if ${gl_cv_next_stdio_h+:} false; then :
29585 $as_echo_n "(cached) " >&6
29590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29591 /* end confdefs.h. */
29595 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29596 *) gl_absname_cpp="$ac_cpp" ;;
29601 gl_dirsep_regex='[/\\]'
29604 gl_dirsep_regex='\/'
29607 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29608 gl_header_literal_regex=`echo 'stdio.h' \
29609 | sed -e "$gl_make_literal_regex_sed"`
29610 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29611 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29617 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29618 sed -n "$gl_absolute_header_sed"`
29620 gl_header=$gl_cv_absolute_stdio_h
29621 gl_cv_next_stdio_h='"'$gl_header'"'
29625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
29626 $as_echo "$gl_cv_next_stdio_h" >&6; }
29628 NEXT_STDIO_H=$gl_cv_next_stdio_h
29630 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29632 gl_next_as_first_directive='<'stdio.h'>'
29634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29635 gl_next_as_first_directive=$gl_cv_next_stdio_h
29637 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
29643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
29644 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
29645 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
29646 $as_echo_n "(cached) " >&6
29648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29649 /* end confdefs.h. */
29651 #define __STDC_FORMAT_MACROS 1
29653 #include <inttypes.h>
29654 /* For non-mingw systems, compilation will trivially succeed.
29655 For mingw, compilation will succeed for older mingw (system
29656 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
29657 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
29658 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
29659 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
29670 if ac_fn_c_try_compile "$LINENO"; then :
29671 gl_cv_func_printf_attribute_flavor=system
29673 gl_cv_func_printf_attribute_flavor=gnu
29675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
29678 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
29679 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
29681 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
29688 cat >>confdefs.h <<_ACEOF
29689 #define GNULIB_FSCANF 1
29696 cat >>confdefs.h <<_ACEOF
29697 #define GNULIB_SCANF 1
29722 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
29723 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29725 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29726 if eval \${$as_gl_Symbol+:} false; then :
29727 $as_echo_n "(cached) " >&6
29729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29730 /* end confdefs.h. */
29742 if ac_fn_c_try_compile "$LINENO"; then :
29743 eval "$as_gl_Symbol=yes"
29745 eval "$as_gl_Symbol=no"
29747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29749 eval ac_res=\$$as_gl_Symbol
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29751 $as_echo "$ac_res" >&6; }
29752 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29753 cat >>confdefs.h <<_ACEOF
29754 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29757 eval ac_cv_have_decl_$gl_func=yes
29772 if test $gl_cv_have_include_next = yes; then
29773 gl_cv_next_stdlib_h='<'stdlib.h'>'
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
29776 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
29777 if ${gl_cv_next_stdlib_h+:} false; then :
29778 $as_echo_n "(cached) " >&6
29783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29784 /* end confdefs.h. */
29785 #include <stdlib.h>
29788 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29789 *) gl_absname_cpp="$ac_cpp" ;;
29794 gl_dirsep_regex='[/\\]'
29797 gl_dirsep_regex='\/'
29800 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29801 gl_header_literal_regex=`echo 'stdlib.h' \
29802 | sed -e "$gl_make_literal_regex_sed"`
29803 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29804 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29810 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29811 sed -n "$gl_absolute_header_sed"`
29813 gl_header=$gl_cv_absolute_stdlib_h
29814 gl_cv_next_stdlib_h='"'$gl_header'"'
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
29819 $as_echo "$gl_cv_next_stdlib_h" >&6; }
29821 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
29823 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29824 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29825 gl_next_as_first_directive='<'stdlib.h'>'
29827 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29828 gl_next_as_first_directive=$gl_cv_next_stdlib_h
29830 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
29837 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 random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
29838 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29840 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29841 if eval \${$as_gl_Symbol+:} false; then :
29842 $as_echo_n "(cached) " >&6
29844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29845 /* end confdefs.h. */
29846 #include <stdlib.h>
29847 #if HAVE_SYS_LOADAVG_H
29848 # include <sys/loadavg.h>
29851 # include <random.h>
29863 if ac_fn_c_try_compile "$LINENO"; then :
29864 eval "$as_gl_Symbol=yes"
29866 eval "$as_gl_Symbol=no"
29868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29870 eval ac_res=\$$as_gl_Symbol
29871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29872 $as_echo "$ac_res" >&6; }
29873 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29874 cat >>confdefs.h <<_ACEOF
29875 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29878 eval ac_cv_have_decl_$gl_func=yes
29889 for ac_func in stpcpy
29891 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
29892 if test "x$ac_cv_func_stpcpy" = xyes; then :
29893 cat >>confdefs.h <<_ACEOF
29894 #define HAVE_STPCPY 1
29900 if test $ac_cv_func_stpcpy = no; then
29904 if test $HAVE_STPCPY = 0; then
29913 gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
29930 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
29937 for ac_func in strcasecmp
29939 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
29940 if test "x$ac_cv_func_strcasecmp" = xyes; then :
29941 cat >>confdefs.h <<_ACEOF
29942 #define HAVE_STRCASECMP 1
29948 if test $ac_cv_func_strcasecmp = no; then
29954 for ac_func in strncasecmp
29956 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
29957 if test "x$ac_cv_func_strncasecmp" = xyes; then :
29958 cat >>confdefs.h <<_ACEOF
29959 #define HAVE_STRNCASECMP 1
29965 if test $ac_cv_func_strncasecmp = yes; then
29970 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
29971 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
29977 cat >>confdefs.h <<_ACEOF
29978 #define HAVE_DECL_STRNCASECMP $ac_have_decl
29981 if test $ac_cv_have_decl_strncasecmp = no; then
29982 HAVE_DECL_STRNCASECMP=0
29986 if test $HAVE_STRCASECMP = 0; then
29995 gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
30001 if test $HAVE_STRNCASECMP = 0; then
30010 gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
30020 for ac_func in strchrnul
30022 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
30023 if test "x$ac_cv_func_strchrnul" = xyes; then :
30024 cat >>confdefs.h <<_ACEOF
30025 #define HAVE_STRCHRNUL 1
30031 if test $ac_cv_func_strchrnul = no; then
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
30035 $as_echo_n "checking whether strchrnul works... " >&6; }
30036 if ${gl_cv_func_strchrnul_works+:} false; then :
30037 $as_echo_n "(cached) " >&6
30039 if test "$cross_compiling" = yes; then :
30040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30041 /* end confdefs.h. */
30043 #if defined __CYGWIN__
30044 #include <cygwin/version.h>
30045 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
30053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30054 $EGREP "Lucky user" >/dev/null 2>&1; then :
30055 gl_cv_func_strchrnul_works="guessing yes"
30057 gl_cv_func_strchrnul_works="guessing no"
30063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30064 /* end confdefs.h. */
30066 #include <string.h> /* for strchrnul */
30071 const char *buf = "a";
30072 return strchrnul (buf, 'b') != buf + 1;
30078 if ac_fn_c_try_run "$LINENO"; then :
30079 gl_cv_func_strchrnul_works=yes
30081 gl_cv_func_strchrnul_works=no
30083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30084 conftest.$ac_objext conftest.beam conftest.$ac_ext
30089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
30090 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
30091 case "$gl_cv_func_strchrnul_works" in
30093 *) REPLACE_STRCHRNUL=1 ;;
30097 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
30106 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
30121 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
30129 if test $ac_cv_func_strdup = yes; then
30130 if test $gl_cv_func_malloc_posix != yes; then
30135 if test $ac_cv_have_decl_strdup = no; then
30139 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
30148 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
30163 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
30172 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
30173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
30174 $as_echo_n "checking for working strerror function... " >&6; }
30175 if ${gl_cv_func_working_strerror+:} false; then :
30176 $as_echo_n "(cached) " >&6
30178 if test "$cross_compiling" = yes; then :
30180 # Guess yes on glibc systems.
30181 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
30182 # If we don't know, assume the worst.
30183 *) gl_cv_func_working_strerror="guessing no" ;;
30187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30188 /* end confdefs.h. */
30189 #include <string.h>
30194 if (!*strerror (-2)) return 1;
30199 if ac_fn_c_try_run "$LINENO"; then :
30200 gl_cv_func_working_strerror=yes
30202 gl_cv_func_working_strerror=no
30204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30205 conftest.$ac_objext conftest.beam conftest.$ac_ext
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
30211 $as_echo "$gl_cv_func_working_strerror" >&6; }
30212 case "$gl_cv_func_working_strerror" in
30223 if test $REPLACE_STRERROR = 1; then
30232 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
30237 cat >>confdefs.h <<_ACEOF
30238 #define GNULIB_STRERROR 1
30253 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
30259 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
30268 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
30274 if test $ac_cv_header_sys_socket_h != yes; then
30275 for ac_header in winsock2.h
30277 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30278 if test "x$ac_cv_header_winsock2_h" = xyes; then :
30279 cat >>confdefs.h <<_ACEOF
30280 #define HAVE_WINSOCK2_H 1
30288 if test "$ac_cv_header_winsock2_h" = yes; then
30290 UNISTD_H_HAVE_WINSOCK2_H=1
30291 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30300 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
30308 $as_echo "#define my_strftime nstrftime" >>confdefs.h
30324 if test $ac_cv_have_decl_strndup = no; then
30325 HAVE_DECL_STRNDUP=0
30328 if test $ac_cv_func_strndup = yes; then
30330 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
30332 $as_echo_n "checking for working strndup... " >&6; }
30333 if ${gl_cv_func_strndup_works+:} false; then :
30334 $as_echo_n "(cached) " >&6
30336 if test "$cross_compiling" = yes; then :
30339 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
30340 *) gl_cv_func_strndup_works="guessing yes";;
30344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30345 /* end confdefs.h. */
30347 #include <string.h>
30348 #include <stdlib.h>
30353 #if !HAVE_DECL_STRNDUP
30358 char *strndup (const char *, size_t);
30361 s = strndup ("some longer string", 15);
30363 s = strndup ("shorter string", 13);
30364 return s[13] != '\0';
30369 if ac_fn_c_try_run "$LINENO"; then :
30370 gl_cv_func_strndup_works=yes
30372 gl_cv_func_strndup_works=no
30374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30375 conftest.$ac_objext conftest.beam conftest.$ac_ext
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
30380 $as_echo "$gl_cv_func_strndup_works" >&6; }
30381 case $gl_cv_func_strndup_works in
30382 *no) REPLACE_STRNDUP=1 ;;
30388 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
30397 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
30411 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
30421 if test $ac_cv_have_decl_strnlen = no; then
30422 HAVE_DECL_STRNLEN=0
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
30426 $as_echo_n "checking for working strnlen... " >&6; }
30427 if ${ac_cv_func_strnlen_working+:} false; then :
30428 $as_echo_n "(cached) " >&6
30430 if test "$cross_compiling" = yes; then :
30431 # Guess no on AIX systems, yes otherwise.
30433 aix*) ac_cv_func_strnlen_working=no;;
30434 *) ac_cv_func_strnlen_working=yes;;
30437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30438 /* end confdefs.h. */
30439 $ac_includes_default
30445 #define S_LEN (sizeof S - 1)
30447 /* At least one implementation is buggy: that of AIX 4.3 would
30448 give strnlen (S, 1) == 3. */
30451 for (i = 0; i < S_LEN + 1; ++i)
30453 int expected = i <= S_LEN ? i : S_LEN;
30454 if (strnlen (S, i) != expected)
30463 if ac_fn_c_try_run "$LINENO"; then :
30464 ac_cv_func_strnlen_working=yes
30466 ac_cv_func_strnlen_working=no
30468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30469 conftest.$ac_objext conftest.beam conftest.$ac_ext
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
30474 $as_echo "$ac_cv_func_strnlen_working" >&6; }
30475 test $ac_cv_func_strnlen_working = no && :
30478 if test $ac_cv_func_strnlen_working = no; then
30483 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
30492 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
30507 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
30516 if test "$ac_cv_have_decl_strtoimax" != yes; then
30517 HAVE_DECL_STRTOIMAX=0
30520 if test "$ac_cv_func_strtoimax" = yes; then
30522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
30523 $as_echo_n "checking whether strtoimax works... " >&6; }
30524 if ${gl_cv_func_strtoimax+:} false; then :
30525 $as_echo_n "(cached) " >&6
30527 if test "$cross_compiling" = yes; then :
30529 # Guess no on AIX 5.
30530 aix5*) gl_cv_func_strtoimax="guessing no" ;;
30531 # Guess yes otherwise.
30532 *) gl_cv_func_strtoimax="guessing yes" ;;
30536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30537 /* end confdefs.h. */
30540 #include <string.h>
30541 #include <inttypes.h>
30544 if (sizeof (intmax_t) > sizeof (int))
30546 const char *s = "4294967295";
30550 res = strtoimax (s, &p, 10);
30551 if (p != s + strlen (s))
30555 if (res != (intmax_t) 65535 * (intmax_t) 65537)
30560 const char *s = "2147483647";
30564 res = strtoimax (s, &p, 10);
30565 if (p != s + strlen (s))
30569 if (res != 2147483647)
30576 if ac_fn_c_try_run "$LINENO"; then :
30577 gl_cv_func_strtoimax=yes
30579 gl_cv_func_strtoimax=no
30581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30582 conftest.$ac_objext conftest.beam conftest.$ac_ext
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
30588 $as_echo "$gl_cv_func_strtoimax" >&6; }
30589 case "$gl_cv_func_strtoimax" in
30590 *no) REPLACE_STRTOIMAX=1 ;;
30593 if test "$ac_cv_have_decl_strtoimax" = yes; then
30594 # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
30595 REPLACE_STRTOIMAX=1
30600 if test $HAVE_DECL_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
30609 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
30612 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
30613 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
30619 cat >>confdefs.h <<_ACEOF
30620 #define HAVE_DECL_STRTOLL $ac_have_decl
30637 for ac_func in strtol
30639 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
30640 if test "x$ac_cv_func_strtol" = xyes; then :
30641 cat >>confdefs.h <<_ACEOF
30642 #define HAVE_STRTOL 1
30649 if test $ac_cv_func_strtol = no; then
30658 gl_LIBOBJS="$gl_LIBOBJS strtol.$ac_objext"
30664 if test "$ac_cv_type_long_long_int" = yes; then
30665 for ac_func in strtoll
30667 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
30668 if test "x$ac_cv_func_strtoll" = xyes; then :
30669 cat >>confdefs.h <<_ACEOF
30670 #define HAVE_STRTOLL 1
30676 if test $ac_cv_func_strtoll = no; then
30681 if test $HAVE_STRTOLL = 0; then
30690 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
30707 $as_echo "#define GNULIB_TEST_STRTOLL 1" >>confdefs.h
30712 for ac_func in strtoul
30714 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
30715 if test "x$ac_cv_func_strtoul" = xyes; then :
30716 cat >>confdefs.h <<_ACEOF
30717 #define HAVE_STRTOUL 1
30724 if test $ac_cv_func_strtoul = no; then
30733 gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext"
30739 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
30740 for ac_func in strtoull
30742 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
30743 if test "x$ac_cv_func_strtoull" = xyes; then :
30744 cat >>confdefs.h <<_ACEOF
30745 #define HAVE_STRTOULL 1
30751 if test $ac_cv_func_strtoull = no; then
30756 if test $HAVE_STRTOULL = 0; then
30765 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
30782 $as_echo "#define GNULIB_TEST_STRTOULL 1" >>confdefs.h
30791 if test "$ac_cv_have_decl_strtoumax" = yes; then
30792 if test "$ac_cv_func_strtoumax" != yes; then
30793 # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
30794 REPLACE_STRTOUMAX=1
30797 HAVE_DECL_STRTOUMAX=0
30800 if test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; then
30809 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
30812 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
30813 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
30819 cat >>confdefs.h <<_ACEOF
30820 #define HAVE_DECL_STRTOULL $ac_have_decl
30839 if test $ac_cv_func_symlink = no; then
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
30843 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
30844 if ${gl_cv_func_symlink_works+:} false; then :
30845 $as_echo_n "(cached) " >&6
30847 if test "$cross_compiling" = yes; then :
30849 # Guess yes on glibc systems.
30850 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
30851 # If we don't know, assume the worst.
30852 *) gl_cv_func_symlink_works="guessing no" ;;
30856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30857 /* end confdefs.h. */
30858 #include <unistd.h>
30864 if (!symlink ("a", "conftest.link/"))
30866 if (symlink ("conftest.f", "conftest.lnk2"))
30868 else if (!symlink ("a", "conftest.lnk2/"))
30876 if ac_fn_c_try_run "$LINENO"; then :
30877 gl_cv_func_symlink_works=yes
30879 gl_cv_func_symlink_works=no
30881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30882 conftest.$ac_objext conftest.beam conftest.$ac_ext
30885 rm -f conftest.f conftest.link conftest.lnk2
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
30888 $as_echo "$gl_cv_func_symlink_works" >&6; }
30889 case "$gl_cv_func_symlink_works" in
30897 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
30906 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
30920 $as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
30929 if test $ac_cv_func_symlinkat = no; then
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlinkat handles trailing slash correctly" >&5
30933 $as_echo_n "checking whether symlinkat handles trailing slash correctly... " >&6; }
30934 if ${gl_cv_func_symlinkat_works+:} false; then :
30935 $as_echo_n "(cached) " >&6
30937 if test "$cross_compiling" = yes; then :
30939 # Guess yes on glibc systems.
30940 *-gnu*) gl_cv_func_symlinkat_works="guessing yes" ;;
30941 # If we don't know, assume the worst.
30942 *) gl_cv_func_symlinkat_works="guessing no" ;;
30946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30947 /* end confdefs.h. */
30949 #include <unistd.h>
30955 if (!symlinkat ("a", AT_FDCWD, "conftest.link/"))
30957 if (symlinkat ("conftest.f", AT_FDCWD, "conftest.lnk2"))
30959 else if (!symlinkat ("a", AT_FDCWD, "conftest.lnk2/"))
30967 if ac_fn_c_try_run "$LINENO"; then :
30968 gl_cv_func_symlinkat_works=yes
30970 gl_cv_func_symlinkat_works=no
30972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30973 conftest.$ac_objext conftest.beam conftest.$ac_ext
30976 rm -f conftest.f conftest.link conftest.lnk2
30978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlinkat_works" >&5
30979 $as_echo "$gl_cv_func_symlinkat_works" >&6; }
30980 case "$gl_cv_func_symlinkat_works" in
30983 REPLACE_SYMLINKAT=1
30988 if test $HAVE_SYMLINKAT = 0 || test $REPLACE_SYMLINKAT = 1; then
30997 gl_LIBOBJS="$gl_LIBOBJS symlinkat.$ac_objext"
31011 $as_echo "#define GNULIB_TEST_SYMLINKAT 1" >>confdefs.h
31029 if test $gl_cv_have_include_next = yes; then
31030 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
31033 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
31034 if ${gl_cv_next_sys_stat_h+:} false; then :
31035 $as_echo_n "(cached) " >&6
31038 if test $ac_cv_header_sys_stat_h = yes; then
31043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31044 /* end confdefs.h. */
31045 #include <sys/stat.h>
31048 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31049 *) gl_absname_cpp="$ac_cpp" ;;
31054 gl_dirsep_regex='[/\\]'
31057 gl_dirsep_regex='\/'
31060 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31061 gl_header_literal_regex=`echo 'sys/stat.h' \
31062 | sed -e "$gl_make_literal_regex_sed"`
31063 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31064 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31070 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31071 sed -n "$gl_absolute_header_sed"`
31073 gl_header=$gl_cv_absolute_sys_stat_h
31074 gl_cv_next_sys_stat_h='"'$gl_header'"'
31076 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
31082 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
31084 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
31086 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31087 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31088 gl_next_as_first_directive='<'sys/stat.h'>'
31090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31091 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
31093 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
31105 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
31107 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
31111 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
31112 #include <sys/stat.h>
31114 if test "x$ac_cv_type_nlink_t" = xyes; then :
31118 $as_echo "#define nlink_t int" >>confdefs.h
31124 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
31125 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31127 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31128 if eval \${$as_gl_Symbol+:} false; then :
31129 $as_echo_n "(cached) " >&6
31131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31132 /* end confdefs.h. */
31133 #include <sys/stat.h>
31144 if ac_fn_c_try_compile "$LINENO"; then :
31145 eval "$as_gl_Symbol=yes"
31147 eval "$as_gl_Symbol=no"
31149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31151 eval ac_res=\$$as_gl_Symbol
31152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31153 $as_echo "$ac_res" >&6; }
31154 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31155 cat >>confdefs.h <<_ACEOF
31156 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31159 eval ac_cv_have_decl_$gl_func=yes
31173 if test $ac_cv_header_sysexits_h = yes; then
31184 if test $gl_cv_have_include_next = yes; then
31185 gl_cv_next_sysexits_h='<'sysexits.h'>'
31187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
31188 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
31189 if ${gl_cv_next_sysexits_h+:} false; then :
31190 $as_echo_n "(cached) " >&6
31193 if test $ac_cv_header_sysexits_h = yes; then
31198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31199 /* end confdefs.h. */
31200 #include <sysexits.h>
31203 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31204 *) gl_absname_cpp="$ac_cpp" ;;
31209 gl_dirsep_regex='[/\\]'
31212 gl_dirsep_regex='\/'
31215 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31216 gl_header_literal_regex=`echo 'sysexits.h' \
31217 | sed -e "$gl_make_literal_regex_sed"`
31218 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31219 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31225 gl_cv_absolute_sysexits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31226 sed -n "$gl_absolute_header_sed"`
31228 gl_header=$gl_cv_absolute_sysexits_h
31229 gl_cv_next_sysexits_h='"'$gl_header'"'
31231 gl_cv_next_sysexits_h='<'sysexits.h'>'
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
31237 $as_echo "$gl_cv_next_sysexits_h" >&6; }
31239 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
31241 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31243 gl_next_as_first_directive='<'sysexits.h'>'
31245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31246 gl_next_as_first_directive=$gl_cv_next_sysexits_h
31248 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
31253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31254 /* end confdefs.h. */
31255 #include <sysexits.h>
31267 case EX_UNAVAILABLE:
31284 if ac_fn_c_try_compile "$LINENO"; then :
31287 SYSEXITS_H=sysexits.h
31289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31292 SYSEXITS_H=sysexits.h
31296 if test -n "$SYSEXITS_H"; then
31297 GL_GENERATE_SYSEXITS_H_TRUE=
31298 GL_GENERATE_SYSEXITS_H_FALSE='#'
31300 GL_GENERATE_SYSEXITS_H_TRUE='#'
31301 GL_GENERATE_SYSEXITS_H_FALSE=
31319 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
31321 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
31327 cat >>confdefs.h <<_ACEOF
31328 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
31331 if test $ac_cv_have_decl_localtime_r = no; then
31332 HAVE_DECL_LOCALTIME_R=0
31336 if test $ac_cv_func_localtime_r = yes; then
31338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
31339 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
31340 if ${gl_cv_time_r_posix+:} false; then :
31341 $as_echo_n "(cached) " >&6
31343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31344 /* end confdefs.h. */
31349 /* We don't need to append 'restrict's to the argument types,
31350 even though the POSIX signature has the 'restrict's,
31351 since C99 says they can't affect type compatibility. */
31352 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
31354 /* Check the return type is a pointer.
31355 On HP-UX 10 it is 'int'. */
31356 *localtime_r (0, 0);
31362 if ac_fn_c_try_compile "$LINENO"; then :
31363 gl_cv_time_r_posix=yes
31365 gl_cv_time_r_posix=no
31367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
31371 $as_echo "$gl_cv_time_r_posix" >&6; }
31372 if test $gl_cv_time_r_posix = yes; then
31373 REPLACE_LOCALTIME_R=0
31375 REPLACE_LOCALTIME_R=1
31381 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
31390 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
31407 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
31417 ac_fn_c_check_type "$LINENO" "timezone_t" "ac_cv_type_timezone_t" "#include <time.h>
31419 if test "x$ac_cv_type_timezone_t" = xyes; then :
31421 cat >>confdefs.h <<_ACEOF
31422 #define HAVE_TIMEZONE_T 1
31428 if test "$ac_cv_type_timezone_t" = yes; then
31432 if test "$HAVE_TIMEZONE_T" = 0; then
31441 gl_LIBOBJS="$gl_LIBOBJS time_rz.$ac_objext"
31455 $as_echo "#define GNULIB_TEST_TIME_RZ 1" >>confdefs.h
31464 if test $ac_cv_func_timegm = yes; then
31465 if test $gl_cv_func_working_mktime = no; then
31466 # Assume that timegm is buggy if mktime is.
31473 if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
31482 gl_LIBOBJS="$gl_LIBOBJS timegm.$ac_objext"
31499 $as_echo "#define GNULIB_TEST_TIMEGM 1" >>confdefs.h
31516 if test $gl_cv_have_include_next = yes; then
31517 gl_cv_next_unistd_h='<'unistd.h'>'
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
31520 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
31521 if ${gl_cv_next_unistd_h+:} false; then :
31522 $as_echo_n "(cached) " >&6
31525 if test $ac_cv_header_unistd_h = yes; then
31530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31531 /* end confdefs.h. */
31532 #include <unistd.h>
31535 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31536 *) gl_absname_cpp="$ac_cpp" ;;
31541 gl_dirsep_regex='[/\\]'
31544 gl_dirsep_regex='\/'
31547 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31548 gl_header_literal_regex=`echo 'unistd.h' \
31549 | sed -e "$gl_make_literal_regex_sed"`
31550 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31551 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31557 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31558 sed -n "$gl_absolute_header_sed"`
31560 gl_header=$gl_cv_absolute_unistd_h
31561 gl_cv_next_unistd_h='"'$gl_header'"'
31563 gl_cv_next_unistd_h='<'unistd.h'>'
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
31569 $as_echo "$gl_cv_next_unistd_h" >&6; }
31571 NEXT_UNISTD_H=$gl_cv_next_unistd_h
31573 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31574 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31575 gl_next_as_first_directive='<'unistd.h'>'
31577 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31578 gl_next_as_first_directive=$gl_cv_next_unistd_h
31580 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
31585 if test $ac_cv_header_unistd_h = yes; then
31597 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
31598 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31600 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31601 if eval \${$as_gl_Symbol+:} false; then :
31602 $as_echo_n "(cached) " >&6
31604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31605 /* end confdefs.h. */
31608 # include <unistd.h>
31610 /* Some systems declare various items in the wrong headers. */
31611 #if !(defined __GLIBC__ && !defined __UCLIBC__)
31612 # include <fcntl.h>
31613 # include <stdio.h>
31614 # include <stdlib.h>
31615 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
31629 if ac_fn_c_try_compile "$LINENO"; then :
31630 eval "$as_gl_Symbol=yes"
31632 eval "$as_gl_Symbol=no"
31634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31636 eval ac_res=\$$as_gl_Symbol
31637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31638 $as_echo "$ac_res" >&6; }
31639 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31640 cat >>confdefs.h <<_ACEOF
31641 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31644 eval ac_cv_have_decl_$gl_func=yes
31654 if { test "$HAVE_LIBUNISTRING" != yes \
31659 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31660 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31661 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31662 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31663 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
31673 LIBUNISTRING_UNITYPES_H='unitypes.h'
31675 LIBUNISTRING_UNITYPES_H=
31681 if { test "$HAVE_LIBUNISTRING" != yes \
31686 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31687 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31688 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31689 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31690 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
31700 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
31702 LIBUNISTRING_UNIWIDTH_H=
31708 if { test "$HAVE_LIBUNISTRING" != yes \
31713 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31714 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31715 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31716 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31717 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
31727 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
31728 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
31730 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
31731 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
31740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unlink honors trailing slashes" >&5
31741 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
31742 if ${gl_cv_func_unlink_honors_slashes+:} false; then :
31743 $as_echo_n "(cached) " >&6
31745 touch conftest.file
31746 # Assume that if we have lstat, we can also check symlinks.
31747 if test $ac_cv_func_lstat = yes; then
31748 ln -s conftest.file conftest.lnk
31750 if test "$cross_compiling" = yes; then :
31752 # Guess yes on glibc systems.
31753 *-gnu*) gl_cv_func_unlink_honors_slashes="guessing yes" ;;
31754 # If we don't know, assume the worst.
31755 *) gl_cv_func_unlink_honors_slashes="guessing no" ;;
31759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31760 /* end confdefs.h. */
31762 # include <unistd.h>
31763 #else /* on Windows with MSVC */
31772 if (!unlink ("conftest.file/"))
31774 else if (errno != ENOTDIR)
31777 if (!unlink ("conftest.lnk/"))
31779 else if (errno != ENOTDIR)
31788 if ac_fn_c_try_run "$LINENO"; then :
31789 gl_cv_func_unlink_honors_slashes=yes
31791 gl_cv_func_unlink_honors_slashes=no
31793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31794 conftest.$ac_objext conftest.beam conftest.$ac_ext
31797 rm -f conftest.file conftest.lnk
31799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_honors_slashes" >&5
31800 $as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
31801 case "$gl_cv_func_unlink_honors_slashes" in
31807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unlink of a parent directory fails as it should" >&5
31808 $as_echo_n "checking whether unlink of a parent directory fails as it should... " >&6; }
31809 if ${gl_cv_func_unlink_parent_fails+:} false; then :
31810 $as_echo_n "(cached) " >&6
31815 # Use the mktemp program if available. If not available, hide the error
31817 tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
31818 test -n "$tmp" && test -d "$tmp"
31821 # Use a simple mkdir command. It is guaranteed to fail if the directory
31822 # already exists. $RANDOM is bash specific and expands to empty in shells
31823 # other than bash, ksh and zsh. Its use does not increase security;
31824 # rather, it minimizes the probability of failure in a very cluttered /tmp
31826 tmp=/tmp/gt$$-$RANDOM
31827 (umask 077 && mkdir "$tmp")
31829 mkdir "$tmp/subdir"
31830 GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
31831 export GL_SUBDIR_FOR_UNLINK
31832 if test "$cross_compiling" = yes; then :
31833 # If we don't know, assume the worst.
31834 gl_cv_func_unlink_parent_fails="guessing no"
31837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31838 /* end confdefs.h. */
31840 #include <stdlib.h>
31842 # include <unistd.h>
31843 #else /* on Windows with MSVC */
31844 # include <direct.h>
31850 if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
31852 else if (unlink ("..") == 0)
31858 if ac_fn_c_try_run "$LINENO"; then :
31859 gl_cv_func_unlink_parent_fails=yes
31861 gl_cv_func_unlink_parent_fails=no
31863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31864 conftest.$ac_objext conftest.beam conftest.$ac_ext
31867 unset GL_SUBDIR_FOR_UNLINK
31870 gl_cv_func_unlink_parent_fails="guessing no"
31874 gl_cv_func_unlink_parent_fails="guessing yes"
31879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_parent_fails" >&5
31880 $as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
31881 case "$gl_cv_func_unlink_parent_fails" in
31885 $as_echo "#define UNLINK_PARENT_BUG 1" >>confdefs.h
31890 if test $REPLACE_UNLINK = 1; then
31899 gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
31913 $as_echo "#define GNULIB_TEST_UNLINK 1" >>confdefs.h
31923 if test $ac_cv_func_unlinkat = no; then
31926 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
31928 # Solaris 9 has *at functions, but uniformly mishandles trailing
31929 # slash in all of them.
31933 # GNU/Hurd has unlinkat, but it has the same bug as unlink.
31934 # Darwin has unlinkat, but it has the same UNLINK_PARENT_BUG.
31935 if test $REPLACE_UNLINK = 1; then
31942 if test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1; then
31951 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
31965 $as_echo "#define GNULIB_TEST_UNLINKAT 1" >>confdefs.h
31973 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
31974 # Cygwin, and mingw never let anyone (even root) unlink directories.
31975 # If anyone knows of another system for which unlink can never
31976 # remove a directory, please report it to <bug-coreutils@gnu.org>.
31977 # Unfortunately this is difficult to test for, since it requires root access
31978 # and might create garbage in the file system,
31979 # so the code below simply relies on the kernel name and version number.
31982 linux-* | linux | \
31983 freebsd2.2* | freebsd[3-9]* | freebsd[1-9][0-9]* | \
31987 $as_echo "#define UNLINK_CANNOT_UNLINK_DIR 1" >>confdefs.h
31993 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
32015 if test $ac_cv_have_decl_unsetenv = no; then
32016 HAVE_DECL_UNSETENV=0
32018 for ac_func in unsetenv
32020 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
32021 if test "x$ac_cv_func_unsetenv" = xyes; then :
32022 cat >>confdefs.h <<_ACEOF
32023 #define HAVE_UNSETENV 1
32029 if test $ac_cv_func_unsetenv = no; then
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
32034 $as_echo_n "checking for unsetenv() return type... " >&6; }
32035 if ${gt_cv_func_unsetenv_ret+:} false; then :
32036 $as_echo_n "(cached) " >&6
32038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32039 /* end confdefs.h. */
32042 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
32043 #include <stdlib.h>
32048 int unsetenv (const char *name);
32058 if ac_fn_c_try_compile "$LINENO"; then :
32059 gt_cv_func_unsetenv_ret='int'
32061 gt_cv_func_unsetenv_ret='void'
32063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
32066 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
32067 if test $gt_cv_func_unsetenv_ret = 'void'; then
32069 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
32075 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
32076 if ${gl_cv_func_unsetenv_works+:} false; then :
32077 $as_echo_n "(cached) " >&6
32079 if test "$cross_compiling" = yes; then :
32081 # Guess yes on glibc systems.
32082 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
32083 # If we don't know, assume the worst.
32084 *) gl_cv_func_unsetenv_works="guessing no" ;;
32088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32089 /* end confdefs.h. */
32091 #include <stdlib.h>
32093 extern char **environ;
32099 char entry1[] = "a=1";
32100 char entry2[] = "b=2";
32101 char *env[] = { entry1, entry2, NULL };
32102 if (putenv ((char *) "a=1")) return 1;
32103 if (putenv (entry2)) return 2;
32106 if (getenv ("a")) return 3;
32107 if (!unsetenv ("") || errno != EINVAL) return 4;
32110 if (!getenv ("a")) return 5;
32113 if (getenv ("a")) return 6;
32119 if ac_fn_c_try_run "$LINENO"; then :
32120 gl_cv_func_unsetenv_works=yes
32122 gl_cv_func_unsetenv_works=no
32124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32125 conftest.$ac_objext conftest.beam conftest.$ac_ext
32129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
32130 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
32131 case "$gl_cv_func_unsetenv_works" in
32139 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
32148 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
32166 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
32176 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
32178 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
32179 if ${gl_cv_func_futimesat_works+:} false; then :
32180 $as_echo_n "(cached) " >&6
32182 touch conftest.file
32183 if test "$cross_compiling" = yes; then :
32185 # Guess yes on glibc systems.
32186 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
32187 # If we don't know, assume the worst.
32188 *) gl_cv_func_futimesat_works="guessing no" ;;
32192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32193 /* end confdefs.h. */
32195 #include <stddef.h>
32196 #include <sys/times.h>
32202 int fd = open ("conftest.file", O_RDWR);
32203 if (fd < 0) return 1;
32204 if (futimesat (fd, NULL, NULL)) return 2;
32210 if ac_fn_c_try_run "$LINENO"; then :
32211 gl_cv_func_futimesat_works=yes
32213 gl_cv_func_futimesat_works=no
32215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32216 conftest.$ac_objext conftest.beam conftest.$ac_ext
32219 rm -f conftest.file
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
32222 $as_echo "$gl_cv_func_futimesat_works" >&6; }
32223 case "$gl_cv_func_futimesat_works" in
32227 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
32237 if test $ac_cv_func_utimensat = no; then
32240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utimensat works" >&5
32241 $as_echo_n "checking whether utimensat works... " >&6; }
32242 if ${gl_cv_func_utimensat_works+:} false; then :
32243 $as_echo_n "(cached) " >&6
32245 if test "$cross_compiling" = yes; then :
32246 gl_cv_func_utimensat_works="guessing no"
32248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32249 /* end confdefs.h. */
32252 #include <sys/stat.h>
32253 #include <unistd.h>
32259 const char *f = "conftest.file";
32260 if (close (creat (f, 0600)))
32262 /* Test whether the AT_SYMLINK_NOFOLLOW flag is supported. */
32264 if (utimensat (AT_FDCWD, f, NULL, AT_SYMLINK_NOFOLLOW))
32267 /* Test whether UTIME_NOW and UTIME_OMIT work. */
32269 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
32270 if (utimensat (AT_FDCWD, f, ts, 0))
32275 struct timespec ts[2] = { { 1, UTIME_NOW }, { 1, UTIME_OMIT } };
32277 if (utimensat (AT_FDCWD, f, ts, 0))
32281 else if (st.st_ctime < st.st_atime)
32290 if ac_fn_c_try_run "$LINENO"; then :
32291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32292 /* end confdefs.h. */
32295 /* The Linux kernel added utimensat in 2.6.22, but has bugs with UTIME_OMIT
32296 in several file systems as recently as 2.6.32. Always replace utimensat
32297 to support older kernels. */
32309 if ac_fn_c_try_compile "$LINENO"; then :
32310 gl_cv_func_utimensat_works=yes
32312 gl_cv_func_utimensat_works="needs runtime check"
32314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32316 gl_cv_func_utimensat_works=no
32318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32319 conftest.$ac_objext conftest.beam conftest.$ac_ext
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_utimensat_works" >&5
32324 $as_echo "$gl_cv_func_utimensat_works" >&6; }
32325 if test "$gl_cv_func_utimensat_works" != yes; then
32326 REPLACE_UTIMENSAT=1
32330 if test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1; then
32339 gl_LIBOBJS="$gl_LIBOBJS utimensat.$ac_objext"
32353 $as_echo "#define GNULIB_TEST_UTIMENSAT 1" >>confdefs.h
32359 if test $ac_cv_func_vasnprintf = no; then
32370 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
32380 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
32390 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
32400 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
32402 if test $ac_cv_func_vasnprintf = yes; then
32404 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
32418 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
32419 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
32423 $as_echo "#define ptrdiff_t long" >>confdefs.h
32437 for ac_func in vasprintf
32439 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
32440 if test "x$ac_cv_func_vasprintf" = xyes; then :
32441 cat >>confdefs.h <<_ACEOF
32442 #define HAVE_VASPRINTF 1
32448 if test $ac_cv_func_vasprintf = no; then
32458 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
32468 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
32471 if test $ac_cv_func_vasprintf = yes; then
32472 REPLACE_VASPRINTF=1
32497 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
32503 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
32507 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
32510 # Check whether --with-packager was given.
32511 if test "${with_packager+set}" = set; then :
32512 withval=$with_packager; case $withval in
32515 cat >>confdefs.h <<_ACEOF
32516 #define PACKAGE_PACKAGER "$withval"
32525 # Check whether --with-packager-version was given.
32526 if test "${with_packager_version+set}" = set; then :
32527 withval=$with_packager_version; case $withval in
32530 cat >>confdefs.h <<_ACEOF
32531 #define PACKAGE_PACKAGER_VERSION "$withval"
32540 # Check whether --with-packager-bug-reports was given.
32541 if test "${with_packager_bug_reports+set}" = set; then :
32542 withval=$with_packager_bug_reports; case $withval in
32545 cat >>confdefs.h <<_ACEOF
32546 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
32554 if test "X$with_packager" = "X" && \
32555 test "X$with_packager_version$with_packager_bug_reports" != "X"
32557 as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5
32562 gl_cv_func_vsnprintf_usable=no
32563 for ac_func in vsnprintf
32565 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
32566 if test "x$ac_cv_func_vsnprintf" = xyes; then :
32567 cat >>confdefs.h <<_ACEOF
32568 #define HAVE_VSNPRINTF 1
32574 if test $ac_cv_func_vsnprintf = yes; then
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
32579 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
32580 if ${gl_cv_func_snprintf_size1+:} false; then :
32581 $as_echo_n "(cached) " >&6
32584 if test "$cross_compiling" = yes; then :
32585 gl_cv_func_snprintf_size1="guessing yes"
32587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32588 /* end confdefs.h. */
32592 # define my_snprintf snprintf
32594 # include <stdarg.h>
32595 static int my_snprintf (char *buf, int size, const char *format, ...)
32599 va_start (args, format);
32600 ret = vsnprintf (buf, size, format, args);
32607 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
32608 my_snprintf (buf, 1, "%d", 12345);
32609 return buf[1] != 'E';
32612 if ac_fn_c_try_run "$LINENO"; then :
32613 gl_cv_func_snprintf_size1=yes
32615 gl_cv_func_snprintf_size1=no
32617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32618 conftest.$ac_objext conftest.beam conftest.$ac_ext
32623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
32624 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
32626 case "$gl_cv_func_snprintf_size1" in
32629 case "$gl_cv_func_snprintf_retval_c99" in
32633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
32634 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
32635 if ${gl_cv_func_printf_positions+:} false; then :
32636 $as_echo_n "(cached) " >&6
32639 if test "$cross_compiling" = yes; then :
32642 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
32643 gl_cv_func_printf_positions="guessing no";;
32644 beos*) gl_cv_func_printf_positions="guessing no";;
32645 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
32646 *) gl_cv_func_printf_positions="guessing yes";;
32650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32651 /* end confdefs.h. */
32654 #include <string.h>
32655 /* The string "%2$d %1$d", with dollar characters protected from the shell's
32656 dollar expansion (possibly an autoconf bug). */
32657 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
32658 static char buf[100];
32661 sprintf (buf, format, 33, 55);
32662 return (strcmp (buf, "55 33") != 0);
32665 if ac_fn_c_try_run "$LINENO"; then :
32666 gl_cv_func_printf_positions=yes
32668 gl_cv_func_printf_positions=no
32670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32671 conftest.$ac_objext conftest.beam conftest.$ac_ext
32676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
32677 $as_echo "$gl_cv_func_printf_positions" >&6; }
32679 case "$gl_cv_func_printf_positions" in
32681 gl_cv_func_vsnprintf_usable=yes
32689 if test $gl_cv_func_vsnprintf_usable = no; then
32700 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
32702 if test $ac_cv_func_vsnprintf = yes; then
32703 REPLACE_VSNPRINTF=1
32709 if test $ac_cv_have_decl_vsnprintf = no; then
32710 HAVE_DECL_VSNPRINTF=0
32724 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
32740 if test $gl_cv_have_include_next = yes; then
32741 gl_cv_next_wchar_h='<'wchar.h'>'
32743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
32744 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
32745 if ${gl_cv_next_wchar_h+:} false; then :
32746 $as_echo_n "(cached) " >&6
32749 if test $ac_cv_header_wchar_h = yes; then
32754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32755 /* end confdefs.h. */
32759 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32760 *) gl_absname_cpp="$ac_cpp" ;;
32765 gl_dirsep_regex='[/\\]'
32768 gl_dirsep_regex='\/'
32771 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32772 gl_header_literal_regex=`echo 'wchar.h' \
32773 | sed -e "$gl_make_literal_regex_sed"`
32774 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32775 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32781 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32782 sed -n "$gl_absolute_header_sed"`
32784 gl_header=$gl_cv_absolute_wchar_h
32785 gl_cv_next_wchar_h='"'$gl_header'"'
32787 gl_cv_next_wchar_h='<'wchar.h'>'
32792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
32793 $as_echo "$gl_cv_next_wchar_h" >&6; }
32795 NEXT_WCHAR_H=$gl_cv_next_wchar_h
32797 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32798 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32799 gl_next_as_first_directive='<'wchar.h'>'
32801 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32802 gl_next_as_first_directive=$gl_cv_next_wchar_h
32804 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
32809 if test $ac_cv_header_wchar_h = yes; then
32819 if test $gt_cv_c_wint_t = yes; then
32827 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
32828 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
32830 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32831 if eval \${$as_gl_Symbol+:} false; then :
32832 $as_echo_n "(cached) " >&6
32834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32835 /* end confdefs.h. */
32837 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32839 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32840 included before <wchar.h>. */
32841 #if !(defined __GLIBC__ && !defined __UCLIBC__)
32842 # include <stddef.h>
32843 # include <stdio.h>
32857 if ac_fn_c_try_compile "$LINENO"; then :
32858 eval "$as_gl_Symbol=yes"
32860 eval "$as_gl_Symbol=no"
32862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32864 eval ac_res=\$$as_gl_Symbol
32865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32866 $as_echo "$ac_res" >&6; }
32867 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
32868 cat >>confdefs.h <<_ACEOF
32869 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32872 eval ac_cv_have_decl_$gl_func=yes
32887 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
32892 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
32893 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
32894 $as_echo_n "(cached) " >&6
32898 # Guess no on AIX and OSF/1.
32899 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
32900 # Guess yes otherwise.
32901 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
32903 if test $LOCALE_JA != none; then
32904 if test "$cross_compiling" = yes; then :
32907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32908 /* end confdefs.h. */
32910 #include <locale.h>
32911 #include <string.h>
32912 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32914 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32915 included before <wchar.h>. */
32916 #include <stddef.h>
32922 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32924 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
32928 memset (&state, '\0', sizeof (mbstate_t));
32929 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
32930 if (mbsinit (&state))
32936 if ac_fn_c_try_run "$LINENO"; then :
32937 gl_cv_func_mbrtowc_incomplete_state=yes
32939 gl_cv_func_mbrtowc_incomplete_state=no
32941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32942 conftest.$ac_objext conftest.beam conftest.$ac_ext
32948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
32949 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
32955 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
32956 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
32957 $as_echo_n "(cached) " >&6
32961 # Guess no on Solaris 8.
32962 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
32963 # Guess yes otherwise.
32964 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
32966 if test $LOCALE_ZH_CN != none; then
32967 if test "$cross_compiling" = yes; then :
32970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32971 /* end confdefs.h. */
32973 #include <locale.h>
32974 #include <stdlib.h>
32975 #include <string.h>
32976 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32978 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32979 included before <wchar.h>. */
32980 #include <stddef.h>
32986 /* This fails on Solaris 8:
32987 mbrtowc returns 2, and sets wc to 0x00F0.
32988 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
32989 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32991 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
32995 memset (&state, '\0', sizeof (mbstate_t));
32996 if (mbrtowc (&wc, input + 3, 6, &state) != 4
32997 && mbtowc (&wc, input + 3, 6) == 4)
33003 if ac_fn_c_try_run "$LINENO"; then :
33004 gl_cv_func_mbrtowc_sanitycheck=yes
33006 gl_cv_func_mbrtowc_sanitycheck=no
33008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33009 conftest.$ac_objext conftest.beam conftest.$ac_ext
33015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
33016 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
33018 REPLACE_MBSTATE_T=0
33019 case "$gl_cv_func_mbrtowc_incomplete_state" in
33021 *) REPLACE_MBSTATE_T=1 ;;
33023 case "$gl_cv_func_mbrtowc_sanitycheck" in
33025 *) REPLACE_MBSTATE_T=1 ;;
33028 REPLACE_MBSTATE_T=1
33033 if test $ac_cv_func_wcrtomb = no; then
33035 ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
33036 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
33038 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33039 included before <wchar.h>. */
33040 #include <stddef.h>
33046 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
33052 cat >>confdefs.h <<_ACEOF
33053 #define HAVE_DECL_WCRTOMB $ac_have_decl
33056 if test $ac_cv_have_decl_wcrtomb = yes; then
33060 if test $REPLACE_MBSTATE_T = 1; then
33068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
33069 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
33070 if ${gl_cv_func_wcrtomb_retval+:} false; then :
33071 $as_echo_n "(cached) " >&6
33075 # Guess no on AIX 4, OSF/1 and Solaris.
33076 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
33077 # Guess yes otherwise.
33078 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
33080 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
33081 if test "$cross_compiling" = yes; then :
33084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33085 /* end confdefs.h. */
33087 #include <locale.h>
33088 #include <string.h>
33089 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
33091 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33092 included before <wchar.h>. */
33093 #include <stddef.h>
33100 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
33102 if (wcrtomb (NULL, 0, NULL) != 1)
33105 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
33107 if (wcrtomb (NULL, 0, NULL) != 1)
33110 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
33112 if (wcrtomb (NULL, 0, NULL) != 1)
33115 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
33117 if (wcrtomb (NULL, 0, NULL) != 1)
33123 if ac_fn_c_try_run "$LINENO"; then :
33124 gl_cv_func_wcrtomb_retval=yes
33126 gl_cv_func_wcrtomb_retval=no
33128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33129 conftest.$ac_objext conftest.beam conftest.$ac_ext
33135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
33136 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
33137 case "$gl_cv_func_wcrtomb_retval" in
33139 *) REPLACE_WCRTOMB=1 ;;
33144 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
33153 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
33170 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
33179 if test $ac_cv_func_iswcntrl = yes; then
33187 if test $gt_cv_c_wint_t = yes; then
33203 if test $gl_cv_have_include_next = yes; then
33204 gl_cv_next_wctype_h='<'wctype.h'>'
33206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
33207 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
33208 if ${gl_cv_next_wctype_h+:} false; then :
33209 $as_echo_n "(cached) " >&6
33212 if test $ac_cv_header_wctype_h = yes; then
33217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33218 /* end confdefs.h. */
33219 #include <wctype.h>
33222 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33223 *) gl_absname_cpp="$ac_cpp" ;;
33228 gl_dirsep_regex='[/\\]'
33231 gl_dirsep_regex='\/'
33234 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33235 gl_header_literal_regex=`echo 'wctype.h' \
33236 | sed -e "$gl_make_literal_regex_sed"`
33237 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33238 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33244 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33245 sed -n "$gl_absolute_header_sed"`
33247 gl_header=$gl_cv_absolute_wctype_h
33248 gl_cv_next_wctype_h='"'$gl_header'"'
33250 gl_cv_next_wctype_h='<'wctype.h'>'
33255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
33256 $as_echo "$gl_cv_next_wctype_h" >&6; }
33258 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
33260 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33262 gl_next_as_first_directive='<'wctype.h'>'
33264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33265 gl_next_as_first_directive=$gl_cv_next_wctype_h
33267 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
33272 if test $ac_cv_header_wctype_h = yes; then
33273 if test $ac_cv_func_iswcntrl = yes; then
33274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
33275 $as_echo_n "checking whether iswcntrl works... " >&6; }
33276 if ${gl_cv_func_iswcntrl_works+:} false; then :
33277 $as_echo_n "(cached) " >&6
33280 if test "$cross_compiling" = yes; then :
33281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33282 /* end confdefs.h. */
33283 #include <stdlib.h>
33284 #if __GNU_LIBRARY__ == 1
33285 Linux libc5 i18n is broken.
33295 if ac_fn_c_try_compile "$LINENO"; then :
33296 gl_cv_func_iswcntrl_works="guessing yes"
33298 gl_cv_func_iswcntrl_works="guessing no"
33300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33304 /* end confdefs.h. */
33306 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
33307 included before <wchar.h>.
33308 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
33309 must be included before <wchar.h>. */
33310 #include <stddef.h>
33314 #include <wctype.h>
33315 int main () { return iswprint ('x') == 0; }
33318 if ac_fn_c_try_run "$LINENO"; then :
33319 gl_cv_func_iswcntrl_works=yes
33321 gl_cv_func_iswcntrl_works=no
33323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33324 conftest.$ac_objext conftest.beam conftest.$ac_ext
33329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
33330 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
33338 case "$gl_cv_func_iswcntrl_works" in
33339 *yes) REPLACE_ISWCNTRL=0 ;;
33340 *) REPLACE_ISWCNTRL=1 ;;
33344 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
33348 if test $REPLACE_ISWCNTRL = 1; then
33351 for ac_func in towlower
33353 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
33354 if test "x$ac_cv_func_towlower" = xyes; then :
33355 cat >>confdefs.h <<_ACEOF
33356 #define HAVE_TOWLOWER 1
33362 if test $ac_cv_func_towlower = yes; then
33365 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
33366 included before <wchar.h>.
33367 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
33368 must be included before <wchar.h>. */
33369 #include <stddef.h>
33374 # include <wctype.h>
33378 if test "x$ac_cv_have_decl_towlower" = xyes; then :
33384 cat >>confdefs.h <<_ACEOF
33385 #define HAVE_DECL_TOWLOWER $ac_have_decl
33388 if test $ac_cv_have_decl_towlower = yes; then
33397 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
33401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
33402 $as_echo_n "checking for wctype_t... " >&6; }
33403 if ${gl_cv_type_wctype_t+:} false; then :
33404 $as_echo_n "(cached) " >&6
33406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33407 /* end confdefs.h. */
33408 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
33409 included before <wchar.h>.
33410 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
33411 must be included before <wchar.h>. */
33412 #include <stddef.h>
33417 # include <wctype.h>
33429 if ac_fn_c_try_compile "$LINENO"; then :
33430 gl_cv_type_wctype_t=yes
33432 gl_cv_type_wctype_t=no
33434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
33438 $as_echo "$gl_cv_type_wctype_t" >&6; }
33439 if test $gl_cv_type_wctype_t = no; then
33443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
33444 $as_echo_n "checking for wctrans_t... " >&6; }
33445 if ${gl_cv_type_wctrans_t+:} false; then :
33446 $as_echo_n "(cached) " >&6
33448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33449 /* end confdefs.h. */
33450 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
33451 included before <wchar.h>.
33452 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
33453 must be included before <wchar.h>. */
33454 #include <stddef.h>
33458 #include <wctype.h>
33469 if ac_fn_c_try_compile "$LINENO"; then :
33470 gl_cv_type_wctrans_t=yes
33472 gl_cv_type_wctrans_t=no
33474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
33478 $as_echo "$gl_cv_type_wctrans_t" >&6; }
33479 if test $gl_cv_type_wctrans_t = no; then
33484 for gl_func in wctype iswctype wctrans towctrans ; do
33485 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33487 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33488 if eval \${$as_gl_Symbol+:} false; then :
33489 $as_echo_n "(cached) " >&6
33491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33492 /* end confdefs.h. */
33494 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
33496 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33497 included before <wchar.h>. */
33498 #if !(defined __GLIBC__ && !defined __UCLIBC__)
33499 # include <stddef.h>
33500 # include <stdio.h>
33502 # include <wchar.h>
33504 #include <wctype.h>
33515 if ac_fn_c_try_compile "$LINENO"; then :
33516 eval "$as_gl_Symbol=yes"
33518 eval "$as_gl_Symbol=no"
33520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33522 eval ac_res=\$$as_gl_Symbol
33523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33524 $as_echo "$ac_res" >&6; }
33525 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33526 cat >>confdefs.h <<_ACEOF
33527 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33530 eval ac_cv_have_decl_$gl_func=yes
33546 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
33547 /* AIX 3.2.5 declares wcwidth in <string.h>. */
33548 #include <string.h>
33549 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
33551 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
33552 before <wchar.h>. */
33553 #include <stddef.h>
33559 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
33565 cat >>confdefs.h <<_ACEOF
33566 #define HAVE_DECL_WCWIDTH $ac_have_decl
33569 if test $ac_cv_have_decl_wcwidth != yes; then
33570 HAVE_DECL_WCWIDTH=0
33573 if test $ac_cv_func_wcwidth = yes; then
33575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
33576 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
33577 if ${gl_cv_func_wcwidth_works+:} false; then :
33578 $as_echo_n "(cached) " >&6
33581 if test "$cross_compiling" = yes; then :
33584 # Guess yes on glibc and AIX 7 systems.
33585 *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
33586 *) gl_cv_func_wcwidth_works="guessing no";;
33590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33591 /* end confdefs.h. */
33593 #include <locale.h>
33594 /* AIX 3.2.5 declares wcwidth in <string.h>. */
33595 #include <string.h>
33596 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
33598 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
33599 before <wchar.h>. */
33600 #include <stddef.h>
33604 #if !HAVE_DECL_WCWIDTH
33606 # ifdef __cplusplus
33614 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
33616 if (wcwidth (0x0301) > 0)
33618 if (wcwidth (0x05B0) > 0)
33620 if (wcwidth (0x200B) > 0)
33626 if ac_fn_c_try_run "$LINENO"; then :
33627 gl_cv_func_wcwidth_works=yes
33629 gl_cv_func_wcwidth_works=no
33631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33632 conftest.$ac_objext conftest.beam conftest.$ac_ext
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
33638 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
33639 case "$gl_cv_func_wcwidth_works" in
33641 *no) REPLACE_WCWIDTH=1 ;;
33647 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
33656 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
33670 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
33677 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
33683 if test $REPLACE_WRITE = 1; then
33692 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
33707 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
33717 for ac_header in stdint.h
33719 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
33720 if test "x$ac_cv_header_stdint_h" = xyes; then :
33721 cat >>confdefs.h <<_ACEOF
33722 #define HAVE_STDINT_H 1
33741 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
33743 # End of code from modules
33764 gl_source_base='tests'
33765 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
33767 gl_module_indicator_condition=$gltests_WITNESS
33777 LIBGNU_LIBDEPS="$gl_libdeps"
33779 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
33791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
33792 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
33793 if ${ac_cv_header_time+:} false; then :
33794 $as_echo_n "(cached) " >&6
33796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33797 /* end confdefs.h. */
33798 #include <sys/types.h>
33799 #include <sys/time.h>
33805 if ((struct tm *) 0)
33811 if ac_fn_c_try_compile "$LINENO"; then :
33812 ac_cv_header_time=yes
33814 ac_cv_header_time=no
33816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
33819 $as_echo "$ac_cv_header_time" >&6; }
33820 if test $ac_cv_header_time = yes; then
33822 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
33826 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
33827 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
33829 cat >>confdefs.h <<_ACEOF
33830 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33834 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
33843 # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
33846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
33847 $as_echo_n "checking for library containing setsockopt... " >&6; }
33848 if ${ac_cv_search_setsockopt+:} false; then :
33849 $as_echo_n "(cached) " >&6
33851 ac_func_search_save_LIBS=$LIBS
33852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33853 /* end confdefs.h. */
33855 /* Override any GCC internal prototype to avoid an error.
33856 Use char because int might match the return type of a GCC
33857 builtin and then its argument prototype would still apply. */
33861 char setsockopt ();
33865 return setsockopt ();
33870 for ac_lib in '' socket; do
33871 if test -z "$ac_lib"; then
33872 ac_res="none required"
33875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33877 if ac_fn_c_try_link "$LINENO"; then :
33878 ac_cv_search_setsockopt=$ac_res
33880 rm -f core conftest.err conftest.$ac_objext \
33882 if ${ac_cv_search_setsockopt+:} false; then :
33886 if ${ac_cv_search_setsockopt+:} false; then :
33889 ac_cv_search_setsockopt=no
33891 rm conftest.$ac_ext
33892 LIBS=$ac_func_search_save_LIBS
33894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
33895 $as_echo "$ac_cv_search_setsockopt" >&6; }
33896 ac_res=$ac_cv_search_setsockopt
33897 if test "$ac_res" != no; then :
33898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
33902 $as_echo_n "checking for library containing setsockopt... " >&6; }
33903 if ${ac_cv_search_setsockopt+:} false; then :
33904 $as_echo_n "(cached) " >&6
33906 ac_func_search_save_LIBS=$LIBS
33907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33908 /* end confdefs.h. */
33910 /* Override any GCC internal prototype to avoid an error.
33911 Use char because int might match the return type of a GCC
33912 builtin and then its argument prototype would still apply. */
33916 char setsockopt ();
33920 return setsockopt ();
33925 for ac_lib in '' socket; do
33926 if test -z "$ac_lib"; then
33927 ac_res="none required"
33930 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
33932 if ac_fn_c_try_link "$LINENO"; then :
33933 ac_cv_search_setsockopt=$ac_res
33935 rm -f core conftest.err conftest.$ac_objext \
33937 if ${ac_cv_search_setsockopt+:} false; then :
33941 if ${ac_cv_search_setsockopt+:} false; then :
33944 ac_cv_search_setsockopt=no
33946 rm conftest.$ac_ext
33947 LIBS=$ac_func_search_save_LIBS
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
33950 $as_echo "$ac_cv_search_setsockopt" >&6; }
33951 ac_res=$ac_cv_search_setsockopt
33952 if test "$ac_res" != no; then :
33953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
33960 $as_echo_n "checking for library containing setsockopt... " >&6; }
33961 if ${ac_cv_search_setsockopt+:} false; then :
33962 $as_echo_n "(cached) " >&6
33964 ac_func_search_save_LIBS=$LIBS
33965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33966 /* end confdefs.h. */
33968 /* Override any GCC internal prototype to avoid an error.
33969 Use char because int might match the return type of a GCC
33970 builtin and then its argument prototype would still apply. */
33974 char setsockopt ();
33978 return setsockopt ();
33983 for ac_lib in '' nsl; do
33984 if test -z "$ac_lib"; then
33985 ac_res="none required"
33988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33990 if ac_fn_c_try_link "$LINENO"; then :
33991 ac_cv_search_setsockopt=$ac_res
33993 rm -f core conftest.err conftest.$ac_objext \
33995 if ${ac_cv_search_setsockopt+:} false; then :
33999 if ${ac_cv_search_setsockopt+:} false; then :
34002 ac_cv_search_setsockopt=no
34004 rm conftest.$ac_ext
34005 LIBS=$ac_func_search_save_LIBS
34007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
34008 $as_echo "$ac_cv_search_setsockopt" >&6; }
34009 ac_res=$ac_cv_search_setsockopt
34010 if test "$ac_res" != no; then :
34011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34016 case "$ac_cv_search_setsockopt" in
34017 -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
34023 if test $ac_cv_header_sys_mtio_h = yes; then
34024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remote tape header files" >&5
34025 $as_echo_n "checking for remote tape header files... " >&6; }
34026 if ${pu_cv_header_rmt+:} false; then :
34027 $as_echo_n "(cached) " >&6
34029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34030 /* end confdefs.h. */
34033 # include <sgtty.h>
34035 #include <sys/socket.h>
34037 if ac_fn_c_try_cpp "$LINENO"; then :
34038 pu_cv_header_rmt=yes
34040 pu_cv_header_rmt=no
34042 rm -f conftest.err conftest.i conftest.$ac_ext
34044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pu_cv_header_rmt" >&5
34045 $as_echo "$pu_cv_header_rmt" >&6; }
34046 test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
34051 for ac_header in sys/mtio.h
34053 ac_fn_c_check_header_mongrel "$LINENO" "sys/mtio.h" "ac_cv_header_sys_mtio_h" "$ac_includes_default"
34054 if test "x$ac_cv_header_sys_mtio_h" = xyes; then :
34055 cat >>confdefs.h <<_ACEOF
34056 #define HAVE_SYS_MTIO_H 1
34063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which ioctl field to test for reversed bytes" >&5
34064 $as_echo_n "checking which ioctl field to test for reversed bytes... " >&6; }
34065 if ${pu_cv_header_mtio_check_field+:} false; then :
34066 $as_echo_n "(cached) " >&6
34068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34069 /* end confdefs.h. */
34070 #include <sys/mtio.h>
34073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34074 $EGREP "mt_model" >/dev/null 2>&1; then :
34075 pu_cv_header_mtio_check_field=mt_model
34077 pu_cv_header_mtio_check_field=mt_type
34082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pu_cv_header_mtio_check_field" >&5
34083 $as_echo "$pu_cv_header_mtio_check_field" >&6; }
34085 cat >>confdefs.h <<_ACEOF
34086 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
34092 if test "x$DEFAULT_RMT_DIR" != x; then
34093 DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
34095 DEFAULT_RMT_DIR='$(libexecdir)'
34098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build rmt" >&5
34099 $as_echo_n "checking whether to build rmt... " >&6; }
34101 # Check whether --with-rmt was given.
34102 if test "${with_rmt+set}" = set; then :
34103 withval=$with_rmt; case $withval in
34104 yes|no) as_fn_error $? "Invalid argument to --with-rmt" "$LINENO" 5;;
34105 /*) DEFAULT_RMT_COMMAND=$withval
34106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, use $withval instead" >&5
34107 $as_echo "no, use $withval instead" >&6; };;
34108 *) as_fn_error $? "Argument to --with-rmt must be an absolute file name" "$LINENO" 5;;
34111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34112 $as_echo "yes" >&6; }
34114 if test "$PU_RMT_PROG" = ""; then
34115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not building rmt, required header files are missing" >&5
34116 $as_echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
34122 if test "x$DEFAULT_RMT_COMMAND" != x; then
34124 cat >>confdefs.h <<_ACEOF
34125 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
34129 if test "$pu_cv_header_rmt" = yes; then
34131 PU_RMT_COND_FALSE='#'
34133 PU_RMT_COND_TRUE='#'
34146 for ac_header in sys/buf.h
34148 ac_fn_c_check_header_compile "$LINENO" "sys/buf.h" "ac_cv_header_sys_buf_h" "#if HAVE_SYS_PARAM_H
34149 #include <sys/param.h>
34152 if test "x$ac_cv_header_sys_buf_h" = xyes; then :
34153 cat >>confdefs.h <<_ACEOF
34154 #define HAVE_SYS_BUF_H 1
34164 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
34165 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
34167 cat >>confdefs.h <<_ACEOF
34168 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
34181 $as_echo_n "checking for library containing gethostbyname... " >&6; }
34182 if ${ac_cv_search_gethostbyname+:} false; then :
34183 $as_echo_n "(cached) " >&6
34185 ac_func_search_save_LIBS=$LIBS
34186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34187 /* end confdefs.h. */
34189 /* Override any GCC internal prototype to avoid an error.
34190 Use char because int might match the return type of a GCC
34191 builtin and then its argument prototype would still apply. */
34195 char gethostbyname ();
34199 return gethostbyname ();
34204 for ac_lib in '' nsl; do
34205 if test -z "$ac_lib"; then
34206 ac_res="none required"
34209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34211 if ac_fn_c_try_link "$LINENO"; then :
34212 ac_cv_search_gethostbyname=$ac_res
34214 rm -f core conftest.err conftest.$ac_objext \
34216 if ${ac_cv_search_gethostbyname+:} false; then :
34220 if ${ac_cv_search_gethostbyname+:} false; then :
34223 ac_cv_search_gethostbyname=no
34225 rm conftest.$ac_ext
34226 LIBS=$ac_func_search_save_LIBS
34228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
34229 $as_echo "$ac_cv_search_gethostbyname" >&6; }
34230 ac_res=$ac_cv_search_gethostbyname
34231 if test "$ac_res" != no; then :
34232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34239 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
34240 # ------------------------------------------------
34241 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
34242 # Otherwise, run RUN-IF-NOT-FOUND.
34245 # Check whether --enable-gcc-warnings was given.
34246 if test "${enable_gcc_warnings+set}" = set; then :
34247 enableval=$enable_gcc_warnings; case $enableval in
34249 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
34251 gl_gcc_warnings=$enableval
34254 if test -d "$srcdir"/.git; then
34255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34256 /* end confdefs.h. */
34258 #if (4) < __GNUC__ || ((4) == __GNUC__ && (6) <= __GNUC_MINOR__)
34261 # error "your version of gcc is older than 4.6"
34273 if ac_fn_c_try_cpp "$LINENO"; then :
34274 gl_gcc_warnings=yes
34276 rm -f conftest.err conftest.i conftest.$ac_ext
34284 if test "$gl_gcc_warnings" = yes; then
34285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
34286 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
34287 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
34288 $as_echo_n "(cached) " >&6
34291 gl_save_compiler_FLAGS="$CFLAGS"
34292 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
34293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34294 /* end confdefs.h. */
34304 if ac_fn_c_try_link "$LINENO"; then :
34305 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
34307 gl_cv_warn_c__Werror__Wunknown_warning_option=no
34309 rm -f core conftest.err conftest.$ac_objext \
34310 conftest$ac_exeext conftest.$ac_ext
34311 CFLAGS="$gl_save_compiler_FLAGS"
34314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
34315 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
34316 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
34317 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
34319 gl_unknown_warnings_are_errors=
34323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
34324 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
34325 if ${gl_cv_warn_c__Werror+:} false; then :
34326 $as_echo_n "(cached) " >&6
34329 gl_save_compiler_FLAGS="$CFLAGS"
34330 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
34331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34332 /* end confdefs.h. */
34342 if ac_fn_c_try_link "$LINENO"; then :
34343 gl_cv_warn_c__Werror=yes
34345 gl_cv_warn_c__Werror=no
34347 rm -f core conftest.err conftest.$ac_objext \
34348 conftest$ac_exeext conftest.$ac_ext
34349 CFLAGS="$gl_save_compiler_FLAGS"
34352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
34353 $as_echo "$gl_cv_warn_c__Werror" >&6; }
34354 if test "x$gl_cv_warn_c__Werror" = xyes; then :
34355 as_fn_append WERROR_CFLAGS " -Werror"
34362 # This, $nw, is the list of warnings we disable.
34363 nw="$nw -Wformat-nonliteral" # warnings in Fedora 17 stdio.h
34364 nw="$nw -Wvla" # warnings in gettext.h
34365 nw="$nw -Wswitch-default" # Too many warnings for now
34366 nw="$nw -Wunsafe-loop-optimizations" # It's OK to omit unsafe optimizations.
34367 nw="$nw -Winline" # It's OK to not inline.
34368 nw="$nw -Wstrict-overflow" # It's OK to optimize strictly.
34369 nw="$nw -Wsuggest-attribute=pure" # Too many warnings for now.
34370 nw="$nw -Wstack-protector"
34374 if test -n "$GCC"; then
34376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
34377 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
34378 if ${gl_cv_cc_nomfi_supported+:} false; then :
34379 $as_echo_n "(cached) " >&6
34382 gl_save_CFLAGS="$CFLAGS"
34383 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
34384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34385 /* end confdefs.h. */
34395 if ac_fn_c_try_compile "$LINENO"; then :
34396 gl_cv_cc_nomfi_supported=yes
34398 gl_cv_cc_nomfi_supported=no
34400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34401 CFLAGS="$gl_save_CFLAGS"
34404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
34405 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
34407 if test "$gl_cv_cc_nomfi_supported" = yes; then
34408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
34409 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
34410 if ${gl_cv_cc_nomfi_needed+:} false; then :
34411 $as_echo_n "(cached) " >&6
34414 gl_save_CFLAGS="$CFLAGS"
34415 CFLAGS="$CFLAGS -W -Werror"
34416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34417 /* end confdefs.h. */
34420 typedef struct { int a; int b; } s_t;
34432 if ac_fn_c_try_compile "$LINENO"; then :
34433 gl_cv_cc_nomfi_needed=no
34435 gl_cv_cc_nomfi_needed=yes
34437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34438 CFLAGS="$gl_save_CFLAGS"
34442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
34443 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
34446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
34447 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
34448 if ${gl_cv_cc_uninitialized_supported+:} false; then :
34449 $as_echo_n "(cached) " >&6
34452 gl_save_CFLAGS="$CFLAGS"
34453 CFLAGS="$CFLAGS -Werror -Wuninitialized"
34454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34455 /* end confdefs.h. */
34465 if ac_fn_c_try_compile "$LINENO"; then :
34466 gl_cv_cc_uninitialized_supported=yes
34468 gl_cv_cc_uninitialized_supported=no
34470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34471 CFLAGS="$gl_save_CFLAGS"
34474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
34475 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
34479 # List all gcc warning categories.
34480 # To compare this list to your installed GCC's, run this Bash command:
34483 # <(sed -n 's/^ *\(-[^ ]*\) .*/\1/p' manywarnings.m4 | sort) \
34484 # <(gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort |
34486 # awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec))
34489 for gl_manywarn_item in \
34493 -Waggressive-loop-optimizations \
34496 -Wbad-function-cast \
34498 -Wbuiltin-macro-redefined \
34500 -Wchar-subscripts \
34505 -Wcoverage-mismatch \
34509 -Wdeprecated-declarations \
34510 -Wdesignated-init \
34511 -Wdisabled-optimization \
34512 -Wdiscarded-array-qualifiers \
34513 -Wdiscarded-qualifiers \
34515 -Wdouble-promotion \
34520 -Wformat-contains-nul \
34521 -Wformat-extra-args \
34522 -Wformat-nonliteral \
34523 -Wformat-security \
34524 -Wformat-signedness \
34526 -Wformat-zero-length \
34527 -Wfree-nonheap-object \
34528 -Wignored-qualifiers \
34530 -Wimplicit-function-declaration \
34532 -Wincompatible-pointer-types \
34536 -Wint-to-pointer-cast \
34537 -Winvalid-memory-model \
34539 -Wjump-misses-init \
34540 -Wlogical-not-parentheses \
34543 -Wmaybe-uninitialized \
34544 -Wmemset-transposed-args \
34546 -Wmissing-declarations \
34547 -Wmissing-field-initializers \
34548 -Wmissing-include-dirs \
34549 -Wmissing-parameter-type \
34550 -Wmissing-prototypes \
34556 -Wold-style-declaration \
34557 -Wold-style-definition \
34560 -Woverlength-strings \
34563 -Wpacked-bitfield-compat \
34567 -Wpointer-to-int-cast \
34569 -Wreturn-local-addr \
34573 -Wshift-count-negative \
34574 -Wshift-count-overflow \
34575 -Wsizeof-array-argument \
34576 -Wsizeof-pointer-memaccess \
34577 -Wstack-protector \
34578 -Wstrict-aliasing \
34579 -Wstrict-overflow \
34580 -Wstrict-prototypes \
34581 -Wsuggest-attribute=const \
34582 -Wsuggest-attribute=format \
34583 -Wsuggest-attribute=noreturn \
34584 -Wsuggest-attribute=pure \
34585 -Wsuggest-final-methods \
34586 -Wsuggest-final-types \
34596 -Wunknown-pragmas \
34597 -Wunsafe-loop-optimizations \
34599 -Wunused-but-set-parameter \
34600 -Wunused-but-set-variable \
34601 -Wunused-function \
34603 -Wunused-local-typedefs \
34605 -Wunused-parameter \
34608 -Wunused-variable \
34610 -Wvariadic-macros \
34611 -Wvector-operation-performance \
34613 -Wvolatile-register-var \
34617 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
34620 # gcc --help=warnings outputs an unusual form for these options; list
34621 # them here so that the above 'comm' command doesn't report a false match.
34622 gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2"
34623 gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc"
34625 # These are needed for older GCC versions.
34626 if test -n "$GCC"; then
34627 case `($CC --version) 2>/dev/null` in
34628 'gcc (GCC) '[0-3].* | \
34629 'gcc (GCC) '4.[0-7].*)
34630 gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option"
34631 gl_manywarn_set="$gl_manywarn_set -funit-at-a-time"
34636 # Disable specific options as needed.
34637 if test "$gl_cv_cc_nomfi_needed" = yes; then
34638 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
34641 if test "$gl_cv_cc_uninitialized_supported" = no; then
34642 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
34645 ws=$gl_manywarn_set
34653 *" $gl_warn_item "*)
34656 gl_warn_set="$gl_warn_set $gl_warn_item"
34664 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
34666 case $gl_positive in
34667 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
34669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
34670 $as_echo_n "checking whether C compiler handles $w... " >&6; }
34671 if eval \${$as_gl_Warn+:} false; then :
34672 $as_echo_n "(cached) " >&6
34675 gl_save_compiler_FLAGS="$CFLAGS"
34676 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
34677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34678 /* end confdefs.h. */
34688 if ac_fn_c_try_link "$LINENO"; then :
34689 eval "$as_gl_Warn=yes"
34691 eval "$as_gl_Warn=no"
34693 rm -f core conftest.err conftest.$ac_objext \
34694 conftest$ac_exeext conftest.$ac_ext
34695 CFLAGS="$gl_save_compiler_FLAGS"
34698 eval ac_res=\$$as_gl_Warn
34699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34700 $as_echo "$ac_res" >&6; }
34701 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
34702 as_fn_append WARN_CFLAGS " $w"
34708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
34709 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
34710 if ${gl_cv_warn_c__Wno_sign_compare+:} false; then :
34711 $as_echo_n "(cached) " >&6
34714 gl_save_compiler_FLAGS="$CFLAGS"
34715 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare"
34716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34717 /* end confdefs.h. */
34727 if ac_fn_c_try_link "$LINENO"; then :
34728 gl_cv_warn_c__Wno_sign_compare=yes
34730 gl_cv_warn_c__Wno_sign_compare=no
34732 rm -f core conftest.err conftest.$ac_objext \
34733 conftest$ac_exeext conftest.$ac_ext
34734 CFLAGS="$gl_save_compiler_FLAGS"
34737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
34738 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
34739 if test "x$gl_cv_warn_c__Wno_sign_compare" = xyes; then :
34740 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
34743 # Too many warnings for now
34745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
34746 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
34747 if ${gl_cv_warn_c__Wno_type_limits+:} false; then :
34748 $as_echo_n "(cached) " >&6
34751 gl_save_compiler_FLAGS="$CFLAGS"
34752 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
34753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34754 /* end confdefs.h. */
34764 if ac_fn_c_try_link "$LINENO"; then :
34765 gl_cv_warn_c__Wno_type_limits=yes
34767 gl_cv_warn_c__Wno_type_limits=no
34769 rm -f core conftest.err conftest.$ac_objext \
34770 conftest$ac_exeext conftest.$ac_ext
34771 CFLAGS="$gl_save_compiler_FLAGS"
34774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
34775 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
34776 if test "x$gl_cv_warn_c__Wno_type_limits" = xyes; then :
34777 as_fn_append WARN_CFLAGS " -Wno-type-limits"
34780 # It's OK to optimize based on types.
34782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
34783 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
34784 if ${gl_cv_warn_c__Wno_unused_parameter+:} false; then :
34785 $as_echo_n "(cached) " >&6
34788 gl_save_compiler_FLAGS="$CFLAGS"
34789 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
34790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34791 /* end confdefs.h. */
34801 if ac_fn_c_try_link "$LINENO"; then :
34802 gl_cv_warn_c__Wno_unused_parameter=yes
34804 gl_cv_warn_c__Wno_unused_parameter=no
34806 rm -f core conftest.err conftest.$ac_objext \
34807 conftest$ac_exeext conftest.$ac_ext
34808 CFLAGS="$gl_save_compiler_FLAGS"
34811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
34812 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
34813 if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes; then :
34814 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
34817 # Too many warnings for now
34819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
34820 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
34821 if ${gl_cv_warn_c__Wno_format_nonliteral+:} false; then :
34822 $as_echo_n "(cached) " >&6
34825 gl_save_compiler_FLAGS="$CFLAGS"
34826 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-nonliteral"
34827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34828 /* end confdefs.h. */
34838 if ac_fn_c_try_link "$LINENO"; then :
34839 gl_cv_warn_c__Wno_format_nonliteral=yes
34841 gl_cv_warn_c__Wno_format_nonliteral=no
34843 rm -f core conftest.err conftest.$ac_objext \
34844 conftest$ac_exeext conftest.$ac_ext
34845 CFLAGS="$gl_save_compiler_FLAGS"
34848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
34849 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
34850 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = xyes; then :
34851 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
34857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
34858 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
34859 if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
34860 $as_echo_n "(cached) " >&6
34863 gl_save_compiler_FLAGS="$CFLAGS"
34864 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
34865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34866 /* end confdefs.h. */
34876 if ac_fn_c_try_link "$LINENO"; then :
34877 gl_cv_warn_c__fdiagnostics_show_option=yes
34879 gl_cv_warn_c__fdiagnostics_show_option=no
34881 rm -f core conftest.err conftest.$ac_objext \
34882 conftest$ac_exeext conftest.$ac_ext
34883 CFLAGS="$gl_save_compiler_FLAGS"
34886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
34887 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
34888 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
34889 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
34894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
34895 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
34896 if ${gl_cv_warn_c__funit_at_a_time+:} false; then :
34897 $as_echo_n "(cached) " >&6
34900 gl_save_compiler_FLAGS="$CFLAGS"
34901 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -funit-at-a-time"
34902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34903 /* end confdefs.h. */
34913 if ac_fn_c_try_link "$LINENO"; then :
34914 gl_cv_warn_c__funit_at_a_time=yes
34916 gl_cv_warn_c__funit_at_a_time=no
34918 rm -f core conftest.err conftest.$ac_objext \
34919 conftest$ac_exeext conftest.$ac_ext
34920 CFLAGS="$gl_save_compiler_FLAGS"
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
34924 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
34925 if test "x$gl_cv_warn_c__funit_at_a_time" = xyes; then :
34926 as_fn_append WARN_CFLAGS " -funit-at-a-time"
34935 $as_echo "#define lint 1" >>confdefs.h
34939 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
34942 # Use a slightly smaller set of warning options for lib/.
34943 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
34945 nw="$nw -Wmissing-prototypes"
34946 nw="$nw -Wunused-macros"
34948 # These are for argp.
34949 nw="$nw -Wmissing-field-initializers"
34954 set x $WARN_CFLAGS; shift
34958 *" $gl_warn_item "*)
34961 gl_warn_set="$gl_warn_set $gl_warn_item"
34965 GNULIB_WARN_CFLAGS=$gl_warn_set
34968 # This is also for argp.
34970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
34971 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
34972 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
34973 $as_echo_n "(cached) " >&6
34976 gl_save_compiler_FLAGS="$CFLAGS"
34977 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
34978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34979 /* end confdefs.h. */
34989 if ac_fn_c_try_link "$LINENO"; then :
34990 gl_cv_warn_c__Wno_missing_field_initializers=yes
34992 gl_cv_warn_c__Wno_missing_field_initializers=no
34994 rm -f core conftest.err conftest.$ac_objext \
34995 conftest$ac_exeext conftest.$ac_ext
34996 CFLAGS="$gl_save_compiler_FLAGS"
34999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
35000 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
35001 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
35002 as_fn_append GNULIB_WARN_CFLAGS " -Wno-missing-field-initializers"
35009 # For gnulib-tests, the set is slightly smaller still.
35011 # It's not worth being this picky about test programs.
35012 nw="$nw -Wsuggest-attribute=const"
35015 set x $GNULIB_WARN_CFLAGS; shift
35019 *" $gl_warn_item "*)
35022 gl_warn_set="$gl_warn_set $gl_warn_item"
35026 GNULIB_TEST_WARN_CFLAGS=$gl_warn_set
35033 # Check whether --with-xattrs was given.
35034 if test "${with_xattrs+set}" = set; then :
35035 withval=$with_xattrs;
35042 # First check for <sys/xattr.h>
35043 for ac_header in sys/xattr.h
35045 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
35046 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
35047 cat >>confdefs.h <<_ACEOF
35048 #define HAVE_SYS_XATTR_H 1
35055 if test "$ac_cv_header_sys_xattr_h" = yes; then
35056 TAR_COND_XATTR_H_TRUE=
35057 TAR_COND_XATTR_H_FALSE='#'
35059 TAR_COND_XATTR_H_TRUE='#'
35060 TAR_COND_XATTR_H_FALSE=
35063 if test "$ac_cv_header_sys_xattr_h" != yes; then
35064 for ac_header in attr/xattr.h
35066 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
35067 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
35068 cat >>confdefs.h <<_ACEOF
35069 #define HAVE_ATTR_XATTR_H 1
35076 if test "$ac_cv_header_attr_xattr_h" = yes; then
35077 TAR_COND_XATTR_H_TRUE=
35078 TAR_COND_XATTR_H_FALSE='#'
35080 TAR_COND_XATTR_H_TRUE='#'
35081 TAR_COND_XATTR_H_FALSE=
35086 if test "$with_xattrs" != no; then
35087 for i in getxattr fgetxattr lgetxattr \
35088 setxattr fsetxattr lsetxattr \
35089 listxattr flistxattr llistxattr
35091 as_ac_Search=`$as_echo "ac_cv_search_$i" | $as_tr_sh`
35092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $i" >&5
35093 $as_echo_n "checking for library containing $i... " >&6; }
35094 if eval \${$as_ac_Search+:} false; then :
35095 $as_echo_n "(cached) " >&6
35097 ac_func_search_save_LIBS=$LIBS
35098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35099 /* end confdefs.h. */
35101 /* Override any GCC internal prototype to avoid an error.
35102 Use char because int might match the return type of a GCC
35103 builtin and then its argument prototype would still apply. */
35116 for ac_lib in '' attr; do
35117 if test -z "$ac_lib"; then
35118 ac_res="none required"
35121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35123 if ac_fn_c_try_link "$LINENO"; then :
35124 eval "$as_ac_Search=\$ac_res"
35126 rm -f core conftest.err conftest.$ac_objext \
35128 if eval \${$as_ac_Search+:} false; then :
35132 if eval \${$as_ac_Search+:} false; then :
35135 eval "$as_ac_Search=no"
35137 rm conftest.$ac_ext
35138 LIBS=$ac_func_search_save_LIBS
35140 eval ac_res=\$$as_ac_Search
35141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35142 $as_echo "$ac_res" >&6; }
35143 eval ac_res=\$$as_ac_Search
35144 if test "$ac_res" != no; then :
35145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35149 eval found=\$ac_cv_search_$i
35150 test "$found" = "no" && break
35153 if test "$found" != no; then
35155 $as_echo "#define HAVE_XATTRS /**/" >>confdefs.h
35165 ac_fn_c_check_decl "$LINENO" "getgrgid" "ac_cv_have_decl_getgrgid" "#include <grp.h>
35167 if test "x$ac_cv_have_decl_getgrgid" = xyes; then :
35173 cat >>confdefs.h <<_ACEOF
35174 #define HAVE_DECL_GETGRGID $ac_have_decl
35177 ac_fn_c_check_decl "$LINENO" "getpwuid" "ac_cv_have_decl_getpwuid" "#include <pwd.h>
35179 if test "x$ac_cv_have_decl_getpwuid" = xyes; then :
35185 cat >>confdefs.h <<_ACEOF
35186 #define HAVE_DECL_GETPWUID $ac_have_decl
35189 ac_fn_c_check_decl "$LINENO" "time" "ac_cv_have_decl_time" "#include <time.h>
35191 if test "x$ac_cv_have_decl_time" = xyes; then :
35197 cat >>confdefs.h <<_ACEOF
35198 #define HAVE_DECL_TIME $ac_have_decl
35202 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
35203 if test "x$ac_cv_func_waitpid" = xyes; then :
35204 $as_echo "#define HAVE_WAITPID 1" >>confdefs.h
35207 case " $LIBOBJS " in
35208 *" waitpid.$ac_objext "* ) ;;
35209 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
35218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remote shell" >&5
35219 $as_echo_n "checking for remote shell... " >&6; }
35220 if ${tar_cv_path_RSH+:} false; then :
35221 $as_echo_n "(cached) " >&6
35223 if test -n "$RSH"; then
35224 tar_cv_path_RSH=$RSH
35227 for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
35228 /usr/bin/nsh /usr/bin/rcmd
35230 # Prefer a non-symlink rsh to a symlink one, so that binaries built
35231 # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
35232 # will run on AIX 4.3.0, which has only /usr/bin/rsh.
35233 if test -f $ac_file; then
35234 if (test -h $ac_file) 2>/dev/null; then
35235 test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
35237 tar_cv_path_RSH=$ac_file
35244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tar_cv_path_RSH" >&5
35245 $as_echo "$tar_cv_path_RSH" >&6; }
35246 if test $tar_cv_path_RSH = no; then
35247 for ac_header in netdb.h
35249 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
35250 if test "x$ac_cv_header_netdb_h" = xyes; then :
35251 cat >>confdefs.h <<_ACEOF
35252 #define HAVE_NETDB_H 1
35261 cat >>confdefs.h <<_ACEOF
35262 #define REMOTE_SHELL "$tar_cv_path_RSH"
35271 # Check whether --with-compress was given.
35272 if test "${with_compress+set}" = set; then :
35273 withval=$with_compress; tar_cv_compressor_compress=${withval}
35275 tar_cv_compressor_compress=compress
35279 cat >>confdefs.h <<_ACEOF
35280 #define COMPRESS_PROGRAM "$tar_cv_compressor_compress"
35287 # Check whether --with-gzip was given.
35288 if test "${with_gzip+set}" = set; then :
35289 withval=$with_gzip; tar_cv_compressor_gzip=${withval}
35291 tar_cv_compressor_gzip=gzip
35295 cat >>confdefs.h <<_ACEOF
35296 #define GZIP_PROGRAM "$tar_cv_compressor_gzip"
35303 # Check whether --with-bzip2 was given.
35304 if test "${with_bzip2+set}" = set; then :
35305 withval=$with_bzip2; tar_cv_compressor_bzip2=${withval}
35307 tar_cv_compressor_bzip2=bzip2
35311 cat >>confdefs.h <<_ACEOF
35312 #define BZIP2_PROGRAM "$tar_cv_compressor_bzip2"
35319 # Check whether --with-lzip was given.
35320 if test "${with_lzip+set}" = set; then :
35321 withval=$with_lzip; tar_cv_compressor_lzip=${withval}
35323 tar_cv_compressor_lzip=lzip
35327 cat >>confdefs.h <<_ACEOF
35328 #define LZIP_PROGRAM "$tar_cv_compressor_lzip"
35335 # Check whether --with-lzma was given.
35336 if test "${with_lzma+set}" = set; then :
35337 withval=$with_lzma; tar_cv_compressor_lzma=${withval}
35339 tar_cv_compressor_lzma=lzma
35343 cat >>confdefs.h <<_ACEOF
35344 #define LZMA_PROGRAM "$tar_cv_compressor_lzma"
35351 # Check whether --with-lzop was given.
35352 if test "${with_lzop+set}" = set; then :
35353 withval=$with_lzop; tar_cv_compressor_lzop=${withval}
35355 tar_cv_compressor_lzop=lzop
35359 cat >>confdefs.h <<_ACEOF
35360 #define LZOP_PROGRAM "$tar_cv_compressor_lzop"
35367 # Check whether --with-xz was given.
35368 if test "${with_xz+set}" = set; then :
35369 withval=$with_xz; tar_cv_compressor_xz=${withval}
35371 tar_cv_compressor_xz=xz
35375 cat >>confdefs.h <<_ACEOF
35376 #define XZ_PROGRAM "$tar_cv_compressor_xz"
35380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default archive format" >&5
35381 $as_echo_n "checking for default archive format... " >&6; }
35385 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
35386 DEFAULT_ARCHIVE_FORMAT="GNU"
35388 case $DEFAULT_ARCHIVE_FORMAT in
35389 V7|OLDGNU|USTAR|POSIX|GNU) ;;
35390 *) as_fn_error $? "Invalid format name" "$LINENO" 5;;
35393 cat >>confdefs.h <<_ACEOF
35394 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
35397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_ARCHIVE_FORMAT" >&5
35398 $as_echo "$DEFAULT_ARCHIVE_FORMAT" >&6; }
35400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default archive" >&5
35401 $as_echo_n "checking for default archive... " >&6; }
35404 if test -z "$DEFAULT_ARCHIVE"; then
35407 if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
35408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DEFAULT_ARCHIVE '$DEFAULT_ARCHIVE' not found on this system" >&5
35409 $as_echo "$as_me: WARNING: DEFAULT_ARCHIVE '$DEFAULT_ARCHIVE' not found on this system" >&2;}
35411 # FIXME: Look for DEFTAPE in <sys/mtio.h>.
35412 # FIXME: Let DEVICE_PREFIX be configured from the environment.
35413 # FIXME: Rearrange, here.
35414 case $DEFAULT_ARCHIVE in
35417 $as_echo "#define DENSITY_LETTER 1" >>confdefs.h
35419 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
35422 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
35428 case "$device_prefix" in
35431 cat >>confdefs.h <<_ACEOF
35432 #define DEVICE_PREFIX "$device_prefix"
35439 cat >>confdefs.h <<_ACEOF
35440 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
35443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_ARCHIVE" >&5
35444 $as_echo "$DEFAULT_ARCHIVE" >&6; }
35447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default blocking" >&5
35448 $as_echo_n "checking for default blocking... " >&6; }
35449 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
35451 cat >>confdefs.h <<_ACEOF
35452 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
35455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_BLOCKING" >&5
35456 $as_echo "$DEFAULT_BLOCKING" >&6; }
35458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default quoting style" >&5
35459 $as_echo_n "checking for default quoting style... " >&6; }
35462 DEFAULT_QUOTING_STYLE="escape"
35465 case $DEFAULT_QUOTING_STYLE in
35466 literal|shell|shell-always|c|escape|locale|clocale) ;;
35467 *) as_fn_error $? "Invalid quoting style" "$LINENO" 5;;
35469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_QUOTING_STYLE" >&5
35470 $as_echo "$DEFAULT_QUOTING_STYLE" >&6; }
35471 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
35473 cat >>confdefs.h <<_ACEOF
35474 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
35480 if test "X$prefix" = "XNONE"; then
35481 acl_final_prefix="$ac_default_prefix"
35483 acl_final_prefix="$prefix"
35485 if test "X$exec_prefix" = "XNONE"; then
35486 acl_final_exec_prefix='${prefix}'
35488 acl_final_exec_prefix="$exec_prefix"
35490 acl_save_prefix="$prefix"
35491 prefix="$acl_final_prefix"
35492 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
35493 prefix="$acl_save_prefix"
35497 # Check whether --with-gnu-ld was given.
35498 if test "${with_gnu_ld+set}" = set; then :
35499 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
35504 # Prepare PATH_SEPARATOR.
35505 # The user is always right.
35506 if test "${PATH_SEPARATOR+set}" != set; then
35507 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
35508 # contains only /bin. Note that ksh looks also at the FPATH variable,
35509 # so we have to set that as well for the test.
35511 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
35512 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
35513 || PATH_SEPARATOR=';'
35518 if test "$GCC" = yes; then
35519 # Check if gcc -print-prog-name=ld gives a path.
35520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
35521 $as_echo_n "checking for ld used by $CC... " >&6; }
35524 # gcc leaves a trailing carriage return which upsets mingw
35525 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
35527 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
35530 # Accept absolute paths.
35532 re_direlt='/[^/][^/]*/\.\./'
35533 # Canonicalize the pathname of ld
35534 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
35535 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
35536 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
35538 test -z "$LD" && LD="$ac_prog"
35541 # If it fails, then pretend we aren't using GCC.
35545 # If it is relative, then search for the first ld in PATH.
35546 with_gnu_ld=unknown
35549 elif test "$with_gnu_ld" = yes; then
35550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
35551 $as_echo_n "checking for GNU ld... " >&6; }
35553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
35554 $as_echo_n "checking for non-GNU ld... " >&6; }
35556 if ${acl_cv_path_LD+:} false; then :
35557 $as_echo_n "(cached) " >&6
35559 if test -z "$LD"; then
35560 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
35561 for ac_dir in $PATH; do
35562 IFS="$acl_save_ifs"
35563 test -z "$ac_dir" && ac_dir=.
35564 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
35565 acl_cv_path_LD="$ac_dir/$ac_prog"
35566 # Check to see if the program is GNU ld. I'd rather use --version,
35567 # but apparently some variants of GNU ld only accept -v.
35568 # Break only if it was the GNU/non-GNU ld that we prefer.
35569 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
35570 *GNU* | *'with BFD'*)
35571 test "$with_gnu_ld" != no && break
35574 test "$with_gnu_ld" != yes && break
35579 IFS="$acl_save_ifs"
35581 acl_cv_path_LD="$LD" # Let the user override the test with a path.
35585 LD="$acl_cv_path_LD"
35586 if test -n "$LD"; then
35587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
35588 $as_echo "$LD" >&6; }
35590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35591 $as_echo "no" >&6; }
35593 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
35594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
35595 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
35596 if ${acl_cv_prog_gnu_ld+:} false; then :
35597 $as_echo_n "(cached) " >&6
35599 # I'd rather use --version here, but apparently some GNU lds only accept -v.
35600 case `$LD -v 2>&1 </dev/null` in
35601 *GNU* | *'with BFD'*)
35602 acl_cv_prog_gnu_ld=yes
35605 acl_cv_prog_gnu_ld=no
35609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
35610 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
35611 with_gnu_ld=$acl_cv_prog_gnu_ld
35616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
35617 $as_echo_n "checking for shared library run path origin... " >&6; }
35618 if ${acl_cv_rpath+:} false; then :
35619 $as_echo_n "(cached) " >&6
35622 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
35623 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
35625 rm -f ./conftest.sh
35629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
35630 $as_echo "$acl_cv_rpath" >&6; }
35632 acl_libext="$acl_cv_libext"
35633 acl_shlibext="$acl_cv_shlibext"
35634 acl_libname_spec="$acl_cv_libname_spec"
35635 acl_library_names_spec="$acl_cv_library_names_spec"
35636 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
35637 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
35638 acl_hardcode_direct="$acl_cv_hardcode_direct"
35639 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
35640 # Check whether --enable-rpath was given.
35641 if test "${enable_rpath+set}" = set; then :
35642 enableval=$enable_rpath; :
35654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
35655 $as_echo_n "checking for 64-bit host... " >&6; }
35656 if ${gl_cv_solaris_64bit+:} false; then :
35657 $as_echo_n "(cached) " >&6
35659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35660 /* end confdefs.h. */
35667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35668 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
35669 gl_cv_solaris_64bit=yes
35671 gl_cv_solaris_64bit=no
35677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
35678 $as_echo "$gl_cv_solaris_64bit" >&6; }
35679 if test $gl_cv_solaris_64bit = yes; then
35680 acl_libdirstem=lib/64
35681 case "$host_cpu" in
35682 sparc*) acl_libdirstem2=lib/sparcv9 ;;
35683 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
35688 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
35689 if test -n "$searchpath"; then
35690 acl_save_IFS="${IFS= }"; IFS=":"
35691 for searchdir in $searchpath; do
35692 if test -d "$searchdir"; then
35693 case "$searchdir" in
35694 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
35696 # Better ignore directories of this form. They are misleading.
35698 *) searchdir=`cd "$searchdir" && pwd`
35699 case "$searchdir" in
35700 */lib64 ) acl_libdirstem=lib64 ;;
35705 IFS="$acl_save_IFS"
35709 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
35724 acl_save_prefix="$prefix"
35725 prefix="$acl_final_prefix"
35726 acl_save_exec_prefix="$exec_prefix"
35727 exec_prefix="$acl_final_exec_prefix"
35729 eval additional_includedir=\"$includedir\"
35730 eval additional_libdir=\"$libdir\"
35732 exec_prefix="$acl_save_exec_prefix"
35733 prefix="$acl_save_prefix"
35736 # Check whether --with-libiconv-prefix was given.
35737 if test "${with_libiconv_prefix+set}" = set; then :
35738 withval=$with_libiconv_prefix;
35739 if test "X$withval" = "Xno"; then
35742 if test "X$withval" = "X"; then
35744 acl_save_prefix="$prefix"
35745 prefix="$acl_final_prefix"
35746 acl_save_exec_prefix="$exec_prefix"
35747 exec_prefix="$acl_final_exec_prefix"
35749 eval additional_includedir=\"$includedir\"
35750 eval additional_libdir=\"$libdir\"
35752 exec_prefix="$acl_save_exec_prefix"
35753 prefix="$acl_save_prefix"
35756 additional_includedir="$withval/include"
35757 additional_libdir="$withval/$acl_libdirstem"
35758 if test "$acl_libdirstem2" != "$acl_libdirstem" \
35759 && ! test -d "$withval/$acl_libdirstem"; then
35760 additional_libdir="$withval/$acl_libdirstem2"
35774 names_already_handled=
35775 names_next_round='iconv '
35776 while test -n "$names_next_round"; do
35777 names_this_round="$names_next_round"
35779 for name in $names_this_round; do
35781 for n in $names_already_handled; do
35782 if test "$n" = "$name"; then
35783 already_handled=yes
35787 if test -z "$already_handled"; then
35788 names_already_handled="$names_already_handled $name"
35789 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
35790 eval value=\"\$HAVE_LIB$uppername\"
35791 if test -n "$value"; then
35792 if test "$value" = yes; then
35793 eval value=\"\$LIB$uppername\"
35794 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
35795 eval value=\"\$LTLIB$uppername\"
35796 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
35805 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
35806 if test -n "$acl_shlibext"; then
35807 shrext=".$acl_shlibext" # typically: shrext=.so
35811 if test $use_additional = yes; then
35812 dir="$additional_libdir"
35813 if test -n "$acl_shlibext"; then
35814 if test -f "$dir/$libname$shrext"; then
35816 found_so="$dir/$libname$shrext"
35818 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
35819 ver=`(cd "$dir" && \
35820 for f in "$libname$shrext".*; do echo "$f"; done \
35821 | sed -e "s,^$libname$shrext\\\\.,," \
35822 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
35823 | sed 1q ) 2>/dev/null`
35824 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
35826 found_so="$dir/$libname$shrext.$ver"
35829 eval library_names=\"$acl_library_names_spec\"
35830 for f in $library_names; do
35831 if test -f "$dir/$f"; then
35840 if test "X$found_dir" = "X"; then
35841 if test -f "$dir/$libname.$acl_libext"; then
35843 found_a="$dir/$libname.$acl_libext"
35846 if test "X$found_dir" != "X"; then
35847 if test -f "$dir/$libname.la"; then
35848 found_la="$dir/$libname.la"
35852 if test "X$found_dir" = "X"; then
35853 for x in $LDFLAGS $LTLIBICONV; do
35855 acl_save_prefix="$prefix"
35856 prefix="$acl_final_prefix"
35857 acl_save_exec_prefix="$exec_prefix"
35858 exec_prefix="$acl_final_exec_prefix"
35860 exec_prefix="$acl_save_exec_prefix"
35861 prefix="$acl_save_prefix"
35865 dir=`echo "X$x" | sed -e 's/^X-L//'`
35866 if test -n "$acl_shlibext"; then
35867 if test -f "$dir/$libname$shrext"; then
35869 found_so="$dir/$libname$shrext"
35871 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
35872 ver=`(cd "$dir" && \
35873 for f in "$libname$shrext".*; do echo "$f"; done \
35874 | sed -e "s,^$libname$shrext\\\\.,," \
35875 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
35876 | sed 1q ) 2>/dev/null`
35877 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
35879 found_so="$dir/$libname$shrext.$ver"
35882 eval library_names=\"$acl_library_names_spec\"
35883 for f in $library_names; do
35884 if test -f "$dir/$f"; then
35893 if test "X$found_dir" = "X"; then
35894 if test -f "$dir/$libname.$acl_libext"; then
35896 found_a="$dir/$libname.$acl_libext"
35899 if test "X$found_dir" != "X"; then
35900 if test -f "$dir/$libname.la"; then
35901 found_la="$dir/$libname.la"
35906 if test "X$found_dir" != "X"; then
35911 if test "X$found_dir" != "X"; then
35912 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
35913 if test "X$found_so" != "X"; then
35914 if test "$enable_rpath" = no \
35915 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
35916 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
35917 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35920 for x in $ltrpathdirs; do
35921 if test "X$x" = "X$found_dir"; then
35926 if test -z "$haveit"; then
35927 ltrpathdirs="$ltrpathdirs $found_dir"
35929 if test "$acl_hardcode_direct" = yes; then
35930 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35932 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
35933 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35935 for x in $rpathdirs; do
35936 if test "X$x" = "X$found_dir"; then
35941 if test -z "$haveit"; then
35942 rpathdirs="$rpathdirs $found_dir"
35946 for x in $LDFLAGS $LIBICONV; do
35948 acl_save_prefix="$prefix"
35949 prefix="$acl_final_prefix"
35950 acl_save_exec_prefix="$exec_prefix"
35951 exec_prefix="$acl_final_exec_prefix"
35953 exec_prefix="$acl_save_exec_prefix"
35954 prefix="$acl_save_prefix"
35956 if test "X$x" = "X-L$found_dir"; then
35961 if test -z "$haveit"; then
35962 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
35964 if test "$acl_hardcode_minus_L" != no; then
35965 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35967 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
35973 if test "X$found_a" != "X"; then
35974 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
35976 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
35979 additional_includedir=
35980 case "$found_dir" in
35981 */$acl_libdirstem | */$acl_libdirstem/)
35982 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
35983 if test "$name" = 'iconv'; then
35984 LIBICONV_PREFIX="$basedir"
35986 additional_includedir="$basedir/include"
35988 */$acl_libdirstem2 | */$acl_libdirstem2/)
35989 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
35990 if test "$name" = 'iconv'; then
35991 LIBICONV_PREFIX="$basedir"
35993 additional_includedir="$basedir/include"
35996 if test "X$additional_includedir" != "X"; then
35997 if test "X$additional_includedir" != "X/usr/include"; then
35999 if test "X$additional_includedir" = "X/usr/local/include"; then
36000 if test -n "$GCC"; then
36002 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36006 if test -z "$haveit"; then
36007 for x in $CPPFLAGS $INCICONV; do
36009 acl_save_prefix="$prefix"
36010 prefix="$acl_final_prefix"
36011 acl_save_exec_prefix="$exec_prefix"
36012 exec_prefix="$acl_final_exec_prefix"
36014 exec_prefix="$acl_save_exec_prefix"
36015 prefix="$acl_save_prefix"
36017 if test "X$x" = "X-I$additional_includedir"; then
36022 if test -z "$haveit"; then
36023 if test -d "$additional_includedir"; then
36024 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
36030 if test -n "$found_la"; then
36031 save_libdir="$libdir"
36032 case "$found_la" in
36033 */* | *\\*) . "$found_la" ;;
36034 *) . "./$found_la" ;;
36036 libdir="$save_libdir"
36037 for dep in $dependency_libs; do
36040 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
36041 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
36042 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
36044 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
36045 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
36046 if test -n "$GCC"; then
36048 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36052 if test -z "$haveit"; then
36054 for x in $LDFLAGS $LIBICONV; do
36056 acl_save_prefix="$prefix"
36057 prefix="$acl_final_prefix"
36058 acl_save_exec_prefix="$exec_prefix"
36059 exec_prefix="$acl_final_exec_prefix"
36061 exec_prefix="$acl_save_exec_prefix"
36062 prefix="$acl_save_prefix"
36064 if test "X$x" = "X-L$additional_libdir"; then
36069 if test -z "$haveit"; then
36070 if test -d "$additional_libdir"; then
36071 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
36075 for x in $LDFLAGS $LTLIBICONV; do
36077 acl_save_prefix="$prefix"
36078 prefix="$acl_final_prefix"
36079 acl_save_exec_prefix="$exec_prefix"
36080 exec_prefix="$acl_final_exec_prefix"
36082 exec_prefix="$acl_save_exec_prefix"
36083 prefix="$acl_save_prefix"
36085 if test "X$x" = "X-L$additional_libdir"; then
36090 if test -z "$haveit"; then
36091 if test -d "$additional_libdir"; then
36092 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
36099 dir=`echo "X$dep" | sed -e 's/^X-R//'`
36100 if test "$enable_rpath" != no; then
36102 for x in $rpathdirs; do
36103 if test "X$x" = "X$dir"; then
36108 if test -z "$haveit"; then
36109 rpathdirs="$rpathdirs $dir"
36112 for x in $ltrpathdirs; do
36113 if test "X$x" = "X$dir"; then
36118 if test -z "$haveit"; then
36119 ltrpathdirs="$ltrpathdirs $dir"
36124 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
36127 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
36130 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
36131 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
36137 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
36138 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
36144 if test "X$rpathdirs" != "X"; then
36145 if test -n "$acl_hardcode_libdir_separator"; then
36147 for found_dir in $rpathdirs; do
36148 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
36150 acl_save_libdir="$libdir"
36152 eval flag=\"$acl_hardcode_libdir_flag_spec\"
36153 libdir="$acl_save_libdir"
36154 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
36156 for found_dir in $rpathdirs; do
36157 acl_save_libdir="$libdir"
36158 libdir="$found_dir"
36159 eval flag=\"$acl_hardcode_libdir_flag_spec\"
36160 libdir="$acl_save_libdir"
36161 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
36165 if test "X$ltrpathdirs" != "X"; then
36166 for found_dir in $ltrpathdirs; do
36167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
36182 am_save_CPPFLAGS="$CPPFLAGS"
36184 for element in $INCICONV; do
36186 for x in $CPPFLAGS; do
36188 acl_save_prefix="$prefix"
36189 prefix="$acl_final_prefix"
36190 acl_save_exec_prefix="$exec_prefix"
36191 exec_prefix="$acl_final_exec_prefix"
36193 exec_prefix="$acl_save_exec_prefix"
36194 prefix="$acl_save_prefix"
36196 if test "X$x" = "X$element"; then
36201 if test -z "$haveit"; then
36202 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
36207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
36208 $as_echo_n "checking for iconv... " >&6; }
36209 if ${am_cv_func_iconv+:} false; then :
36210 $as_echo_n "(cached) " >&6
36213 am_cv_func_iconv="no, consider installing GNU libiconv"
36215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36216 /* end confdefs.h. */
36218 #include <stdlib.h>
36224 iconv_t cd = iconv_open("","");
36225 iconv(cd,NULL,NULL,NULL,NULL);
36231 if ac_fn_c_try_link "$LINENO"; then :
36232 am_cv_func_iconv=yes
36234 rm -f core conftest.err conftest.$ac_objext \
36235 conftest$ac_exeext conftest.$ac_ext
36236 if test "$am_cv_func_iconv" != yes; then
36237 am_save_LIBS="$LIBS"
36238 LIBS="$LIBS $LIBICONV"
36239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36240 /* end confdefs.h. */
36242 #include <stdlib.h>
36248 iconv_t cd = iconv_open("","");
36249 iconv(cd,NULL,NULL,NULL,NULL);
36255 if ac_fn_c_try_link "$LINENO"; then :
36256 am_cv_lib_iconv=yes
36257 am_cv_func_iconv=yes
36259 rm -f core conftest.err conftest.$ac_objext \
36260 conftest$ac_exeext conftest.$ac_ext
36261 LIBS="$am_save_LIBS"
36265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
36266 $as_echo "$am_cv_func_iconv" >&6; }
36267 if test "$am_cv_func_iconv" = yes; then
36268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
36269 $as_echo_n "checking for working iconv... " >&6; }
36270 if ${am_cv_func_iconv_works+:} false; then :
36271 $as_echo_n "(cached) " >&6
36274 am_save_LIBS="$LIBS"
36275 if test $am_cv_lib_iconv = yes; then
36276 LIBS="$LIBS $LIBICONV"
36278 am_cv_func_iconv_works=no
36279 for ac_iconv_const in '' 'const'; do
36280 if test "$cross_compiling" = yes; then :
36282 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
36283 *) am_cv_func_iconv_works="guessing yes" ;;
36286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36287 /* end confdefs.h. */
36290 #include <string.h>
36292 #ifndef ICONV_CONST
36293 # define ICONV_CONST $ac_iconv_const
36300 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
36303 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
36304 if (cd_utf8_to_88591 != (iconv_t)(-1))
36306 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
36308 ICONV_CONST char *inptr = input;
36309 size_t inbytesleft = strlen (input);
36310 char *outptr = buf;
36311 size_t outbytesleft = sizeof (buf);
36312 size_t res = iconv (cd_utf8_to_88591,
36313 &inptr, &inbytesleft,
36314 &outptr, &outbytesleft);
36317 iconv_close (cd_utf8_to_88591);
36320 /* Test against Solaris 10 bug: Failures are not distinguishable from
36321 successful returns. */
36323 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
36324 if (cd_ascii_to_88591 != (iconv_t)(-1))
36326 static ICONV_CONST char input[] = "\263";
36328 ICONV_CONST char *inptr = input;
36329 size_t inbytesleft = strlen (input);
36330 char *outptr = buf;
36331 size_t outbytesleft = sizeof (buf);
36332 size_t res = iconv (cd_ascii_to_88591,
36333 &inptr, &inbytesleft,
36334 &outptr, &outbytesleft);
36337 iconv_close (cd_ascii_to_88591);
36340 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
36342 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
36343 if (cd_88591_to_utf8 != (iconv_t)(-1))
36345 static ICONV_CONST char input[] = "\304";
36346 static char buf[2] = { (char)0xDE, (char)0xAD };
36347 ICONV_CONST char *inptr = input;
36348 size_t inbytesleft = 1;
36349 char *outptr = buf;
36350 size_t outbytesleft = 1;
36351 size_t res = iconv (cd_88591_to_utf8,
36352 &inptr, &inbytesleft,
36353 &outptr, &outbytesleft);
36354 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
36356 iconv_close (cd_88591_to_utf8);
36359 #if 0 /* This bug could be worked around by the caller. */
36360 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
36362 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
36363 if (cd_88591_to_utf8 != (iconv_t)(-1))
36365 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
36367 ICONV_CONST char *inptr = input;
36368 size_t inbytesleft = strlen (input);
36369 char *outptr = buf;
36370 size_t outbytesleft = sizeof (buf);
36371 size_t res = iconv (cd_88591_to_utf8,
36372 &inptr, &inbytesleft,
36373 &outptr, &outbytesleft);
36376 iconv_close (cd_88591_to_utf8);
36380 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
36382 if (/* Try standardized names. */
36383 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
36384 /* Try IRIX, OSF/1 names. */
36385 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
36386 /* Try AIX names. */
36387 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
36388 /* Try HP-UX names. */
36389 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
36397 if ac_fn_c_try_run "$LINENO"; then :
36398 am_cv_func_iconv_works=yes
36400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36401 conftest.$ac_objext conftest.beam conftest.$ac_ext
36404 test "$am_cv_func_iconv_works" = no || break
36406 LIBS="$am_save_LIBS"
36409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
36410 $as_echo "$am_cv_func_iconv_works" >&6; }
36411 case "$am_cv_func_iconv_works" in
36412 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
36413 *) am_func_iconv=yes ;;
36416 am_func_iconv=no am_cv_lib_iconv=no
36418 if test "$am_func_iconv" = yes; then
36420 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
36423 if test "$am_cv_lib_iconv" = yes; then
36424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
36425 $as_echo_n "checking how to link with libiconv... " >&6; }
36426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
36427 $as_echo "$LIBICONV" >&6; }
36429 CPPFLAGS="$am_save_CPPFLAGS"
36436 if test "$am_cv_func_iconv" = yes; then
36437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
36438 $as_echo_n "checking for iconv declaration... " >&6; }
36439 if ${am_cv_proto_iconv+:} false; then :
36440 $as_echo_n "(cached) " >&6
36443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36444 /* end confdefs.h. */
36446 #include <stdlib.h>
36452 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
36453 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36466 if ac_fn_c_try_compile "$LINENO"; then :
36467 am_cv_proto_iconv_arg1=""
36469 am_cv_proto_iconv_arg1="const"
36471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36472 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
36475 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
36476 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
36477 $am_cv_proto_iconv" >&5
36479 $am_cv_proto_iconv" >&6; }
36481 cat >>confdefs.h <<_ACEOF
36482 #define ICONV_CONST $am_cv_proto_iconv_arg1
36488 for ac_header in iconv.h
36490 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
36491 if test "x$ac_cv_header_iconv_h" = xyes; then :
36492 cat >>confdefs.h <<_ACEOF
36493 #define HAVE_ICONV_H 1
36500 ac_fn_c_check_type "$LINENO" "iconv_t" "ac_cv_type_iconv_t" "
36501 #ifdef HAVE_ICONV_H
36502 # include <iconv.h>
36506 if test "x$ac_cv_type_iconv_t" = xyes; then :
36510 $as_echo "#define iconv_t int" >>confdefs.h
36516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
36517 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
36518 if ${ac_cv_path_SED+:} false; then :
36519 $as_echo_n "(cached) " >&6
36521 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
36522 for ac_i in 1 2 3 4 5 6 7; do
36523 ac_script="$ac_script$as_nl$ac_script"
36525 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
36526 { ac_script=; unset ac_script;}
36527 if test -z "$SED"; then
36528 ac_path_SED_found=false
36529 # Loop through the user's path and test for each of PROGNAME-LIST
36530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36531 for as_dir in $PATH
36534 test -z "$as_dir" && as_dir=.
36535 for ac_prog in sed gsed; do
36536 for ac_exec_ext in '' $ac_executable_extensions; do
36537 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
36538 as_fn_executable_p "$ac_path_SED" || continue
36539 # Check for GNU ac_path_SED and select it if it is found.
36540 # Check for GNU $ac_path_SED
36541 case `"$ac_path_SED" --version 2>&1` in
36543 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
36546 $as_echo_n 0123456789 >"conftest.in"
36549 cat "conftest.in" "conftest.in" >"conftest.tmp"
36550 mv "conftest.tmp" "conftest.in"
36551 cp "conftest.in" "conftest.nl"
36552 $as_echo '' >> "conftest.nl"
36553 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
36554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36555 as_fn_arith $ac_count + 1 && ac_count=$as_val
36556 if test $ac_count -gt ${ac_path_SED_max-0}; then
36557 # Best one so far, save it but keep looking for a better one
36558 ac_cv_path_SED="$ac_path_SED"
36559 ac_path_SED_max=$ac_count
36561 # 10*(2^10) chars as input seems more than enough
36562 test $ac_count -gt 10 && break
36564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
36567 $ac_path_SED_found && break 3
36572 if test -z "$ac_cv_path_SED"; then
36573 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
36576 ac_cv_path_SED=$SED
36580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
36581 $as_echo "$ac_cv_path_SED" >&6; }
36582 SED="$ac_cv_path_SED"
36586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
36587 $as_echo_n "checking whether NLS is requested... " >&6; }
36588 # Check whether --enable-nls was given.
36589 if test "${enable_nls+set}" = set; then :
36590 enableval=$enable_nls; USE_NLS=$enableval
36595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
36596 $as_echo "$USE_NLS" >&6; }
36601 GETTEXT_MACRO_VERSION=0.19
36606 # Prepare PATH_SEPARATOR.
36607 # The user is always right.
36608 if test "${PATH_SEPARATOR+set}" != set; then
36609 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
36610 # contains only /bin. Note that ksh looks also at the FPATH variable,
36611 # so we have to set that as well for the test.
36613 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
36614 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
36615 || PATH_SEPARATOR=';'
36619 # Find out how to test for executable files. Don't use a zero-byte file,
36620 # as systems may use methods other than mode bits to determine executability.
36621 cat >conf$$.file <<_ASEOF
36625 chmod +x conf$$.file
36626 if test -x conf$$.file >/dev/null 2>&1; then
36627 ac_executable_p="test -x"
36629 ac_executable_p="test -f"
36633 # Extract the first word of "msgfmt", so it can be a program name with args.
36634 set dummy msgfmt; ac_word=$2
36635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36636 $as_echo_n "checking for $ac_word... " >&6; }
36637 if ${ac_cv_path_MSGFMT+:} false; then :
36638 $as_echo_n "(cached) " >&6
36642 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
36645 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
36646 for ac_dir in $PATH; do
36648 test -z "$ac_dir" && ac_dir=.
36649 for ac_exec_ext in '' $ac_executable_extensions; do
36650 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
36651 echo "$as_me: trying $ac_dir/$ac_word..." >&5
36652 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
36653 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
36654 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
36661 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
36665 MSGFMT="$ac_cv_path_MSGFMT"
36666 if test "$MSGFMT" != ":"; then
36667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
36668 $as_echo "$MSGFMT" >&6; }
36670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36671 $as_echo "no" >&6; }
36674 # Extract the first word of "gmsgfmt", so it can be a program name with args.
36675 set dummy gmsgfmt; ac_word=$2
36676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36677 $as_echo_n "checking for $ac_word... " >&6; }
36678 if ${ac_cv_path_GMSGFMT+:} false; then :
36679 $as_echo_n "(cached) " >&6
36683 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
36686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36687 for as_dir in $PATH
36690 test -z "$as_dir" && as_dir=.
36691 for ac_exec_ext in '' $ac_executable_extensions; do
36692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36693 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
36694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36701 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
36705 GMSGFMT=$ac_cv_path_GMSGFMT
36706 if test -n "$GMSGFMT"; then
36707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
36708 $as_echo "$GMSGFMT" >&6; }
36710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36711 $as_echo "no" >&6; }
36716 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
36717 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
36718 *) MSGFMT_015=$MSGFMT ;;
36721 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
36722 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
36723 *) GMSGFMT_015=$GMSGFMT ;;
36728 # Prepare PATH_SEPARATOR.
36729 # The user is always right.
36730 if test "${PATH_SEPARATOR+set}" != set; then
36731 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
36732 # contains only /bin. Note that ksh looks also at the FPATH variable,
36733 # so we have to set that as well for the test.
36735 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
36736 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
36737 || PATH_SEPARATOR=';'
36741 # Find out how to test for executable files. Don't use a zero-byte file,
36742 # as systems may use methods other than mode bits to determine executability.
36743 cat >conf$$.file <<_ASEOF
36747 chmod +x conf$$.file
36748 if test -x conf$$.file >/dev/null 2>&1; then
36749 ac_executable_p="test -x"
36751 ac_executable_p="test -f"
36755 # Extract the first word of "xgettext", so it can be a program name with args.
36756 set dummy xgettext; ac_word=$2
36757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36758 $as_echo_n "checking for $ac_word... " >&6; }
36759 if ${ac_cv_path_XGETTEXT+:} false; then :
36760 $as_echo_n "(cached) " >&6
36762 case "$XGETTEXT" in
36764 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
36767 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
36768 for ac_dir in $PATH; do
36770 test -z "$ac_dir" && ac_dir=.
36771 for ac_exec_ext in '' $ac_executable_extensions; do
36772 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
36773 echo "$as_me: trying $ac_dir/$ac_word..." >&5
36774 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
36775 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
36776 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
36783 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
36787 XGETTEXT="$ac_cv_path_XGETTEXT"
36788 if test "$XGETTEXT" != ":"; then
36789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
36790 $as_echo "$XGETTEXT" >&6; }
36792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36793 $as_echo "no" >&6; }
36798 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
36799 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
36800 *) XGETTEXT_015=$XGETTEXT ;;
36805 # Prepare PATH_SEPARATOR.
36806 # The user is always right.
36807 if test "${PATH_SEPARATOR+set}" != set; then
36808 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
36809 # contains only /bin. Note that ksh looks also at the FPATH variable,
36810 # so we have to set that as well for the test.
36812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
36813 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
36814 || PATH_SEPARATOR=';'
36818 # Find out how to test for executable files. Don't use a zero-byte file,
36819 # as systems may use methods other than mode bits to determine executability.
36820 cat >conf$$.file <<_ASEOF
36824 chmod +x conf$$.file
36825 if test -x conf$$.file >/dev/null 2>&1; then
36826 ac_executable_p="test -x"
36828 ac_executable_p="test -f"
36832 # Extract the first word of "msgmerge", so it can be a program name with args.
36833 set dummy msgmerge; ac_word=$2
36834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36835 $as_echo_n "checking for $ac_word... " >&6; }
36836 if ${ac_cv_path_MSGMERGE+:} false; then :
36837 $as_echo_n "(cached) " >&6
36839 case "$MSGMERGE" in
36841 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
36844 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
36845 for ac_dir in $PATH; do
36847 test -z "$ac_dir" && ac_dir=.
36848 for ac_exec_ext in '' $ac_executable_extensions; do
36849 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
36850 echo "$as_me: trying $ac_dir/$ac_word..." >&5
36851 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
36852 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
36859 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
36863 MSGMERGE="$ac_cv_path_MSGMERGE"
36864 if test "$MSGMERGE" != ":"; then
36865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
36866 $as_echo "$MSGMERGE" >&6; }
36868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36869 $as_echo "no" >&6; }
36873 test -n "$localedir" || localedir='${datadir}/locale'
36876 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
36879 ac_config_commands="$ac_config_commands po-directories"
36906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
36907 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
36908 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
36909 $as_echo_n "(cached) " >&6
36911 gt_save_LIBS="$LIBS"
36912 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
36913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36914 /* end confdefs.h. */
36915 #include <CoreFoundation/CFPreferences.h>
36919 CFPreferencesCopyAppValue(NULL, NULL)
36924 if ac_fn_c_try_link "$LINENO"; then :
36925 gt_cv_func_CFPreferencesCopyAppValue=yes
36927 gt_cv_func_CFPreferencesCopyAppValue=no
36929 rm -f core conftest.err conftest.$ac_objext \
36930 conftest$ac_exeext conftest.$ac_ext
36931 LIBS="$gt_save_LIBS"
36933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
36934 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
36935 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
36937 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
36940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
36941 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
36942 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
36943 $as_echo_n "(cached) " >&6
36945 gt_save_LIBS="$LIBS"
36946 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
36947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36948 /* end confdefs.h. */
36949 #include <CoreFoundation/CFLocale.h>
36953 CFLocaleCopyCurrent();
36958 if ac_fn_c_try_link "$LINENO"; then :
36959 gt_cv_func_CFLocaleCopyCurrent=yes
36961 gt_cv_func_CFLocaleCopyCurrent=no
36963 rm -f core conftest.err conftest.$ac_objext \
36964 conftest$ac_exeext conftest.$ac_ext
36965 LIBS="$gt_save_LIBS"
36967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
36968 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
36969 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36971 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
36975 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36976 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
36988 case " $gt_needs " in
36989 *" need-formatstring-macros "*) gt_api_version=3 ;;
36990 *" need-ngettext "*) gt_api_version=2 ;;
36991 *) gt_api_version=1 ;;
36993 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
36994 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
36996 if test "$USE_NLS" = "yes"; then
36997 gt_use_preinstalled_gnugettext=no
37000 if test $gt_api_version -ge 3; then
37001 gt_revision_test_code='
37002 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
37003 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
37005 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
37008 gt_revision_test_code=
37010 if test $gt_api_version -ge 2; then
37011 gt_expression_test_code=' + * ngettext ("", "", 0)'
37013 gt_expression_test_code=
37016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
37017 $as_echo_n "checking for GNU gettext in libc... " >&6; }
37018 if eval \${$gt_func_gnugettext_libc+:} false; then :
37019 $as_echo_n "(cached) " >&6
37021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37022 /* end confdefs.h. */
37024 #include <libintl.h>
37025 $gt_revision_test_code
37026 extern int _nl_msg_cat_cntr;
37027 extern int *_nl_domain_bindings;
37033 bindtextdomain ("", "");
37034 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
37040 if ac_fn_c_try_link "$LINENO"; then :
37041 eval "$gt_func_gnugettext_libc=yes"
37043 eval "$gt_func_gnugettext_libc=no"
37045 rm -f core conftest.err conftest.$ac_objext \
37046 conftest$ac_exeext conftest.$ac_ext
37048 eval ac_res=\$$gt_func_gnugettext_libc
37049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
37050 $as_echo "$ac_res" >&6; }
37052 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
37058 am_save_CPPFLAGS="$CPPFLAGS"
37060 for element in $INCICONV; do
37062 for x in $CPPFLAGS; do
37064 acl_save_prefix="$prefix"
37065 prefix="$acl_final_prefix"
37066 acl_save_exec_prefix="$exec_prefix"
37067 exec_prefix="$acl_final_exec_prefix"
37069 exec_prefix="$acl_save_exec_prefix"
37070 prefix="$acl_save_prefix"
37072 if test "X$x" = "X$element"; then
37077 if test -z "$haveit"; then
37078 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
37083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
37084 $as_echo_n "checking for iconv... " >&6; }
37085 if ${am_cv_func_iconv+:} false; then :
37086 $as_echo_n "(cached) " >&6
37089 am_cv_func_iconv="no, consider installing GNU libiconv"
37091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37092 /* end confdefs.h. */
37094 #include <stdlib.h>
37100 iconv_t cd = iconv_open("","");
37101 iconv(cd,NULL,NULL,NULL,NULL);
37107 if ac_fn_c_try_link "$LINENO"; then :
37108 am_cv_func_iconv=yes
37110 rm -f core conftest.err conftest.$ac_objext \
37111 conftest$ac_exeext conftest.$ac_ext
37112 if test "$am_cv_func_iconv" != yes; then
37113 am_save_LIBS="$LIBS"
37114 LIBS="$LIBS $LIBICONV"
37115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37116 /* end confdefs.h. */
37118 #include <stdlib.h>
37124 iconv_t cd = iconv_open("","");
37125 iconv(cd,NULL,NULL,NULL,NULL);
37131 if ac_fn_c_try_link "$LINENO"; then :
37132 am_cv_lib_iconv=yes
37133 am_cv_func_iconv=yes
37135 rm -f core conftest.err conftest.$ac_objext \
37136 conftest$ac_exeext conftest.$ac_ext
37137 LIBS="$am_save_LIBS"
37141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
37142 $as_echo "$am_cv_func_iconv" >&6; }
37143 if test "$am_cv_func_iconv" = yes; then
37144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
37145 $as_echo_n "checking for working iconv... " >&6; }
37146 if ${am_cv_func_iconv_works+:} false; then :
37147 $as_echo_n "(cached) " >&6
37150 am_save_LIBS="$LIBS"
37151 if test $am_cv_lib_iconv = yes; then
37152 LIBS="$LIBS $LIBICONV"
37154 am_cv_func_iconv_works=no
37155 for ac_iconv_const in '' 'const'; do
37156 if test "$cross_compiling" = yes; then :
37158 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
37159 *) am_cv_func_iconv_works="guessing yes" ;;
37162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37163 /* end confdefs.h. */
37166 #include <string.h>
37168 #ifndef ICONV_CONST
37169 # define ICONV_CONST $ac_iconv_const
37176 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
37179 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
37180 if (cd_utf8_to_88591 != (iconv_t)(-1))
37182 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
37184 ICONV_CONST char *inptr = input;
37185 size_t inbytesleft = strlen (input);
37186 char *outptr = buf;
37187 size_t outbytesleft = sizeof (buf);
37188 size_t res = iconv (cd_utf8_to_88591,
37189 &inptr, &inbytesleft,
37190 &outptr, &outbytesleft);
37193 iconv_close (cd_utf8_to_88591);
37196 /* Test against Solaris 10 bug: Failures are not distinguishable from
37197 successful returns. */
37199 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
37200 if (cd_ascii_to_88591 != (iconv_t)(-1))
37202 static ICONV_CONST char input[] = "\263";
37204 ICONV_CONST char *inptr = input;
37205 size_t inbytesleft = strlen (input);
37206 char *outptr = buf;
37207 size_t outbytesleft = sizeof (buf);
37208 size_t res = iconv (cd_ascii_to_88591,
37209 &inptr, &inbytesleft,
37210 &outptr, &outbytesleft);
37213 iconv_close (cd_ascii_to_88591);
37216 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
37218 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
37219 if (cd_88591_to_utf8 != (iconv_t)(-1))
37221 static ICONV_CONST char input[] = "\304";
37222 static char buf[2] = { (char)0xDE, (char)0xAD };
37223 ICONV_CONST char *inptr = input;
37224 size_t inbytesleft = 1;
37225 char *outptr = buf;
37226 size_t outbytesleft = 1;
37227 size_t res = iconv (cd_88591_to_utf8,
37228 &inptr, &inbytesleft,
37229 &outptr, &outbytesleft);
37230 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
37232 iconv_close (cd_88591_to_utf8);
37235 #if 0 /* This bug could be worked around by the caller. */
37236 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
37238 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
37239 if (cd_88591_to_utf8 != (iconv_t)(-1))
37241 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
37243 ICONV_CONST char *inptr = input;
37244 size_t inbytesleft = strlen (input);
37245 char *outptr = buf;
37246 size_t outbytesleft = sizeof (buf);
37247 size_t res = iconv (cd_88591_to_utf8,
37248 &inptr, &inbytesleft,
37249 &outptr, &outbytesleft);
37252 iconv_close (cd_88591_to_utf8);
37256 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
37258 if (/* Try standardized names. */
37259 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
37260 /* Try IRIX, OSF/1 names. */
37261 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
37262 /* Try AIX names. */
37263 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
37264 /* Try HP-UX names. */
37265 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
37273 if ac_fn_c_try_run "$LINENO"; then :
37274 am_cv_func_iconv_works=yes
37276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37277 conftest.$ac_objext conftest.beam conftest.$ac_ext
37280 test "$am_cv_func_iconv_works" = no || break
37282 LIBS="$am_save_LIBS"
37285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
37286 $as_echo "$am_cv_func_iconv_works" >&6; }
37287 case "$am_cv_func_iconv_works" in
37288 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
37289 *) am_func_iconv=yes ;;
37292 am_func_iconv=no am_cv_lib_iconv=no
37294 if test "$am_func_iconv" = yes; then
37296 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
37299 if test "$am_cv_lib_iconv" = yes; then
37300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
37301 $as_echo_n "checking how to link with libiconv... " >&6; }
37302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
37303 $as_echo "$LIBICONV" >&6; }
37305 CPPFLAGS="$am_save_CPPFLAGS"
37322 acl_save_prefix="$prefix"
37323 prefix="$acl_final_prefix"
37324 acl_save_exec_prefix="$exec_prefix"
37325 exec_prefix="$acl_final_exec_prefix"
37327 eval additional_includedir=\"$includedir\"
37328 eval additional_libdir=\"$libdir\"
37330 exec_prefix="$acl_save_exec_prefix"
37331 prefix="$acl_save_prefix"
37334 # Check whether --with-libintl-prefix was given.
37335 if test "${with_libintl_prefix+set}" = set; then :
37336 withval=$with_libintl_prefix;
37337 if test "X$withval" = "Xno"; then
37340 if test "X$withval" = "X"; then
37342 acl_save_prefix="$prefix"
37343 prefix="$acl_final_prefix"
37344 acl_save_exec_prefix="$exec_prefix"
37345 exec_prefix="$acl_final_exec_prefix"
37347 eval additional_includedir=\"$includedir\"
37348 eval additional_libdir=\"$libdir\"
37350 exec_prefix="$acl_save_exec_prefix"
37351 prefix="$acl_save_prefix"
37354 additional_includedir="$withval/include"
37355 additional_libdir="$withval/$acl_libdirstem"
37356 if test "$acl_libdirstem2" != "$acl_libdirstem" \
37357 && ! test -d "$withval/$acl_libdirstem"; then
37358 additional_libdir="$withval/$acl_libdirstem2"
37372 names_already_handled=
37373 names_next_round='intl '
37374 while test -n "$names_next_round"; do
37375 names_this_round="$names_next_round"
37377 for name in $names_this_round; do
37379 for n in $names_already_handled; do
37380 if test "$n" = "$name"; then
37381 already_handled=yes
37385 if test -z "$already_handled"; then
37386 names_already_handled="$names_already_handled $name"
37387 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
37388 eval value=\"\$HAVE_LIB$uppername\"
37389 if test -n "$value"; then
37390 if test "$value" = yes; then
37391 eval value=\"\$LIB$uppername\"
37392 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
37393 eval value=\"\$LTLIB$uppername\"
37394 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
37403 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
37404 if test -n "$acl_shlibext"; then
37405 shrext=".$acl_shlibext" # typically: shrext=.so
37409 if test $use_additional = yes; then
37410 dir="$additional_libdir"
37411 if test -n "$acl_shlibext"; then
37412 if test -f "$dir/$libname$shrext"; then
37414 found_so="$dir/$libname$shrext"
37416 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37417 ver=`(cd "$dir" && \
37418 for f in "$libname$shrext".*; do echo "$f"; done \
37419 | sed -e "s,^$libname$shrext\\\\.,," \
37420 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37421 | sed 1q ) 2>/dev/null`
37422 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37424 found_so="$dir/$libname$shrext.$ver"
37427 eval library_names=\"$acl_library_names_spec\"
37428 for f in $library_names; do
37429 if test -f "$dir/$f"; then
37438 if test "X$found_dir" = "X"; then
37439 if test -f "$dir/$libname.$acl_libext"; then
37441 found_a="$dir/$libname.$acl_libext"
37444 if test "X$found_dir" != "X"; then
37445 if test -f "$dir/$libname.la"; then
37446 found_la="$dir/$libname.la"
37450 if test "X$found_dir" = "X"; then
37451 for x in $LDFLAGS $LTLIBINTL; do
37453 acl_save_prefix="$prefix"
37454 prefix="$acl_final_prefix"
37455 acl_save_exec_prefix="$exec_prefix"
37456 exec_prefix="$acl_final_exec_prefix"
37458 exec_prefix="$acl_save_exec_prefix"
37459 prefix="$acl_save_prefix"
37463 dir=`echo "X$x" | sed -e 's/^X-L//'`
37464 if test -n "$acl_shlibext"; then
37465 if test -f "$dir/$libname$shrext"; then
37467 found_so="$dir/$libname$shrext"
37469 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37470 ver=`(cd "$dir" && \
37471 for f in "$libname$shrext".*; do echo "$f"; done \
37472 | sed -e "s,^$libname$shrext\\\\.,," \
37473 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37474 | sed 1q ) 2>/dev/null`
37475 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37477 found_so="$dir/$libname$shrext.$ver"
37480 eval library_names=\"$acl_library_names_spec\"
37481 for f in $library_names; do
37482 if test -f "$dir/$f"; then
37491 if test "X$found_dir" = "X"; then
37492 if test -f "$dir/$libname.$acl_libext"; then
37494 found_a="$dir/$libname.$acl_libext"
37497 if test "X$found_dir" != "X"; then
37498 if test -f "$dir/$libname.la"; then
37499 found_la="$dir/$libname.la"
37504 if test "X$found_dir" != "X"; then
37509 if test "X$found_dir" != "X"; then
37510 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
37511 if test "X$found_so" != "X"; then
37512 if test "$enable_rpath" = no \
37513 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
37514 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
37515 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
37518 for x in $ltrpathdirs; do
37519 if test "X$x" = "X$found_dir"; then
37524 if test -z "$haveit"; then
37525 ltrpathdirs="$ltrpathdirs $found_dir"
37527 if test "$acl_hardcode_direct" = yes; then
37528 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
37530 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
37531 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
37533 for x in $rpathdirs; do
37534 if test "X$x" = "X$found_dir"; then
37539 if test -z "$haveit"; then
37540 rpathdirs="$rpathdirs $found_dir"
37544 for x in $LDFLAGS $LIBINTL; do
37546 acl_save_prefix="$prefix"
37547 prefix="$acl_final_prefix"
37548 acl_save_exec_prefix="$exec_prefix"
37549 exec_prefix="$acl_final_exec_prefix"
37551 exec_prefix="$acl_save_exec_prefix"
37552 prefix="$acl_save_prefix"
37554 if test "X$x" = "X-L$found_dir"; then
37559 if test -z "$haveit"; then
37560 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
37562 if test "$acl_hardcode_minus_L" != no; then
37563 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
37565 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
37571 if test "X$found_a" != "X"; then
37572 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
37574 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
37577 additional_includedir=
37578 case "$found_dir" in
37579 */$acl_libdirstem | */$acl_libdirstem/)
37580 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
37581 if test "$name" = 'intl'; then
37582 LIBINTL_PREFIX="$basedir"
37584 additional_includedir="$basedir/include"
37586 */$acl_libdirstem2 | */$acl_libdirstem2/)
37587 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
37588 if test "$name" = 'intl'; then
37589 LIBINTL_PREFIX="$basedir"
37591 additional_includedir="$basedir/include"
37594 if test "X$additional_includedir" != "X"; then
37595 if test "X$additional_includedir" != "X/usr/include"; then
37597 if test "X$additional_includedir" = "X/usr/local/include"; then
37598 if test -n "$GCC"; then
37600 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37604 if test -z "$haveit"; then
37605 for x in $CPPFLAGS $INCINTL; do
37607 acl_save_prefix="$prefix"
37608 prefix="$acl_final_prefix"
37609 acl_save_exec_prefix="$exec_prefix"
37610 exec_prefix="$acl_final_exec_prefix"
37612 exec_prefix="$acl_save_exec_prefix"
37613 prefix="$acl_save_prefix"
37615 if test "X$x" = "X-I$additional_includedir"; then
37620 if test -z "$haveit"; then
37621 if test -d "$additional_includedir"; then
37622 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
37628 if test -n "$found_la"; then
37629 save_libdir="$libdir"
37630 case "$found_la" in
37631 */* | *\\*) . "$found_la" ;;
37632 *) . "./$found_la" ;;
37634 libdir="$save_libdir"
37635 for dep in $dependency_libs; do
37638 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
37639 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
37640 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
37642 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
37643 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
37644 if test -n "$GCC"; then
37646 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37650 if test -z "$haveit"; then
37652 for x in $LDFLAGS $LIBINTL; do
37654 acl_save_prefix="$prefix"
37655 prefix="$acl_final_prefix"
37656 acl_save_exec_prefix="$exec_prefix"
37657 exec_prefix="$acl_final_exec_prefix"
37659 exec_prefix="$acl_save_exec_prefix"
37660 prefix="$acl_save_prefix"
37662 if test "X$x" = "X-L$additional_libdir"; then
37667 if test -z "$haveit"; then
37668 if test -d "$additional_libdir"; then
37669 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
37673 for x in $LDFLAGS $LTLIBINTL; do
37675 acl_save_prefix="$prefix"
37676 prefix="$acl_final_prefix"
37677 acl_save_exec_prefix="$exec_prefix"
37678 exec_prefix="$acl_final_exec_prefix"
37680 exec_prefix="$acl_save_exec_prefix"
37681 prefix="$acl_save_prefix"
37683 if test "X$x" = "X-L$additional_libdir"; then
37688 if test -z "$haveit"; then
37689 if test -d "$additional_libdir"; then
37690 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
37697 dir=`echo "X$dep" | sed -e 's/^X-R//'`
37698 if test "$enable_rpath" != no; then
37700 for x in $rpathdirs; do
37701 if test "X$x" = "X$dir"; then
37706 if test -z "$haveit"; then
37707 rpathdirs="$rpathdirs $dir"
37710 for x in $ltrpathdirs; do
37711 if test "X$x" = "X$dir"; then
37716 if test -z "$haveit"; then
37717 ltrpathdirs="$ltrpathdirs $dir"
37722 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37725 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37728 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
37729 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
37735 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
37736 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
37742 if test "X$rpathdirs" != "X"; then
37743 if test -n "$acl_hardcode_libdir_separator"; then
37745 for found_dir in $rpathdirs; do
37746 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
37748 acl_save_libdir="$libdir"
37750 eval flag=\"$acl_hardcode_libdir_flag_spec\"
37751 libdir="$acl_save_libdir"
37752 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
37754 for found_dir in $rpathdirs; do
37755 acl_save_libdir="$libdir"
37756 libdir="$found_dir"
37757 eval flag=\"$acl_hardcode_libdir_flag_spec\"
37758 libdir="$acl_save_libdir"
37759 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
37763 if test "X$ltrpathdirs" != "X"; then
37764 for found_dir in $ltrpathdirs; do
37765 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
37774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
37775 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
37776 if eval \${$gt_func_gnugettext_libintl+:} false; then :
37777 $as_echo_n "(cached) " >&6
37779 gt_save_CPPFLAGS="$CPPFLAGS"
37780 CPPFLAGS="$CPPFLAGS $INCINTL"
37781 gt_save_LIBS="$LIBS"
37782 LIBS="$LIBS $LIBINTL"
37783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37784 /* end confdefs.h. */
37786 #include <libintl.h>
37787 $gt_revision_test_code
37788 extern int _nl_msg_cat_cntr;
37793 const char *_nl_expand_alias (const char *);
37799 bindtextdomain ("", "");
37800 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
37806 if ac_fn_c_try_link "$LINENO"; then :
37807 eval "$gt_func_gnugettext_libintl=yes"
37809 eval "$gt_func_gnugettext_libintl=no"
37811 rm -f core conftest.err conftest.$ac_objext \
37812 conftest$ac_exeext conftest.$ac_ext
37813 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
37814 LIBS="$LIBS $LIBICONV"
37815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37816 /* end confdefs.h. */
37818 #include <libintl.h>
37819 $gt_revision_test_code
37820 extern int _nl_msg_cat_cntr;
37825 const char *_nl_expand_alias (const char *);
37831 bindtextdomain ("", "");
37832 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
37838 if ac_fn_c_try_link "$LINENO"; then :
37839 LIBINTL="$LIBINTL $LIBICONV"
37840 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
37841 eval "$gt_func_gnugettext_libintl=yes"
37844 rm -f core conftest.err conftest.$ac_objext \
37845 conftest$ac_exeext conftest.$ac_ext
37847 CPPFLAGS="$gt_save_CPPFLAGS"
37848 LIBS="$gt_save_LIBS"
37850 eval ac_res=\$$gt_func_gnugettext_libintl
37851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
37852 $as_echo "$ac_res" >&6; }
37855 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
37856 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
37857 && test "$PACKAGE" != gettext-runtime \
37858 && test "$PACKAGE" != gettext-tools; }; then
37859 gt_use_preinstalled_gnugettext=yes
37868 if test -n "$INTL_MACOSX_LIBS"; then
37869 if test "$gt_use_preinstalled_gnugettext" = "yes" \
37870 || test "$nls_cv_use_gnu_gettext" = "yes"; then
37871 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
37872 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
37876 if test "$gt_use_preinstalled_gnugettext" = "yes" \
37877 || test "$nls_cv_use_gnu_gettext" = "yes"; then
37879 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
37886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
37887 $as_echo_n "checking whether to use NLS... " >&6; }
37888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
37889 $as_echo "$USE_NLS" >&6; }
37890 if test "$USE_NLS" = "yes"; then
37891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
37892 $as_echo_n "checking where the gettext function comes from... " >&6; }
37893 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
37894 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
37895 gt_source="external libintl"
37900 gt_source="included intl directory"
37902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
37903 $as_echo "$gt_source" >&6; }
37906 if test "$USE_NLS" = "yes"; then
37908 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
37909 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
37910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
37911 $as_echo_n "checking how to link with libintl... " >&6; }
37912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
37913 $as_echo "$LIBINTL" >&6; }
37915 for element in $INCINTL; do
37917 for x in $CPPFLAGS; do
37919 acl_save_prefix="$prefix"
37920 prefix="$acl_final_prefix"
37921 acl_save_exec_prefix="$exec_prefix"
37922 exec_prefix="$acl_final_exec_prefix"
37924 exec_prefix="$acl_save_exec_prefix"
37925 prefix="$acl_save_prefix"
37927 if test "X$x" = "X$element"; then
37932 if test -z "$haveit"; then
37933 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
37940 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
37943 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
37952 INTLLIBS="$LIBINTL"
37961 # Initialize the test suite.
37962 ac_config_commands="$ac_config_commands tests/atconfig"
37964 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
37965 # FIXME: tests/preset?
37967 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
37972 # Check whether --enable-backup-scripts was given.
37973 if test "${enable_backup_scripts+set}" = set; then :
37974 enableval=$enable_backup_scripts; case $enableval in
37975 yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
37976 BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
37983 if date +%Y-%m-%d 2>/dev/null >&2; then
37984 BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
37986 BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
37989 ac_config_files="$ac_config_files Makefile doc/Makefile gnu/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
37991 cat >confcache <<\_ACEOF
37992 # This file is a shell script that caches the results of configure
37993 # tests run on this system so they can be shared between configure
37994 # scripts and configure runs, see configure's option --config-cache.
37995 # It is not useful on other systems. If it contains results you don't
37996 # want to keep, you may remove or edit it.
37998 # config.status only pays attention to the cache file if you give it
37999 # the --recheck option to rerun configure.
38001 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38002 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38003 # following values.
38007 # The following way of writing the cache mishandles newlines in values,
38008 # but we know of no workaround that is simple, portable, and efficient.
38009 # So, we kill variables containing newlines.
38010 # Ultrix sh set writes to stderr and can't be redirected directly,
38011 # and sets the high bit in the cache file unless we assign to the vars.
38013 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38014 eval ac_val=\$$ac_var
38018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
38019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
38022 _ | IFS | as_nl) ;; #(
38023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
38024 *) { eval $ac_var=; unset $ac_var;} ;;
38030 case $as_nl`(ac_space=' '; set) 2>&1` in #(
38031 *${as_nl}ac_space=\ *)
38032 # `set' does not quote correctly, so add quotes: double-quote
38033 # substitution turns \\\\ into \\, and sed turns \\ into \.
38036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38039 # `set' quotes correctly as required by POSIX, so do not add quotes.
38040 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38049 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38051 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38053 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38054 if test -w "$cache_file"; then
38055 if test "x$cache_file" != "x/dev/null"; then
38056 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
38057 $as_echo "$as_me: updating cache $cache_file" >&6;}
38058 if test ! -f "$cache_file" || test -h "$cache_file"; then
38059 cat confcache >"$cache_file"
38061 case $cache_file in #(
38063 mv -f confcache "$cache_file"$$ &&
38064 mv -f "$cache_file"$$ "$cache_file" ;; #(
38066 mv -f confcache "$cache_file" ;;
38071 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
38072 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38077 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38078 # Let make expand exec_prefix.
38079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38081 DEFS=-DHAVE_CONFIG_H
38086 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38087 # 1. Remove the extension, and $U if already installed.
38088 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38089 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
38090 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38091 # will be set to the directory where LIBOBJS objects are built.
38092 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38093 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
38095 LIBOBJS=$ac_libobjs
38097 LTLIBOBJS=$ac_ltlibobjs
38100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
38101 $as_echo_n "checking that generated files are newer than configure... " >&6; }
38102 if test -n "$am_sleep_pid"; then
38103 # Hide warnings about reused PIDs.
38104 wait $am_sleep_pid 2>/dev/null
38106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
38107 $as_echo "done" >&6; }
38108 if test -n "$EXEEXT"; then
38110 am__EXEEXT_FALSE='#'
38112 am__EXEEXT_TRUE='#'
38116 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38117 as_fn_error $? "conditional \"AMDEP\" was never defined.
38118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38120 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38121 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
38122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38124 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
38125 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
38126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38128 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
38129 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
38130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38132 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
38133 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
38134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38136 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
38137 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
38138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38140 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
38141 as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
38142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38144 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
38145 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
38146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38148 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
38149 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
38150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38152 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
38153 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
38154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38156 if test -z "${GL_GENERATE_SELINUX_CONTEXT_H_TRUE}" && test -z "${GL_GENERATE_SELINUX_CONTEXT_H_FALSE}"; then
38157 as_fn_error $? "conditional \"GL_GENERATE_SELINUX_CONTEXT_H\" was never defined.
38158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38160 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
38161 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
38162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38164 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
38165 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
38166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38168 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
38169 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
38170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38172 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
38173 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
38174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38176 if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
38177 as_fn_error $? "conditional \"GL_GENERATE_SYSEXITS_H\" was never defined.
38178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38180 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
38181 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
38182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38188 if test -n "$gl_LIBOBJS"; then
38189 # Remove the extension.
38190 sed_drop_objext='s/\.o$//;s/\.obj$//'
38191 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
38192 gl_libobjs="$gl_libobjs $i.$ac_objext"
38193 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
38196 gl_LIBOBJS=$gl_libobjs
38198 gl_LTLIBOBJS=$gl_ltlibobjs
38204 if test -n "$gltests_LIBOBJS"; then
38205 # Remove the extension.
38206 sed_drop_objext='s/\.o$//;s/\.obj$//'
38207 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
38208 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
38209 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
38212 gltests_LIBOBJS=$gltests_libobjs
38214 gltests_LTLIBOBJS=$gltests_ltlibobjs
38217 if test -z "${PU_RMT_COND_TRUE}" && test -z "${PU_RMT_COND_FALSE}"; then
38218 as_fn_error $? "conditional \"PU_RMT_COND\" was never defined.
38219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38221 if test -z "${TAR_COND_XATTR_H_TRUE}" && test -z "${TAR_COND_XATTR_H_FALSE}"; then
38222 as_fn_error $? "conditional \"TAR_COND_XATTR_H\" was never defined.
38223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38225 if test -z "${TAR_COND_XATTR_H_TRUE}" && test -z "${TAR_COND_XATTR_H_FALSE}"; then
38226 as_fn_error $? "conditional \"TAR_COND_XATTR_H\" was never defined.
38227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38230 : "${CONFIG_STATUS=./config.status}"
38232 ac_clean_files_save=$ac_clean_files
38233 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
38235 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
38237 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
38239 # Generated by $as_me.
38240 # Run this file to recreate the current configuration.
38241 # Compiler output produced by configure, useful for debugging
38242 # configure, is in config.log if it exists.
38245 ac_cs_recheck=false
38248 SHELL=\${CONFIG_SHELL-$SHELL}
38251 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
38252 ## -------------------- ##
38253 ## M4sh Initialization. ##
38254 ## -------------------- ##
38256 # Be more Bourne compatible
38257 DUALCASE=1; export DUALCASE # for MKS sh
38258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
38261 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
38262 # is contrary to our usage. Disable this feature.
38263 alias -g '${1+"$@"}'='"$@"'
38264 setopt NO_GLOB_SUBST
38266 case `(set -o) 2>/dev/null` in #(
38278 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38279 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
38281 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38282 # Prefer a ksh shell builtin over an external printf program on Solaris,
38283 # but without wasting forks for bash or zsh.
38284 if test -z "$BASH_VERSION$ZSH_VERSION" \
38285 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
38286 as_echo='print -r --'
38287 as_echo_n='print -rn --'
38288 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
38289 as_echo='printf %s\n'
38290 as_echo_n='printf %s'
38292 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
38293 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
38294 as_echo_n='/usr/ucb/echo -n'
38296 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
38297 as_echo_n_body='eval
38301 expr "X$arg" : "X\\(.*\\)$as_nl";
38302 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
38304 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
38306 export as_echo_n_body
38307 as_echo_n='sh -c $as_echo_n_body as_echo'
38309 export as_echo_body
38310 as_echo='sh -c $as_echo_body as_echo'
38313 # The user is always right.
38314 if test "${PATH_SEPARATOR+set}" != set; then
38316 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
38317 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
38324 # We need space, tab and new line, in precisely that order. Quoting is
38325 # there to prevent editors from complaining about space-tab.
38326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38327 # splitting by setting IFS to empty value.)
38330 # Find who we are. Look in the path if we contain no directory separator.
38333 *[\\/]* ) as_myself=$0 ;;
38334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38335 for as_dir in $PATH
38338 test -z "$as_dir" && as_dir=.
38339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38345 # We did not find ourselves, most probably we were run as `sh COMMAND'
38346 # in which case we are not to be found in the path.
38347 if test "x$as_myself" = x; then
38350 if test ! -f "$as_myself"; then
38351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38355 # Unset variables that we do not need and which cause bugs (e.g. in
38356 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
38357 # suppresses any "Segmentation fault" message there. '((' could
38358 # trigger a bug in pdksh 5.2.14.
38359 for as_var in BASH_ENV ENV MAIL MAILPATH
38360 do eval test x\${$as_var+set} = xset \
38361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
38374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38377 # as_fn_error STATUS ERROR [LINENO LOG_FD]
38378 # ----------------------------------------
38379 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
38380 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
38381 # script with STATUS, using 1 if that was 0.
38384 as_status=$1; test $as_status -eq 0 && as_status=1
38386 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38387 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
38389 $as_echo "$as_me: error: $2" >&2
38390 as_fn_exit $as_status
38394 # as_fn_set_status STATUS
38395 # -----------------------
38396 # Set $? to STATUS, without forking.
38397 as_fn_set_status ()
38400 } # as_fn_set_status
38402 # as_fn_exit STATUS
38403 # -----------------
38404 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
38408 as_fn_set_status $1
38414 # Portably unset VAR.
38417 { eval $1=; unset $1;}
38419 as_unset=as_fn_unset
38420 # as_fn_append VAR VALUE
38421 # ----------------------
38422 # Append the text in VALUE to the end of the definition contained in VAR. Take
38423 # advantage of any shell optimizations that allow amortized linear growth over
38424 # repeated appends, instead of the typical quadratic growth present in naive
38426 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
38427 eval 'as_fn_append ()
38438 # as_fn_arith ARG...
38439 # ------------------
38440 # Perform arithmetic evaluation on the ARGs, and store the result in the
38441 # global $as_val. Take advantage of shells that can avoid forks. The arguments
38442 # must be portable across $(()) and expr.
38443 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
38444 eval 'as_fn_arith ()
38451 as_val=`expr "$@" || test $? -eq 1`
38456 if expr a : '\(a\)' >/dev/null 2>&1 &&
38457 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38464 as_basename=basename
38469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38475 as_me=`$as_basename -- "$0" ||
38476 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38477 X"$0" : 'X\(//\)$' \| \
38478 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38480 sed '/^.*\/\([^/][^/]*\)\/*$/{
38494 # Avoid depending upon Character Ranges.
38495 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38496 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38497 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38498 as_cr_digits='0123456789'
38499 as_cr_alnum=$as_cr_Letters$as_cr_digits
38501 ECHO_C= ECHO_N= ECHO_T=
38502 case `echo -n x` in #(((((
38504 case `echo 'xy\c'` in
38505 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
38507 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
38514 rm -f conf$$ conf$$.exe conf$$.file
38515 if test -d conf$$.dir; then
38516 rm -f conf$$.dir/conf$$.file
38519 mkdir conf$$.dir 2>/dev/null
38521 if (echo >conf$$.file) 2>/dev/null; then
38522 if ln -s conf$$.file conf$$ 2>/dev/null; then
38524 # ... but there are two gotchas:
38525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38527 # In both cases, we have to default to `cp -pR'.
38528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38530 elif ln conf$$.file conf$$ 2>/dev/null; then
38538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38539 rmdir conf$$.dir 2>/dev/null
38544 # Create "$as_dir" as a directory, including parents if necessary.
38549 -*) as_dir=./$as_dir;;
38551 test -d "$as_dir" || eval $as_mkdir_p || {
38555 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
38556 *) as_qdir=$as_dir;;
38558 as_dirs="'$as_qdir' $as_dirs"
38559 as_dir=`$as_dirname -- "$as_dir" ||
38560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38561 X"$as_dir" : 'X\(//\)[^/]' \| \
38562 X"$as_dir" : 'X\(//\)$' \| \
38563 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38564 $as_echo X"$as_dir" |
38565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38569 /^X\(\/\/\)[^/].*/{
38582 test -d "$as_dir" && break
38584 test -z "$as_dirs" || eval "mkdir $as_dirs"
38585 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
38589 if mkdir -p . 2>/dev/null; then
38590 as_mkdir_p='mkdir -p "$as_dir"'
38592 test -d ./-p && rmdir ./-p
38597 # as_fn_executable_p FILE
38598 # -----------------------
38599 # Test if FILE is an executable regular file.
38600 as_fn_executable_p ()
38602 test -f "$1" && test -x "$1"
38603 } # as_fn_executable_p
38604 as_test_x='test -x'
38605 as_executable_p=as_fn_executable_p
38607 # Sed expression to map a string onto a valid CPP name.
38608 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38610 # Sed expression to map a string onto a valid variable name.
38611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38615 ## ----------------------------------- ##
38616 ## Main body of $CONFIG_STATUS script. ##
38617 ## ----------------------------------- ##
38619 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
38621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38622 # Save the log message, to keep $0 and so on meaningful, and to
38623 # report actual input values of CONFIG_FILES etc. instead of their
38624 # values after options handling.
38626 This file was extended by GNU tar $as_me 1.29, which was
38627 generated by GNU Autoconf 2.69. Invocation command line was
38629 CONFIG_FILES = $CONFIG_FILES
38630 CONFIG_HEADERS = $CONFIG_HEADERS
38631 CONFIG_LINKS = $CONFIG_LINKS
38632 CONFIG_COMMANDS = $CONFIG_COMMANDS
38635 on `(hostname || uname -n) 2>/dev/null | sed 1q`
38640 case $ac_config_files in *"
38641 "*) set x $ac_config_files; shift; ac_config_files=$*;;
38644 case $ac_config_headers in *"
38645 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
38649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38650 # Files that config.status was made for.
38651 config_files="$ac_config_files"
38652 config_headers="$ac_config_headers"
38653 config_commands="$ac_config_commands"
38657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38659 \`$as_me' instantiates files and other configuration actions
38660 from templates according to the current configuration. Unless the files
38661 and actions are specified as TAGs, all are instantiated by default.
38663 Usage: $0 [OPTION]... [TAG]...
38665 -h, --help print this help, then exit
38666 -V, --version print version number and configuration settings, then exit
38667 --config print configuration, then exit
38668 -q, --quiet, --silent
38669 do not print progress messages
38670 -d, --debug don't remove temporary files
38671 --recheck update $as_me by reconfiguring in the same conditions
38672 --file=FILE[:TEMPLATE]
38673 instantiate the configuration file FILE
38674 --header=FILE[:TEMPLATE]
38675 instantiate the configuration header FILE
38677 Configuration files:
38680 Configuration headers:
38683 Configuration commands:
38686 Report bugs to <bug-tar@gnu.org>.
38687 GNU tar home page: <http://www.gnu.org/software/tar/>.
38688 General help using GNU software: <http://www.gnu.org/gethelp/>."
38691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38692 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
38694 GNU tar config.status 1.29
38695 configured by $0, generated by GNU Autoconf 2.69,
38696 with options \\"\$ac_cs_config\\"
38698 Copyright (C) 2012 Free Software Foundation, Inc.
38699 This config.status script is free software; the Free Software Foundation
38700 gives unlimited permission to copy, distribute and modify it."
38707 test -n "\$AWK" || AWK=awk
38710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38711 # The default lists apply if the user does not specify any file.
38717 ac_option=`expr "X$1" : 'X\([^=]*\)='`
38718 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38722 ac_option=`expr "X$1" : 'X\([^=]*\)='`
38734 # Handling of the options.
38735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38737 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38738 $as_echo "$ac_cs_version"; exit ;;
38739 --config | --confi | --conf | --con | --co | --c )
38740 $as_echo "$ac_cs_config"; exit ;;
38741 --debug | --debu | --deb | --de | --d | -d )
38743 --file | --fil | --fi | --f )
38746 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38747 '') as_fn_error $? "missing file argument" ;;
38749 as_fn_append CONFIG_FILES " '$ac_optarg'"
38750 ac_need_defaults=false;;
38751 --header | --heade | --head | --hea )
38754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38756 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
38757 ac_need_defaults=false;;
38759 # Conflict between --help and --header
38760 as_fn_error $? "ambiguous option: \`$1'
38761 Try \`$0 --help' for more information.";;
38762 --help | --hel | -h )
38763 $as_echo "$ac_cs_usage"; exit ;;
38764 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38765 | -silent | --silent | --silen | --sile | --sil | --si | --s)
38768 # This is an error.
38769 -*) as_fn_error $? "unrecognized option: \`$1'
38770 Try \`$0 --help' for more information." ;;
38772 *) as_fn_append ac_config_targets " $1"
38773 ac_need_defaults=false ;;
38779 ac_configure_extra_args=
38781 if $ac_cs_silent; then
38783 ac_configure_extra_args="$ac_configure_extra_args --silent"
38787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38788 if \$ac_cs_recheck; then
38789 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38791 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38792 CONFIG_SHELL='$SHELL'
38793 export CONFIG_SHELL
38798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38803 ## Running $as_me. ##
38809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38813 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38814 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
38815 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
38816 # from automake < 1.5.
38817 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
38818 # Capture the value of LINGUAS because we need it to compute CATALOGS.
38819 LINGUAS="${LINGUAS-%UNSET%}"
38825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38827 # Handling of arguments.
38828 for ac_config_target in $ac_config_targets
38830 case $ac_config_target in
38831 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
38832 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38833 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
38834 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
38835 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38836 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
38837 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38838 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
38839 "gnu/Makefile") CONFIG_FILES="$CONFIG_FILES gnu/Makefile" ;;
38840 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
38841 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
38842 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38843 "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
38844 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
38846 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38851 # If the user did not use the arguments to specify the items to instantiate,
38852 # then the envvar interface is used. Set only those that are not.
38853 # We use the long form for the default assignment because of an extremely
38854 # bizarre bug on SunOS 4.1.3.
38855 if $ac_need_defaults; then
38856 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38857 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38861 # Have a temporary directory for convenience. Make it in the build tree
38862 # simply because there is no reason against having it here, and in addition,
38863 # creating and moving files from /tmp can sometimes cause problems.
38864 # Hook for its removal unless debugging.
38865 # Note that there is a small window in which the directory will not be cleaned:
38866 # after its creation but before its name has been assigned to `$tmp'.
38870 trap 'exit_status=$?
38871 : "${ac_tmp:=$tmp}"
38872 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38874 trap 'as_fn_exit 1' 1 2 13 15
38876 # Create a (secure) tmp directory for tmp files.
38879 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38883 tmp=./conf$$-$RANDOM
38884 (umask 077 && mkdir "$tmp")
38885 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38888 # Set up the scripts for CONFIG_FILES section.
38889 # No need to generate them if there are no CONFIG_FILES.
38890 # This happens for instance with `./config.status config.h'.
38891 if test -n "$CONFIG_FILES"; then
38894 ac_cr=`echo X | tr X '\015'`
38895 # On cygwin, bash can eat \r inside `` if the user requested igncr.
38896 # But we know of no other shell where ac_cr would be empty at this
38897 # point, so we can use a bashism as a fallback.
38898 if test "x$ac_cr" = x; then
38899 eval ac_cr=\$\'\\r\'
38901 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38902 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38905 ac_cs_awk_cr=$ac_cr
38908 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38913 echo "cat >conf$$subs.awk <<_ACEOF" &&
38914 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38916 } >conf$$subs.sh ||
38917 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38918 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38920 for ac_last_try in false false false false false :; do
38921 . ./conf$$subs.sh ||
38922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38924 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38925 if test $ac_delim_n = $ac_delim_num; then
38927 elif $ac_last_try; then
38928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38933 rm -f conf$$subs.sh
38935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38936 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38940 s/^/S["/; s/!.*/"]=/
38950 s/\(.\{148\}\)..*/\1/
38952 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38957 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38964 s/\(.\{148\}\)..*/\1/
38966 s/["\\]/\\&/g; s/^/"/; s/$/"/
38970 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38975 ' <conf$$subs.awk | sed '
38980 ' >>$CONFIG_STATUS || ac_write_fail=1
38981 rm -f conf$$subs.awk
38982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38984 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38985 for (key in S) S_is_set[key] = 1
38991 nfields = split(line, field, "@")
38993 len = length(field[1])
38994 for (i = 2; i < nfields; i++) {
38996 keylen = length(key)
38997 if (S_is_set[key]) {
38999 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
39000 len += length(value) + length(field[++i])
39011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39012 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
39013 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
39016 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
39017 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
39020 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
39021 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
39022 # trailing colons and then remove the whole line if VPATH becomes empty
39023 # (actually we leave an empty line to preserve line numbers).
39024 if test "x$srcdir" = x.; then
39025 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
39043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39044 fi # test -n "$CONFIG_FILES"
39046 # Set up the scripts for CONFIG_HEADERS section.
39047 # No need to generate them if there are no CONFIG_HEADERS.
39048 # This happens for instance with `./config.status Makefile'.
39049 if test -n "$CONFIG_HEADERS"; then
39050 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
39054 # Transform confdefs.h into an awk script `defines.awk', embedded as
39055 # here-document in config.status, that substitutes the proper values into
39056 # config.h.in to produce config.h.
39058 # Create a delimiter string that does not exist in confdefs.h, to ease
39059 # handling of long lines.
39061 for ac_last_try in false false :; do
39062 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
39063 if test -z "$ac_tt"; then
39065 elif $ac_last_try; then
39066 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
39068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39072 # For the awk script, D is an array of macro values keyed by name,
39073 # likewise P contains macro parameters if any. Preserve backslash
39074 # newline sequences.
39076 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39078 s/.\{148\}/&'"$ac_delim"'/g
39081 s/^[ ]*#[ ]*define[ ][ ]*/ /
39088 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
39090 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
39094 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
39095 D["\1"]=" \3\\\\\\n"\\/p
39097 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
39102 s/.\{148\}/&'"$ac_delim"'/g
39107 s/["\\]/\\&/g; s/^/"/; s/$/"/p
39110 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
39112 ' <confdefs.h | sed '
39113 s/'"$ac_delim"'/"\\\
39114 "/g' >>$CONFIG_STATUS || ac_write_fail=1
39116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39117 for (key in D) D_is_set[key] = 1
39120 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
39122 split(line, arg, " ")
39123 if (arg[1] == "#") {
39127 defundef = substr(arg[1], 2)
39130 split(mac1, mac2, "(") #)
39132 prefix = substr(line, 1, index(line, defundef) - 1)
39133 if (D_is_set[macro]) {
39134 # Preserve the white space surrounding the "#".
39135 print prefix "define", macro P[macro] D[macro]
39138 # Replace #undef with comments. This is necessary, for example,
39139 # in the case of _POSIX_SOURCE, which is predefined and required
39140 # on some systems where configure will not decide to define it.
39141 if (defundef == "undef") {
39142 print "/*", prefix defundef, macro, "*/"
39150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39151 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
39152 fi # test -n "$CONFIG_HEADERS"
39155 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39160 :[FHLC]) ac_mode=$ac_tag; continue;;
39162 case $ac_mode$ac_tag in
39164 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
39165 :[FH]-) ac_tag=-:-;;
39166 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39183 -) ac_f="$ac_tmp/stdin";;
39184 *) # Look for the file first in the build tree, then in the source tree
39185 # (if the path is not absolute). The absolute path cannot be DOS-style,
39186 # because $ac_f cannot contain `:'.
39190 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39192 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
39194 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39195 as_fn_append ac_file_inputs " '$ac_f'"
39198 # Let's still pretend it is `configure' which instantiates (i.e., don't
39199 # use $as_me), people would be surprised to read:
39200 # /* config.h. Generated by config.status. */
39201 configure_input='Generated from '`
39202 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39204 if test x"$ac_file" != x-; then
39205 configure_input="$ac_file. $configure_input"
39206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39207 $as_echo "$as_me: creating $ac_file" >&6;}
39209 # Neutralize special characters interpreted by sed in replacement strings.
39210 case $configure_input in #(
39211 *\&* | *\|* | *\\* )
39212 ac_sed_conf_input=`$as_echo "$configure_input" |
39213 sed 's/[\\\\&|]/\\\\&/g'`;; #(
39214 *) ac_sed_conf_input=$configure_input;;
39218 *:-:* | *:-) cat >"$ac_tmp/stdin" \
39219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
39224 ac_dir=`$as_dirname -- "$ac_file" ||
39225 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39226 X"$ac_file" : 'X\(//\)[^/]' \| \
39227 X"$ac_file" : 'X\(//\)$' \| \
39228 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39229 $as_echo X"$ac_file" |
39230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39234 /^X\(\/\/\)[^/].*/{
39247 as_dir="$ac_dir"; as_fn_mkdir_p
39251 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39253 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39254 # A ".." for each directory in $ac_dir_suffix.
39255 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39256 case $ac_top_builddir_sub in
39257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39261 ac_abs_top_builddir=$ac_pwd
39262 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39263 # for backward compatibility:
39264 ac_top_builddir=$ac_top_build_prefix
39267 .) # We are building in place.
39269 ac_top_srcdir=$ac_top_builddir_sub
39270 ac_abs_top_srcdir=$ac_pwd ;;
39271 [\\/]* | ?:[\\/]* ) # Absolute name.
39272 ac_srcdir=$srcdir$ac_dir_suffix;
39273 ac_top_srcdir=$srcdir
39274 ac_abs_top_srcdir=$srcdir ;;
39275 *) # Relative name.
39276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39277 ac_top_srcdir=$ac_top_build_prefix$srcdir
39278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39280 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39291 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39293 ac_MKDIR_P=$MKDIR_P
39295 [\\/$]* | ?:[\\/]* ) ;;
39296 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39301 # If the template does not know about datarootdir, expand it.
39302 # FIXME: This hack should be removed a few years after 2.60.
39303 ac_datarootdir_hack=; ac_datarootdir_seen=
39314 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39315 *datarootdir*) ac_datarootdir_seen=yes;;
39316 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39318 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39321 ac_datarootdir_hack='
39322 s&@datadir@&$datadir&g
39323 s&@docdir@&$docdir&g
39324 s&@infodir@&$infodir&g
39325 s&@localedir@&$localedir&g
39326 s&@mandir@&$mandir&g
39327 s&\\\${datarootdir}&$datarootdir&g' ;;
39331 # Neutralize VPATH when `$srcdir' = `.'.
39332 # Shell code in configure.ac might set extrasub.
39333 # FIXME: do we really want to maintain this feature?
39334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39335 ac_sed_extra="$ac_vpsub
39338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39341 s|@configure_input@|$ac_sed_conf_input|;t t
39342 s&@top_builddir@&$ac_top_builddir_sub&;t t
39343 s&@top_build_prefix@&$ac_top_build_prefix&;t t
39344 s&@srcdir@&$ac_srcdir&;t t
39345 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39346 s&@top_srcdir@&$ac_top_srcdir&;t t
39347 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39348 s&@builddir@&$ac_builddir&;t t
39349 s&@abs_builddir@&$ac_abs_builddir&;t t
39350 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39351 s&@INSTALL@&$ac_INSTALL&;t t
39352 s&@MKDIR_P@&$ac_MKDIR_P&;t t
39353 $ac_datarootdir_hack
39355 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
39356 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39358 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39359 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
39360 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
39361 "$ac_tmp/out"`; test -z "$ac_out"; } &&
39362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39363 which seems to be undefined. Please make sure it is defined" >&5
39364 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39365 which seems to be undefined. Please make sure it is defined" >&2;}
39367 rm -f "$ac_tmp/stdin"
39369 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39370 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39378 if test x"$ac_file" != x-; then
39380 $as_echo "/* $configure_input */" \
39381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39382 } >"$ac_tmp/config.h" \
39383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39384 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39385 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39386 $as_echo "$as_me: $ac_file is unchanged" >&6;}
39389 mv "$ac_tmp/config.h" "$ac_file" \
39390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39393 $as_echo "/* $configure_input */" \
39394 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39395 || as_fn_error $? "could not create -" "$LINENO" 5
39397 # Compute "$ac_file"'s index in $config_headers.
39400 for _am_header in $config_headers :; do
39401 case $_am_header in
39402 $_am_arg | $_am_arg:* )
39405 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39408 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39409 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39410 X"$_am_arg" : 'X\(//\)[^/]' \| \
39411 X"$_am_arg" : 'X\(//\)$' \| \
39412 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39413 $as_echo X"$_am_arg" |
39414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39418 /^X\(\/\/\)[^/].*/{
39430 s/.*/./; q'`/stamp-h$_am_stamp_count
39433 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39434 $as_echo "$as_me: executing $ac_file commands" >&6;}
39439 case $ac_file$ac_mode in
39440 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39441 # Older Autoconf quotes --file arguments for eval, but not when files
39442 # are listed without --file. Let's play safe and only enable the eval
39443 # if we detect the quoting.
39444 case $CONFIG_FILES in
39445 *\'*) eval set x "$CONFIG_FILES" ;;
39446 *) set x $CONFIG_FILES ;;
39451 # Strip MF so we end up with the name of the file.
39452 mf=`echo "$mf" | sed -e 's/:.*$//'`
39453 # Check whether this is an Automake generated Makefile or not.
39454 # We used to match only the files named 'Makefile.in', but
39455 # some people rename them; so instead we look at the file content.
39456 # Grep'ing the first line is not enough: some people post-process
39457 # each Makefile.in and add a new line on top of each file to say so.
39458 # Grep'ing the whole file is not good either: AIX grep has a line
39459 # limit of 2048, but all sed's we know have understand at least 4000.
39460 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39461 dirpart=`$as_dirname -- "$mf" ||
39462 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39463 X"$mf" : 'X\(//\)[^/]' \| \
39464 X"$mf" : 'X\(//\)$' \| \
39465 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39471 /^X\(\/\/\)[^/].*/{
39487 # Extract the definition of DEPDIR, am__include, and am__quote
39488 # from the Makefile without running 'make'.
39489 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39490 test -z "$DEPDIR" && continue
39491 am__include=`sed -n 's/^am__include = //p' < "$mf"`
39492 test -z "$am__include" && continue
39493 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39494 # Find all dependency output files, they are included files with
39495 # $(DEPDIR) in their names. We invoke sed twice because it is the
39496 # simplest approach to changing $(DEPDIR) to its actual value in the
39498 for file in `sed -n "
39499 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39500 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39501 # Make sure the directory exists.
39502 test -f "$dirpart/$file" && continue
39503 fdir=`$as_dirname -- "$file" ||
39504 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39505 X"$file" : 'X\(//\)[^/]' \| \
39506 X"$file" : 'X\(//\)$' \| \
39507 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39508 $as_echo X"$file" |
39509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39513 /^X\(\/\/\)[^/].*/{
39526 as_dir=$dirpart/$fdir; as_fn_mkdir_p
39527 # echo "creating $dirpart/$file"
39528 echo '# dummy' > "$dirpart/$file"
39533 "po-directories":C)
39534 for ac_file in $CONFIG_FILES; do
39535 # Support "outfile[:infile[:infile...]]"
39537 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
39539 # PO directories have a Makefile.in generated from Makefile.in.in.
39540 case "$ac_file" in */Makefile.in)
39541 # Adjust a relative srcdir.
39542 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
39543 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
39544 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
39545 # In autoconf-2.13 it is called $ac_given_srcdir.
39546 # In autoconf-2.50 it is called $srcdir.
39547 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
39548 case "$ac_given_srcdir" in
39549 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
39550 /*) top_srcdir="$ac_given_srcdir" ;;
39551 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
39553 # Treat a directory as a PO directory if and only if it has a
39554 # POTFILES.in file. This allows packages to have multiple PO
39555 # directories under different names or in different locations.
39556 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
39557 rm -f "$ac_dir/POTFILES"
39558 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
39559 gt_tab=`printf '\t'`
39560 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
39561 POMAKEFILEDEPS="POTFILES.in"
39562 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
39563 # on $ac_dir but don't depend on user-specified configuration
39565 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
39566 # The LINGUAS file contains the set of available languages.
39567 if test -n "$OBSOLETE_ALL_LINGUAS"; then
39568 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
39570 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
39571 # Hide the ALL_LINGUAS assignment from automake < 1.5.
39572 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
39573 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
39575 # The set of available languages was given in configure.in.
39576 # Hide the ALL_LINGUAS assignment from automake < 1.5.
39577 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
39580 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
39581 # Compute UPDATEPOFILES
39582 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
39583 # Compute DUMMYPOFILES
39584 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
39586 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
39587 case "$ac_given_srcdir" in
39589 *) srcdirpre='$(srcdir)/' ;;
39595 for lang in $ALL_LINGUAS; do
39596 POFILES="$POFILES $srcdirpre$lang.po"
39597 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
39598 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
39599 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
39601 # CATALOGS depends on both $ac_dir and the user's LINGUAS
39602 # environment variable.
39604 if test -n "$ALL_LINGUAS"; then
39605 for presentlang in $ALL_LINGUAS; do
39607 if test "%UNSET%" != "$LINGUAS"; then
39608 desiredlanguages="$LINGUAS"
39610 desiredlanguages="$ALL_LINGUAS"
39612 for desiredlang in $desiredlanguages; do
39613 # Use the presentlang catalog if desiredlang is
39614 # a. equal to presentlang, or
39615 # b. a variant of presentlang (because in this case,
39616 # presentlang can be used as a fallback for messages
39617 # which are not translated in the desiredlang catalog).
39618 case "$desiredlang" in
39619 "$presentlang"*) useit=yes;;
39622 if test $useit = yes; then
39623 INST_LINGUAS="$INST_LINGUAS $presentlang"
39628 if test -n "$INST_LINGUAS"; then
39629 for lang in $INST_LINGUAS; do
39630 CATALOGS="$CATALOGS $lang.gmo"
39633 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
39634 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
39635 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
39636 if test -f "$f"; then
39638 *.orig | *.bak | *~) ;;
39639 *) cat "$f" >> "$ac_dir/Makefile" ;;
39647 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
39648 # Configurable variable values for building test suites.
39650 # Copyright (C) 2012 Free Software Foundation, Inc.
39652 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
39654 abs_builddir='$ac_abs_builddir'
39655 at_srcdir='$ac_srcdir'
39656 abs_srcdir='$ac_abs_srcdir'
39657 at_top_srcdir='$ac_top_srcdir'
39658 abs_top_srcdir='$ac_abs_top_srcdir'
39659 at_top_build_prefix='$ac_top_build_prefix'
39660 abs_top_builddir='$ac_abs_top_builddir'
39662 # Backward compatibility with Autotest <= 2.59b:
39663 at_top_builddir=\$at_top_build_prefix
39665 AUTOTEST_PATH='tests'
39667 SHELL=\${CONFIG_SHELL-'$SHELL'}
39677 ac_clean_files=$ac_clean_files_save
39679 test $ac_write_fail = 0 ||
39680 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39683 # configure is writing to config.log, and then calls config.status.
39684 # config.status does its own redirection, appending to config.log.
39685 # Unfortunately, on DOS this fails, as config.log is still kept open
39686 # by configure, so config.status won't be able to write to it; its
39687 # output is simply discarded. So we exec the FD to /dev/null,
39688 # effectively closing config.log, so it can be properly (re)opened and
39689 # appended to by config.status. When coming back to configure, we
39690 # need to make the FD available again.
39691 if test "$no_create" != yes; then
39693 ac_config_status_args=
39694 test "$silent" = yes &&
39695 ac_config_status_args="$ac_config_status_args --quiet"
39697 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39699 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39700 # would make configure fail if this is the last instruction.
39701 $ac_cs_success || as_fn_exit 1
39703 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
39704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39705 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}