2024-11-05 Paul Eggert <eggert@cs.ucla.edu>
+ malloca: port better to AIX extensions
+ Also, switch from eealloc.m4 to malloc.m4 to determine
+ whether malloc (0) returns nonnull.
+ * lib/malloca.c (mmalloca): Use HAVE_MALLOC_0_NONNULL,
+ not MALLOC_0_IS_NONNULL.
+ * m4/malloca.m4 (gl_MALLOCA): Require gl_FUNC_MALLOC_GNU,
+ not gl_EEMALLOC.
+ * modules/malloca (Files): Remove m4/eemalloc.m4.
+ (Depends-on): Add extensions-aix.
+ * modules/relocatable-prog-wrapper:
+ AC_REQUIRE gl_FUNC_MALLOC_POSIX to suppress Autoconf 2.71
+ “warning: AC_REQUIRE: `gl_FUNC_MALLOC_POSIX' was expanded before
+ it was required”.
+
malloc: refactor to help replace eealloc
* m4/malloc.m4 (gl_FUNC_MALLOC_0_NONNULL):
New macro, split out from gl_FUNC_MALLOC_GNU.
# malloca.m4
-# serial 2
+# serial 3
dnl Copyright (C) 2003-2004, 2006-2007, 2009-2024 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl Use the autoconf tests for alloca(), but not the AC_SUBSTed variables
dnl @ALLOCA@ and @LTALLOCA@.
dnl gl_FUNC_ALLOCA dnl Already brought in by the module dependencies.
- AC_REQUIRE([gl_EEMALLOC])
+ AC_REQUIRE([gl_FUNC_MALLOC_GNU])
])
AC_REQUIRE([AC_C_RESTRICT])
gl_FUNC_READLINK_SEPARATE
gl_CANONICALIZE_LGPL_SEPARATE
-gl_FUNC_MALLOC_POSIX
+AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
gl_FUNC_REALLOC_POSIX
gl_FUNC_FREE
gl_FUNC_MEMPCPY