calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
authorBruno Haible <bruno@clisp.org>
Thu, 5 May 2011 23:15:44 +0000 (01:15 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:05:53 +0000 (00:05 +0200)
* m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
(gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
REPLACE_CALLOC.
* modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
* modules/calloc-gnu (configure.ac): Likewise.

ChangeLog
m4/calloc.m4
modules/calloc-gnu
modules/calloc-posix

index 9d185f5..ff755c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-05-05  Bruno Haible  <bruno@clisp.org>
 
+       calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
+       * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
+       (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
+       REPLACE_CALLOC.
+       * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
+       * modules/calloc-gnu (configure.ac): Likewise.
+
+2011-05-05  Bruno Haible  <bruno@clisp.org>
+
        btowc: Move AC_LIBOBJ invocations to module description.
        * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
        invocations from here...
index 8f462b3..3bab709 100644 (file)
@@ -1,4 +1,4 @@
-# calloc.m4 serial 12
+# calloc.m4 serial 13
 
 # Copyright (C) 2004-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -49,7 +49,7 @@ AC_DEFUN([gl_FUNC_CALLOC_GNU],
                [Define to 1 if your system has a GNU libc compatible `calloc'
                 function, and to 0 otherwise.])],
     [AC_DEFINE([HAVE_CALLOC_GNU], [0])
-     gl_REPLACE_CALLOC
+     REPLACE_CALLOC=1
     ])
 ])# gl_FUNC_CALLOC_GNU
 
@@ -66,12 +66,6 @@ AC_DEFUN([gl_FUNC_CALLOC_POSIX],
     AC_DEFINE([HAVE_CALLOC_POSIX], [1],
       [Define if the 'calloc' function is POSIX compliant.])
   else
-    gl_REPLACE_CALLOC
+    REPLACE_CALLOC=1
   fi
 ])
-
-AC_DEFUN([gl_REPLACE_CALLOC],
-[
-  AC_LIBOBJ([calloc])
-  REPLACE_CALLOC=1
-])
index 734d973..ffc8b50 100644 (file)
@@ -10,6 +10,9 @@ calloc-posix
 
 configure.ac:
 gl_FUNC_CALLOC_GNU
+if test $REPLACE_CALLOC = 1; then
+  AC_LIBOBJ([calloc])
+fi
 gl_MODULE_INDICATOR([calloc-gnu])
 
 Makefile.am:
index f93b90e..ef274ed 100644 (file)
@@ -11,6 +11,9 @@ stdlib
 
 configure.ac:
 gl_FUNC_CALLOC_POSIX
+if test $REPLACE_CALLOC = 1; then
+  AC_LIBOBJ([calloc])
+fi
 gl_STDLIB_MODULE_INDICATOR([calloc-posix])
 
 Makefile.am: