+2011-05-21 Bruno Haible <bruno@clisp.org>
+
+ malloc-*: Move AC_LIBOBJ invocations to module description.
+ * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
+ (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
+ AC_LIBOBJ invocations from here...
+ * modules/malloc-gnu (configure.ac): ... to here.
+ * modules/malloc-posix (configure.ac): ... and here.
+
2011-05-21 Bruno Haible <bruno@clisp.org>
lstat, openat: Respect rules for use of AC_LIBOBJ.
-# malloc.m4 serial 12
+# malloc.m4 serial 13
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 'malloc'
function, and to 0 otherwise.])],
[AC_DEFINE([HAVE_MALLOC_GNU], [0])
- gl_REPLACE_MALLOC
+ REPLACE_MALLOC=1
])
])
AC_DEFINE([HAVE_MALLOC_POSIX], [1],
[Define if the 'malloc' function is POSIX compliant.])
else
- gl_REPLACE_MALLOC
+ REPLACE_MALLOC=1
fi
])
[gl_cv_func_malloc_posix=no])
])
])
-
-AC_DEFUN([gl_REPLACE_MALLOC],
-[
- AC_LIBOBJ([malloc])
- REPLACE_MALLOC=1
-])