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

ChangeLog
m4/fchdir.m4
modules/fchdir

index e330c90f70eccb9d8fd51f37bca052bb4a8b9cbb..b8b0b0fc3b3a2a0359c730d20e6b85d7ae515681 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-01-09  Bruno Haible  <bruno@clisp.org>
+
+       fchdir: Move AC_LIBOBJ invocation to the module description.
+       * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke AC_LIBOBJ and
+       gl_PREREQ_FCHDIR.
+       * modules/fchdir (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_FCHDIR.
+
 2022-01-09  Bruno Haible  <bruno@clisp.org>
 
        Remove influence of Automake conditionals on conditional dependencies.
index ae5e1d3361714af65f3ca6270f6cac6effcedb24..f85549a3ed6e973f24ddfe52c7b5b8ca5d4ce7f1 100644 (file)
@@ -1,4 +1,4 @@
-# fchdir.m4 serial 26
+# fchdir.m4 serial 27
 dnl Copyright (C) 2006-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,
@@ -17,8 +17,6 @@ AC_DEFUN([gl_FUNC_FCHDIR],
 
   AC_REQUIRE([gl_TEST_FCHDIR])
   if test $HAVE_FCHDIR = 0; then
-    AC_LIBOBJ([fchdir])
-    gl_PREREQ_FCHDIR
     AC_DEFINE([REPLACE_FCHDIR], [1],
       [Define to 1 if gnulib's fchdir() replacement is used.])
     dnl We must also replace anything that can manipulate a directory fd,
index e58c73523ab87a467b60f34696bdae34698db9db..967e648b06a6e00c7b0563de6860c246826a96c9 100644 (file)
@@ -30,6 +30,10 @@ sys_stat         [test $HAVE_FCHDIR = 0]
 
 configure.ac:
 gl_FUNC_FCHDIR
+if test $HAVE_FCHDIR = 0; then
+  AC_LIBOBJ([fchdir])
+  gl_PREREQ_FCHDIR
+fi
 gl_UNISTD_MODULE_INDICATOR([fchdir])
 
 Makefile.am: