2011-02-28 Paul Eggert <eggert@cs.ucla.edu>
+ stdio: simplify by moving files to printf-posix, sigpipe
+ * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
+ since this symbol is needed only if printf is replaced.
+ * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
+ Require gl_ASM_SYMBOL_PREFIX.
+ * modules/printf-posix (Files): Add m4/asm-underscore.m4.
+ * modules/sigpipe (Files): Likewise. Also, add m4/stdio-write.c.
+ (Depends-on): Add 'raise'.
+ (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
+ * modules/stdio (Files): Remove lib/stdio-write.c,
+ m4/asm-underscore.m4.
+ (Depends-on): Remove 'raise'.
+
stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
* m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
* m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
-# printf-posix-rpl.m4 serial 3
+# printf-posix-rpl.m4 serial 4
dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_REPLACE_PRINTF],
[
AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+ AC_REQUIRE([gl_ASM_SYMBOL_PREFIX])
AC_LIBOBJ([printf])
REPLACE_PRINTF=1
AC_DEFINE([REPLACE_PRINTF_POSIX], [1],
[
AC_REQUIRE([gl_STDIO_H_DEFAULTS])
AC_REQUIRE([AC_C_INLINE])
- AC_REQUIRE([gl_ASM_SYMBOL_PREFIX])
gl_NEXT_HEADERS([stdio.h])
dnl No need to create extra modules for these functions. Everyone who uses
dnl <stdio.h> likely needs them.
lib/printf.c
m4/printf-posix-rpl.m4
m4/printf.m4
+m4/asm-underscore.m4
Depends-on:
stdio
Files:
m4/sigpipe.m4
+lib/stdio-write.c
+m4/asm-underscore.m4
Depends-on:
+raise
signal
sigprocmask
stdio
GNULIB_SIGNAL_H_SIGPIPE=1
dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1.
AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+AC_REQUIRE([gl_ASM_SYMBOL_PREFIX])
GNULIB_STDIO_H_SIGPIPE=1
dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1.
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
Files:
lib/stdio.in.h
-lib/stdio-write.c
m4/stdio_h.m4
-m4/asm-underscore.m4
Depends-on:
include_next
arg-nonnull
c++defs
-raise
stddef
warn-on-use