summaryrefslogtreecommitdiff
path: root/m4/aligned_alloc.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-03-21 14:56:02 +0100
committerBruno Haible <bruno@clisp.org>2021-03-21 14:56:02 +0100
commit79c4db534e78dccaf8b3426dc848c71a3a60ca33 (patch)
treea56201bc96f1f704f08579a23e4bbd206d9d6503 /m4/aligned_alloc.m4
parent49855b3b49b035f86a6f31d7cf46934baeba5afd (diff)
downloadgnulib-79c4db534e78dccaf8b3426dc848c71a3a60ca33.tar.gz
doc: Update for macOS 11.1.
* doc/posix-headers/*.texi: Update. * doc/glibc-headers/*.texi: Update. * doc/posix-functions/*.texi: Likewise. * doc/pastposix-functions/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise. * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Update cross-compilation guess.
Diffstat (limited to 'm4/aligned_alloc.m4')
-rw-r--r--m4/aligned_alloc.m416
1 files changed, 9 insertions, 7 deletions
diff --git a/m4/aligned_alloc.m4 b/m4/aligned_alloc.m4
index d547c8eb2d..6a457a07e5 100644
--- a/m4/aligned_alloc.m4
+++ b/m4/aligned_alloc.m4
@@ -1,4 +1,4 @@
-# aligned_alloc.m4 serial 2
+# aligned_alloc.m4 serial 3
dnl Copyright (C) 2020-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,
@@ -14,8 +14,8 @@ AC_DEFUN([gl_FUNC_ALIGNED_ALLOC],
AC_CHECK_FUNCS_ONCE([aligned_alloc])
if test $ac_cv_func_aligned_alloc = yes; then
- dnl On AIX 7.2, aligned_alloc returns NULL when the alignment argument is
- dnl smaller than sizeof (void *).
+ dnl On macOS 11.1 and AIX 7.2, aligned_alloc returns NULL when the alignment
+ dnl argument is smaller than sizeof (void *).
AC_CACHE_CHECK([whether aligned_alloc works for small alignments],
[gl_cv_func_aligned_alloc_works],
[AC_RUN_IFELSE(
@@ -28,10 +28,12 @@ AC_DEFUN([gl_FUNC_ALIGNED_ALLOC],
[gl_cv_func_aligned_alloc_works=yes],
[gl_cv_func_aligned_alloc_works=no],
[case "$host_os" in
- # Guess no on AIX.
- aix*) gl_cv_func_aligned_alloc_works="guessing no" ;;
- # If we don't know, obey --enable-cross-guesses.
- *) gl_cv_func_aligned_alloc_works="$gl_cross_guess_normal" ;;
+ # Guess no on AIX.
+ aix*) gl_cv_func_aligned_alloc_works="guessing no" ;;
+ # Guess no on macOS.
+ darwin*) gl_cv_func_aligned_alloc_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_aligned_alloc_works="$gl_cross_guess_normal" ;;
esac
])
])