realloc-*: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 16:10:27 +0000 (18:10 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:41 +0000 (00:06 +0200)
* m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
(gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
AC_LIBOBJ invocations from here...
* modules/realloc-gnu (configure.ac): ... to here.
* modules/realloc-posix (configure.ac): ... and here.

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

index b894ce1..d9d2715 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       realloc-*: Move AC_LIBOBJ invocations to module description.
+       * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
+       (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
+       AC_LIBOBJ invocations from here...
+       * modules/realloc-gnu (configure.ac): ... to here.
+       * modules/realloc-posix (configure.ac): ... and here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        readutmp: Move AC_LIBOBJ invocations to module description.
        * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
        * modules/readutmp (configure.ac): ... to here.
index a403d9f..5cc1340 100644 (file)
@@ -1,4 +1,4 @@
-# realloc.m4 serial 11
+# realloc.m4 serial 12
 dnl Copyright (C) 2007, 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,
@@ -17,7 +17,7 @@ AC_DEFUN([gl_FUNC_REALLOC_GNU],
                [Define to 1 if your system has a GNU libc compatible 'realloc'
                 function, and to 0 otherwise.])],
     [AC_DEFINE([HAVE_REALLOC_GNU], [0])
-     gl_REPLACE_REALLOC
+     REPLACE_REALLOC=1
     ])
 ])# gl_FUNC_REALLOC_GNU
 
@@ -33,12 +33,6 @@ AC_DEFUN([gl_FUNC_REALLOC_POSIX],
     AC_DEFINE([HAVE_REALLOC_POSIX], [1],
       [Define if the 'realloc' function is POSIX compliant.])
   else
-    gl_REPLACE_REALLOC
+    REPLACE_REALLOC=1
   fi
 ])
-
-AC_DEFUN([gl_REPLACE_REALLOC],
-[
-  AC_LIBOBJ([realloc])
-  REPLACE_REALLOC=1
-])
index f059976..760edcd 100644 (file)
@@ -14,6 +14,9 @@ realloc-posix
 
 configure.ac:
 gl_FUNC_REALLOC_GNU
+if test $REPLACE_REALLOC = 1; then
+  AC_LIBOBJ([realloc])
+fi
 gl_MODULE_INDICATOR([realloc-gnu])
 
 Makefile.am:
index 5876584..20270e6 100644 (file)
@@ -11,6 +11,9 @@ stdlib
 
 configure.ac:
 gl_FUNC_REALLOC_POSIX
+if test $REPLACE_REALLOC = 1; then
+  AC_LIBOBJ([realloc])
+fi
 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
 
 Makefile.am: