* 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>
+ 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.
-# 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,
[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
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
-])
configure.ac:
gl_FUNC_REALLOC_GNU
+if test $REPLACE_REALLOC = 1; then
+ AC_LIBOBJ([realloc])
+fi
gl_MODULE_INDICATOR([realloc-gnu])
Makefile.am:
configure.ac:
gl_FUNC_REALLOC_POSIX
+if test $REPLACE_REALLOC = 1; then
+ AC_LIBOBJ([realloc])
+fi
gl_STDLIB_MODULE_INDICATOR([realloc-posix])
Makefile.am: