mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 06:50:22 +00:00
57f15f779f
* build-aux/mktempd (rand_bytes, mktempd): * build-aux/useless-if-before-free (FILE): * build-aux/vc-list-files: * gnulib/lib/.cvsignore: * gnulib/lib/Makefile.am: * gnulib/lib/poll.c (poll): * gnulib/lib/stdbool.in.h (_GL_STDBOOL_H, true): * gnulib/lib/stdio-impl.h (fp_, fp_ub): * gnulib/lib/stdio.in.h (vasprintf, obstack_printf) (obstack_vprintf): * gnulib/lib/vasnprintf.c (_GNU_SOURCE, sprintf, IF_LINT, exp) (remainder, scale10_round_decimal_long_double) (scale10_round_decimal_double, pad_ourselves): * gnulib/m4/gnulib-cache.m4: * gnulib/m4/gnulib-common.m4 (gl_MODULE_INDICATOR): * gnulib/m4/gnulib-tool.m4 (gl_LOCAL_DIR, gl_M4_BASE, gl_PO_BASE) (gl_DOC_BASE, gl_TESTS_BASE, gl_WITH_TESTS, gl_LIB, gl_LGPL) (gl_MAKEFILE_NAME, gl_MACRO_PREFIX, gl_PO_DOMAIN, gl_VC_FILES): * gnulib/m4/lock.m4 (gl_LOCK_EARLY_BODY, gl_PREREQ_LOCK) (gl_DISABLE_THREADS): * gnulib/m4/onceonly.m4: * gnulib/m4/posix-shell.m4 (gl_POSIX_SHELL): * gnulib/m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): * gnulib/tests/test-getaddrinfo.c (ENABLE_DEBUGGING, dbgprintf) (simple): * gnulib/tests/test-stdint.c (UINTMAX_MAX, or): * gnulib/tests/test-vc-list-files-cvs.sh (compare): * gnulib/tests/test-vc-list-files-git.sh (compare):
90 lines
4.1 KiB
Plaintext
90 lines
4.1 KiB
Plaintext
# stdio_h.m4 serial 11
|
|
dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
|
|
dnl This file is free software; the Free Software Foundation
|
|
dnl gives unlimited permission to copy and/or distribute it,
|
|
dnl with or without modifications, as long as this notice is preserved.
|
|
|
|
AC_DEFUN([gl_STDIO_H],
|
|
[
|
|
AC_REQUIRE([gl_STDIO_H_DEFAULTS])
|
|
gl_CHECK_NEXT_HEADERS([stdio.h])
|
|
])
|
|
|
|
AC_DEFUN([gl_STDIO_MODULE_INDICATOR],
|
|
[
|
|
dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
|
|
AC_REQUIRE([gl_STDIO_H_DEFAULTS])
|
|
GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
|
|
])
|
|
|
|
AC_DEFUN([gl_STDIO_H_DEFAULTS],
|
|
[
|
|
GNULIB_FPRINTF_POSIX=0; AC_SUBST([GNULIB_FPRINTF_POSIX])
|
|
GNULIB_PRINTF_POSIX=0; AC_SUBST([GNULIB_PRINTF_POSIX])
|
|
GNULIB_OBSTACK_PRINTF=0; AC_SUBST([GNULIB_OBSTACK_PRINTF])
|
|
GNULIB_OBSTACK_PRINTF_POSIX=0; AC_SUBST([GNULIB_OBSTACK_PRINTF_POSIX])
|
|
GNULIB_SNPRINTF=0; AC_SUBST([GNULIB_SNPRINTF])
|
|
GNULIB_SPRINTF_POSIX=0; AC_SUBST([GNULIB_SPRINTF_POSIX])
|
|
GNULIB_VFPRINTF_POSIX=0; AC_SUBST([GNULIB_VFPRINTF_POSIX])
|
|
GNULIB_VPRINTF_POSIX=0; AC_SUBST([GNULIB_VPRINTF_POSIX])
|
|
GNULIB_VSNPRINTF=0; AC_SUBST([GNULIB_VSNPRINTF])
|
|
GNULIB_VSPRINTF_POSIX=0; AC_SUBST([GNULIB_VSPRINTF_POSIX])
|
|
GNULIB_VASPRINTF=0; AC_SUBST([GNULIB_VASPRINTF])
|
|
GNULIB_FOPEN=0; AC_SUBST([GNULIB_FOPEN])
|
|
GNULIB_FREOPEN=0; AC_SUBST([GNULIB_FREOPEN])
|
|
GNULIB_FSEEK=0; AC_SUBST([GNULIB_FSEEK])
|
|
GNULIB_FSEEKO=0; AC_SUBST([GNULIB_FSEEKO])
|
|
GNULIB_FTELL=0; AC_SUBST([GNULIB_FTELL])
|
|
GNULIB_FTELLO=0; AC_SUBST([GNULIB_FTELLO])
|
|
GNULIB_FFLUSH=0; AC_SUBST([GNULIB_FFLUSH])
|
|
GNULIB_GETDELIM=0; AC_SUBST([GNULIB_GETDELIM])
|
|
GNULIB_GETLINE=0; AC_SUBST([GNULIB_GETLINE])
|
|
dnl Assume proper GNU behavior unless another module says otherwise.
|
|
REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF])
|
|
REPLACE_VFPRINTF=0; AC_SUBST([REPLACE_VFPRINTF])
|
|
REPLACE_PRINTF=0; AC_SUBST([REPLACE_PRINTF])
|
|
REPLACE_VPRINTF=0; AC_SUBST([REPLACE_VPRINTF])
|
|
REPLACE_SNPRINTF=0; AC_SUBST([REPLACE_SNPRINTF])
|
|
HAVE_DECL_SNPRINTF=1; AC_SUBST([HAVE_DECL_SNPRINTF])
|
|
REPLACE_VSNPRINTF=0; AC_SUBST([REPLACE_VSNPRINTF])
|
|
HAVE_DECL_VSNPRINTF=1; AC_SUBST([HAVE_DECL_VSNPRINTF])
|
|
REPLACE_SPRINTF=0; AC_SUBST([REPLACE_SPRINTF])
|
|
REPLACE_VSPRINTF=0; AC_SUBST([REPLACE_VSPRINTF])
|
|
HAVE_VASPRINTF=1; AC_SUBST([HAVE_VASPRINTF])
|
|
REPLACE_VASPRINTF=0; AC_SUBST([REPLACE_VASPRINTF])
|
|
REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN])
|
|
REPLACE_FREOPEN=0; AC_SUBST([REPLACE_FREOPEN])
|
|
HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO])
|
|
REPLACE_FSEEKO=0; AC_SUBST([REPLACE_FSEEKO])
|
|
REPLACE_FSEEK=0; AC_SUBST([REPLACE_FSEEK])
|
|
HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO])
|
|
REPLACE_FTELLO=0; AC_SUBST([REPLACE_FTELLO])
|
|
REPLACE_FTELL=0; AC_SUBST([REPLACE_FTELL])
|
|
REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH])
|
|
HAVE_DECL_GETDELIM=1; AC_SUBST([HAVE_DECL_GETDELIM])
|
|
HAVE_DECL_GETLINE=1; AC_SUBST([HAVE_DECL_GETLINE])
|
|
REPLACE_GETLINE=0; AC_SUBST([REPLACE_GETLINE])
|
|
HAVE_DECL_OBSTACK_PRINTF=1; AC_SUBST([HAVE_DECL_OBSTACK_PRINTF])
|
|
REPLACE_OBSTACK_PRINTF=0; AC_SUBST([REPLACE_OBSTACK_PRINTF])
|
|
])
|
|
|
|
dnl Code shared by fseeko and ftello. Determine if large files are supported,
|
|
dnl but stdin does not start as a large file by default.
|
|
AC_DEFUN([gl_STDIN_LARGE_OFFSET],
|
|
[
|
|
AC_CACHE_CHECK([whether stdin defaults to large file offsets],
|
|
[gl_cv_var_stdin_large_offset],
|
|
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]],
|
|
[[#if defined __SL64 && defined __SCLE /* cygwin */
|
|
/* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
|
|
fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
|
|
it is easier to do a version check than building a runtime test. */
|
|
# include <cygwin/version.h>
|
|
# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
|
|
choke me
|
|
# endif
|
|
#endif]])],
|
|
[gl_cv_var_stdin_large_offset=yes],
|
|
[gl_cv_var_stdin_large_offset=no])])
|
|
])
|