2021-05-09 Bruno Haible <bruno@clisp.org>
+ {realloc,calloc}-gnu: Fix autoconf macro (regression 2021-04-18).
+ * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Don't reset REPLACE_REALLOC
+ to 0 if it is already 1 after gl_FUNC_REALLOC_GNU was executed.
+ * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Don't reset REPLACE_CALLOC
+ to 0 if it is already 1 after gl_FUNC_CALLOC_GNU was executed.
+
{malloc,realloc,calloc}-gnu: Fix autoconf macro (regression 2021-04-18).
* m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Don't assume that
_AC_FUNC_MALLOC_IF expands to a single shell statement.
-# calloc.m4 serial 26
+# calloc.m4 serial 27
# Copyright (C) 2004-2021 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
[
AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
- REPLACE_CALLOC=$REPLACE_MALLOC
+ if test $REPLACE_MALLOC = 1; then
+ REPLACE_CALLOC=1
+ fi
dnl Although in theory we should also test for size_t overflow,
dnl in practice testing for ptrdiff_t overflow suffices
dnl since PTRDIFF_MAX <= SIZE_MAX on all known Gnulib porting targets.
-# realloc.m4 serial 23
+# realloc.m4 serial 24
dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[
AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
- REPLACE_REALLOC=$REPLACE_MALLOC
+ if test $REPLACE_MALLOC = 1; then
+ REPLACE_REALLOC=1
+ fi
])