]> Savannah Git Hosting - gnulib.git/commitdiff
eealloc: Revert last change.
authorBruno Haible <bruno@clisp.org>
Fri, 1 Nov 2024 12:44:12 +0000 (13:44 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 1 Nov 2024 12:44:12 +0000 (13:44 +0100)
* m4/eealloc.m4 (gl_EEMALLOC): Invoke _AC_FUNC_MALLOC_IF, not
gl_CHECK_MALLOC_POSIX.

ChangeLog
m4/eealloc.m4

index fd3f4b3fcc34bd2282893a32b5ce2e7f5e42074a..c72f94eea0ab31e2d81a71a5ba116fbde6051638 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-11-01  Bruno Haible  <bruno@clisp.org>
+
+       eealloc: Revert last change.
+       * m4/eealloc.m4 (gl_EEMALLOC): Invoke _AC_FUNC_MALLOC_IF, not
+       gl_CHECK_MALLOC_POSIX.
+
 2024-11-01  Bruno Haible  <bruno@clisp.org>
 
        realloc-posix: Fix test failure on AIX (regression 2024-10-27).
index ee56f81faa00d9d06ce4a304fb766e82d617e6b6..0ad90c687b94666c7b36453b8e193ed2a7d51cf7 100644 (file)
@@ -1,5 +1,5 @@
 # eealloc.m4
-# serial 6
+# serial 5
 dnl Copyright (C) 2003, 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,
@@ -14,11 +14,10 @@ AC_DEFUN([gl_EEALLOC],
 
 AC_DEFUN([gl_EEMALLOC],
 [
-  gl_CHECK_MALLOC_POSIX
-  case "$gl_cv_func_malloc_posix" in
-    *yes) gl_cv_func_malloc_0_nonnull=1 ;;
-    *)    gl_cv_func_malloc_0_nonnull=0 ;;
-  esac
+  _AC_FUNC_MALLOC_IF(
+    [gl_cv_func_malloc_0_nonnull=1],
+    [gl_cv_func_malloc_0_nonnull=0],
+    ["$gl_cross_guess_normal"])
   AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull],
     [If malloc(0) is != NULL, define this to 1.  Otherwise define this
      to 0.])