getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 09:22:53 +0000 (11:22 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:03 +0000 (00:06 +0200)
* m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
here...
* modules/getcwd-lgpl (configure.ac): ... to here.

ChangeLog
m4/getcwd.m4
modules/getcwd-lgpl

index 508338c..eb1817f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+       getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
+       * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
+       here...
+       * modules/getcwd-lgpl (configure.ac): ... to here.
+
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
        crypto/gc: Move AC_LIBOBJ invocations to module description.
index eb2c9d9..91a2e7e 100644 (file)
@@ -6,7 +6,7 @@
 # with or without modifications, as long as this notice is preserved.
 
 # Written by Paul Eggert.
-# serial 6
+# serial 7
 
 AC_DEFUN([gl_FUNC_GETCWD_NULL],
   [
@@ -71,9 +71,8 @@ AC_DEFUN([gl_FUNC_GETCWD_LGPL],
   case $gl_cv_func_getcwd_null in
   *yes) ;;
   *)
-    dnl Minimal replacement
+    dnl Minimal replacement lib/getcwd-lgpl.c.
     REPLACE_GETCWD=1
-    AC_LIBOBJ([getcwd-lgpl])
     ;;
   esac
 ])
index 72e6a7f..6a780ad 100644 (file)
@@ -11,6 +11,9 @@ strdup          [test $REPLACE_GETCWD = 1]
 
 configure.ac:
 gl_FUNC_GETCWD_LGPL
+if test $REPLACE_GETCWD = 1; then
+  AC_LIBOBJ([getcwd-lgpl])
+fi
 gl_UNISTD_MODULE_INDICATOR([getcwd])
 
 Makefile.am: