summaryrefslogtreecommitdiff
path: root/modules/realloc-posix
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-01-03 15:31:53 +0100
committerBruno Haible <bruno@clisp.org>2022-01-03 15:31:53 +0100
commit918e06951df709672d744e7600cc808b065a8e9e (patch)
tree250e48c5fec73e56f40eaf745434e294cd177d5b /modules/realloc-posix
parent316ba778dc74385399d7bc10ec0fa1dfb8374e49 (diff)
downloadgnulib-918e06951df709672d744e7600cc808b065a8e9e.tar.gz
realloc-gnu: Allow use as dependency from test modules.
* m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Set REPLACE_REALLOC_FOR_REALLOC_GNU instead of REPLACE_REALLOC. (gl_FUNC_REALLOC_POSIX): Set REPLACE_REALLOC_FOR_REALLOC_POSIX instead of REPLACE_REALLOC. * m4/stdlib_h.m4 (gl_STDLIB_H_REQUIRE_DEFAULTS): Initialize the realloc-gnu module indicator. (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC_FOR_REALLOC_GNU, REPLACE_REALLOC_FOR_REALLOC_POSIX, not REPLACE_REALLOC. * modules/stdlib (Makefile.am): Substitute GNULIB_REALLOC_GNU, REPLACE_REALLOC_FOR_REALLOC_GNU, REPLACE_REALLOC_FOR_REALLOC_POSIX, not REPLACE_REALLOC. * modules/realloc-posix (Depends-on, configure.ac): Test REPLACE_REALLOC_FOR_REALLOC_POSIX instead of REPLACE_REALLOC. * modules/realloc-gnu (Comment): Remove section. (Depends-on): Add free-posix, malloc-gnu, xalloc-oversized. (configure.ac): Test REPLACE_REALLOC_FOR_REALLOC_GNU instead of REPLACE_REALLOC. Set a module indicator. * lib/stdlib.in.h (realloc): Test REPLACE_REALLOC_FOR_REALLOC_POSIX, REPLACE_REALLOC_FOR_REALLOC_GNU, and the respective module indicators instead of just REPLACE_REALLOC.
Diffstat (limited to 'modules/realloc-posix')
-rw-r--r--modules/realloc-posix8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/realloc-posix b/modules/realloc-posix
index a30356f31a..c87d7edd47 100644
--- a/modules/realloc-posix
+++ b/modules/realloc-posix
@@ -8,13 +8,13 @@ m4/malloc.m4
Depends-on:
stdlib
-free-posix [test $REPLACE_REALLOC = 1]
-malloc-posix [test $REPLACE_REALLOC = 1]
-xalloc-oversized [test $REPLACE_REALLOC = 1]
+free-posix [test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1]
+malloc-posix [test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1]
+xalloc-oversized [test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1]
configure.ac:
gl_FUNC_REALLOC_POSIX
-if test $REPLACE_REALLOC = 1; then
+if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
AC_LIBOBJ([realloc])
fi
gl_STDLIB_MODULE_INDICATOR([realloc-posix])