changeset 14955:2a2e0d5e8803

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.
author Bruno Haible <bruno@clisp.org>
date Sun, 08 May 2011 11:22:53 +0200
parents ec17d168ffc6
children 590a6b9eefc0
files ChangeLog m4/getcwd.m4 modules/getcwd-lgpl
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/m4/getcwd.m4
+++ b/m4/getcwd.m4
@@ -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 @@
   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
 ])
--- a/modules/getcwd-lgpl
+++ b/modules/getcwd-lgpl
@@ -11,6 +11,9 @@
 
 configure.ac:
 gl_FUNC_GETCWD_LGPL
+if test $REPLACE_GETCWD = 1; then
+  AC_LIBOBJ([getcwd-lgpl])
+fi
 gl_UNISTD_MODULE_INDICATOR([getcwd])
 
 Makefile.am: