changeset 14946:fff577282e62

free: Move AC_LIBOBJ invocations to module description. * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE invocations from here... * modules/free (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 07 May 2011 12:46:04 +0200
parents 76f9d77a4915
children 5f944f7ea38d
files ChangeLog m4/free.m4 modules/free
diffstat 3 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
+	free: Move AC_LIBOBJ invocations to module description.
+	* m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
+	invocations from here...
+	* modules/free (configure.ac): ... to here.
+
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
 	freadable: Move AC_LIBOBJ invocations to module description.
--- a/m4/free.m4
+++ b/m4/free.m4
@@ -30,7 +30,6 @@
        [gl_cv_func_free=no])])
 
   if test $gl_cv_func_free = no; then
-    AC_LIBOBJ([free])
     AC_DEFINE([free], [rpl_free],
       [Define to rpl_free if the replacement function should be used.])
   fi
--- a/modules/free
+++ b/modules/free
@@ -12,6 +12,10 @@
 
 configure.ac:
 gl_FUNC_FREE
+if test $gl_cv_func_free = no; then
+  AC_LIBOBJ([free])
+  gl_PREREQ_FREE
+fi
 
 Makefile.am: