From 95a8ef959ffec07e349bc9da437d5333d7b00455 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 8 May 2011 11:22:53 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ m4/getcwd.m4 | 5 ++--- modules/getcwd-lgpl | 3 +++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 508338cba..eb1817feb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-08 Bruno Haible + + 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 crypto/gc: Move AC_LIBOBJ invocations to module description. diff --git a/m4/getcwd.m4 b/m4/getcwd.m4 index eb2c9d937..91a2e7e86 100644 --- 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 @@ 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 ]) diff --git a/modules/getcwd-lgpl b/modules/getcwd-lgpl index 72e6a7fc0..6a780ad77 100644 --- a/modules/getcwd-lgpl +++ b/modules/getcwd-lgpl @@ -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: -- 2.11.0