From: Bruno Haible <bruno@clisp.org>
Date: Mon, 23 May 2011 20:37:28 +0000 (+0200)
Subject: chdir-safer: Move AC_LIBOBJ invocations to module description.
X-Git-Tag: v0.1~2345
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ca77245a70ba2e9107c536b761da707fac2673af;p=gnulib.git

chdir-safer: Move AC_LIBOBJ invocations to module description.

* m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
* modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
---

diff --git a/ChangeLog b/ChangeLog
index 53d8dde826..d8be60e8af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-23  Bruno Haible  <bruno@clisp.org>
+
+	chdir-safer: Move AC_LIBOBJ invocations to module description.
+	* m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
+	* modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
+
 2011-05-23  Bruno Haible  <bruno@clisp.org>
 
 	canonicalize: Move AC_LIBOBJ invocations to module description.
diff --git a/m4/chdir-safer.m4 b/m4/chdir-safer.m4
index 83035f3deb..0f6e4077d3 100644
--- a/m4/chdir-safer.m4
+++ b/m4/chdir-safer.m4
@@ -1,4 +1,4 @@
-#serial 4
+#serial 5
 dnl Copyright (C) 2005-2006, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,6 +6,5 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_CHDIR_SAFER],
 [
-  AC_LIBOBJ([chdir-safer])
   AC_CHECK_FUNCS_ONCE([readlink])
 ])
diff --git a/modules/chdir-safer b/modules/chdir-safer
index 39cfdc7f6b..095a4086cc 100644
--- a/modules/chdir-safer
+++ b/modules/chdir-safer
@@ -18,6 +18,7 @@ configure.ac:
 gl_CHDIR_SAFER
 
 Makefile.am:
+lib_SOURCES += chdir-safer.c
 
 Include:
 "chdir-safer.h"