+2024-10-31 Bruno Haible <bruno@clisp.org>
+
+ malloc-posix, realloc-posix: Fix incorrect expansion of AC_FUNC_MALLOC.
+ * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Handle the case of a missing third
+ argument.
+ * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
+
2024-10-31 Bruno Haible <bruno@clisp.org>
malloc-gnu, eealloc: Make code more future-proof.
# malloc.m4
-# serial 38
+# serial 39
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
| hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
ac_cv_func_malloc_0_nonnull="guessing yes" ;;
# Guess as follows if we don't know.
- *) ac_cv_func_malloc_0_nonnull=$3 ;;
+ *) ac_cv_func_malloc_0_nonnull=m4_if([$3],[],["guessing no"],[$3]) ;;
esac
])
])
# realloc.m4
-# serial 35
+# serial 36
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
| hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
ac_cv_func_realloc_0_nonnull="guessing yes" ;;
# Guess as follows if we don't know.
- *) ac_cv_func_realloc_0_nonnull=$3 ;;
+ *) ac_cv_func_realloc_0_nonnull=m4_if([$3],[],["guessing no"],[$3]) ;;
esac
])
])