+2021-05-09 Bruno Haible <bruno@clisp.org>
+
+ {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.
+ * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Don't assume that
+ _AC_FUNC_REALLOC_IF expands to a single shell statement.
+ * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Don't assume that
+ _AC_FUNC_CALLOC_IF expands to a single shell statement.
+
2021-05-09 Bruno Haible <bruno@clisp.org>
malloc-gnu, realloc-gnu, calloc-gnu: Ensure errno gets set on IRIX.
-# calloc.m4 serial 25
+# calloc.m4 serial 26
# 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_CALLOC_POSIX])
- test $REPLACE_CALLOC = 1 || _AC_FUNC_CALLOC_IF([], [REPLACE_CALLOC=1])
+ if test $REPLACE_CALLOC = 0; then
+ _AC_FUNC_CALLOC_IF([], [REPLACE_CALLOC=1])
+ fi
])# gl_FUNC_CALLOC_GNU
# gl_FUNC_CALLOC_POSIX
-# malloc.m4 serial 25
+# malloc.m4 serial 26
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])
- test $REPLACE_MALLOC = 1 || _AC_FUNC_MALLOC_IF([], [REPLACE_MALLOC=1])
+ if test $REPLACE_MALLOC = 0; then
+ _AC_FUNC_MALLOC_IF([], [REPLACE_MALLOC=1])
+ fi
])
# gl_FUNC_MALLOC_PTRDIFF
-# realloc.m4 serial 22
+# realloc.m4 serial 23
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_REALLOC_POSIX])
- test $REPLACE_REALLOC = 1 || _AC_FUNC_REALLOC_IF([], [REPLACE_REALLOC=1])
+ if test $REPLACE_REALLOC = 0; then
+ _AC_FUNC_REALLOC_IF([], [REPLACE_REALLOC=1])
+ fi
])# gl_FUNC_REALLOC_GNU
# gl_FUNC_REALLOC_POSIX