]> Savannah Git Hosting - gnulib.git/commitdiff
stdio: Move AC_LIBOBJ invocations to the module description.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Jan 2022 14:40:18 +0000 (15:40 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Jan 2022 14:40:18 +0000 (15:40 +0100)
* m4/stdio_h.m4 (gl_STDIO_H): Don't invoke AC_LIBOBJ.
* modules/stdio (configure.ac): Invoke AC_LIBOBJ here.

ChangeLog
m4/stdio_h.m4
modules/stdio

index b8b0b0fc3b3a2a0359c730d20e6b85d7ae515681..2397dd79b6739c0e81e1e36d7a32b4bf751d8d16 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-01-09  Bruno Haible  <bruno@clisp.org>
+
+       stdio: Move AC_LIBOBJ invocations to the module description.
+       * m4/stdio_h.m4 (gl_STDIO_H): Don't invoke AC_LIBOBJ.
+       * modules/stdio (configure.ac): Invoke AC_LIBOBJ here.
+
 2022-01-09  Bruno Haible  <bruno@clisp.org>
 
        fchdir: Move AC_LIBOBJ invocation to the module description.
index cc80e77365fd3c1207b56fc68af6cbae0065b5e1..09f56be544429f5c0b5a80814058f7fba9a36a98 100644 (file)
@@ -1,4 +1,4 @@
-# stdio_h.m4 serial 57
+# stdio_h.m4 serial 58
 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -49,7 +49,6 @@ AC_DEFUN_ONCE([gl_STDIO_H],
     gl_NONBLOCKING_IO
     if test $gl_cv_have_nonblocking != yes; then
       REPLACE_STDIO_READ_FUNCS=1
-      AC_LIBOBJ([stdio-read])
     fi
   ])
 
@@ -62,7 +61,6 @@ AC_DEFUN_ONCE([gl_STDIO_H],
     gl_SIGNAL_SIGPIPE
     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
       REPLACE_STDIO_WRITE_FUNCS=1
-      AC_LIBOBJ([stdio-write])
     fi
   ])
   dnl This ifdef is necessary to avoid an error "missing file lib/stdio-write.c"
@@ -74,7 +72,6 @@ AC_DEFUN_ONCE([gl_STDIO_H],
     gl_NONBLOCKING_IO
     if test $gl_cv_have_nonblocking != yes; then
       REPLACE_STDIO_WRITE_FUNCS=1
-      AC_LIBOBJ([stdio-write])
     fi
   ])
 
index 0f250558dc0864c872e3ec58c80ab9639933d6fc..61b89e0c86a4d1c1b6bd82e9cd4fab1ef4d3b023 100644 (file)
@@ -20,6 +20,12 @@ configure.ac:
 gl_STDIO_H
 gl_STDIO_H_REQUIRE_DEFAULTS
 AC_PROG_MKDIR_P
+if test $REPLACE_STDIO_READ_FUNCS = 1; then
+  AC_LIBOBJ([stdio-read])
+fi
+if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
+  AC_LIBOBJ([stdio-write])
+fi
 
 dnl No need to create extra modules for these functions. Everyone who uses
 dnl <stdio.h> likely needs them.