changeset 15235:3887949e54f2

safe-write: Move AC_LIBOBJ invocations to module description. * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro. * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE instead of gl_SAFE_WRITE. (Makefile.am): Augment lib_SOURCES.
author Bruno Haible <bruno@clisp.org>
date Tue, 24 May 2011 01:30:20 +0200
parents 0966aa04021c
children e2c31bba517c
files ChangeLog m4/safe-write.m4 modules/safe-write
diffstat 3 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-23  Bruno Haible  <bruno@clisp.org>
+
+	safe-write: Move AC_LIBOBJ invocations to module description.
+	* m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
+	* modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
+	instead of gl_SAFE_WRITE.
+	(Makefile.am): Augment lib_SOURCES.
+
 2011-05-23  Bruno Haible  <bruno@clisp.org>
 
 	safe-read: Move AC_LIBOBJ invocations to module description.
--- a/m4/safe-write.m4
+++ b/m4/safe-write.m4
@@ -1,16 +1,9 @@
-# safe-write.m4 serial 3
+# safe-write.m4 serial 4
 dnl Copyright (C) 2002, 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,
 dnl with or without modifications, as long as this notice is preserved.
 
-AC_DEFUN([gl_SAFE_WRITE],
-[
-  AC_LIBOBJ([safe-write])
-
-  gl_PREREQ_SAFE_WRITE
-])
-
 # Prerequisites of lib/safe-write.c.
 AC_DEFUN([gl_PREREQ_SAFE_WRITE],
 [
--- a/modules/safe-write
+++ b/modules/safe-write
@@ -13,9 +13,10 @@
 write
 
 configure.ac:
-gl_SAFE_WRITE
+gl_PREREQ_SAFE_WRITE
 
 Makefile.am:
+lib_SOURCES += safe-write.c
 
 Include:
 "safe-write.h"