Paul Eggert wrote: > + /* Use pposix_memalign to test; 'volatile' prevents the > compiler > + from optimizing the malloc call away. */
There's no malloc call here. > changequote(,)dnl > + # Guess no on AIX. > + aix*) gl_cv_func_aligned_alloc_works="guessing no" ;; The variable name is wrong. 2024-10-31 Bruno Haible <br...@clisp.org> posix_memalign: Fix configure test (regression yesterday). * m4/posix_memalign.m4 (gl_FUNC_POSIX_MEMALIGN): Fix typo in comment. Fix variable name. diff --git a/m4/posix_memalign.m4 b/m4/posix_memalign.m4 index 37c40a528d..e2ffb9da24 100644 --- a/m4/posix_memalign.m4 +++ b/m4/posix_memalign.m4 @@ -1,5 +1,5 @@ # posix_memalign.m4 -# serial 5 +# serial 6 dnl Copyright (C) 2020-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, @@ -26,7 +26,7 @@ AC_DEFUN([gl_FUNC_POSIX_MEMALIGN] [AC_LANG_PROGRAM( [[#include <stdlib.h> /* Use pposix_memalign to test; 'volatile' prevents the compiler - from optimizing the malloc call away. */ + from optimizing the posix_memalign call away. */ int (*volatile pposix_memalign) (void **, size_t, size_t) = posix_memalign;]], [[void *p; @@ -43,8 +43,8 @@ AC_DEFUN([gl_FUNC_POSIX_MEMALIGN] [gl_cv_func_posix_memalign_works=no], [case "$host_os" in changequote(,)dnl - # Guess no on AIX. - aix*) gl_cv_func_aligned_alloc_works="guessing no" ;; + # Guess no on AIX. + aix*) gl_cv_func_posix_memalign_works="guessing no" ;; # Guess no on OpenBSD through 6.1. openbsd[1-5].* | openbsd6.[01] | openbsd6.[01].*) gl_cv_func_posix_memalign_works="guessing no" ;;