]> Savannah Git Hosting - gnulib.git/commitdiff
Allow use of --avoid=extensions-aix.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Aug 2024 08:57:47 +0000 (10:57 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Aug 2024 08:57:47 +0000 (10:57 +0200)
* m4/errno_h.m4 (gl_HEADER_ERRNO_H): Don't require gl_USE_AIX_EXTENSIONS
explicitly.
* m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Likewise.
* m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Likewise.
* m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Likewise.
* m4/scandir.m4 (gl_FUNC_SCANDIR): Likewise.

ChangeLog
m4/calloc.m4
m4/errno_h.m4
m4/malloc.m4
m4/realloc.m4
m4/scandir.m4

index 55060e330ac44f48d2162a790935abef83ac2619..2f1340a06a368260120e394f996962399b50cf8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-08-02  Bruno Haible  <bruno@clisp.org>
+
+       Allow use of --avoid=extensions-aix.
+       * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Don't require gl_USE_AIX_EXTENSIONS
+       explicitly.
+       * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Likewise.
+       * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Likewise.
+       * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Likewise.
+       * m4/scandir.m4 (gl_FUNC_SCANDIR): Likewise.
+
 2024-08-01  Bruno Haible  <bruno@clisp.org>
 
        math: Fix INFINITY and NAN on FreeBSD and AIX.
index 6d9a808dbf9933775cedd64cef263a27fe7f8904..c69ce414a0569402384ae0f138eec082ce64184d 100644 (file)
@@ -1,5 +1,5 @@
 # calloc.m4
-# serial 33
+# serial 34
 dnl Copyright (C) 2004-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,
@@ -59,8 +59,9 @@ AC_DEFUN([gl_FUNC_CALLOC_GNU],
   AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_CALLOC_POSIX])
 
-  dnl This helps if !(__VEC__ || __AIXVEC), and shouldn't hurt otherwise.
-  AC_REQUIRE([gl_USE_AIX_EXTENSIONS])
+  dnl Through the dependency on module extensions-aix, _LINUX_SOURCE_COMPAT
+  dnl gets defined already before this macro gets invoked.  This helps
+  dnl if !(__VEC__ || __AIXVEC), and doesn't hurt otherwise.
 
   REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX"
   if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then
index 9738a49f19a7a2f77d3edb15cb9870a4083781f6..18bfd7b1c127fd8ebc6ebe530585d3a533210958 100644 (file)
@@ -1,5 +1,5 @@
 # errno_h.m4
-# serial 16
+# serial 17
 dnl Copyright (C) 2004, 2006, 2008-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,
@@ -11,8 +11,9 @@ AC_DEFUN_ONCE([gl_HEADER_ERRNO_H],
 [
   AC_REQUIRE([AC_PROG_CC])
 
-  dnl Persuade AIX 7.3 errno.h to make EEXIST != ENOTEMPTY.
-  AC_REQUIRE([gl_USE_AIX_EXTENSIONS])
+  dnl Through the dependency on module extensions-aix, _LINUX_SOURCE_COMPAT
+  dnl gets defined already before this macro gets invoked.  This persuades
+  dnl AIX 7.3 errno.h to assign ENOTEMPTY a value different than EEXIST.
 
   AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [
     AC_EGREP_CPP([booboo],[
index 4a71b060b9bf40b9e84da2b8d80c5e2521681ca9..ee6df5c3fb686096963d481ad5f6936fa84d9d61 100644 (file)
@@ -1,5 +1,5 @@
 # malloc.m4
-# serial 33
+# serial 34
 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,
@@ -46,8 +46,9 @@ AC_DEFUN([gl_FUNC_MALLOC_GNU],
   AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
 
-  dnl This helps if !(__VEC__ || __AIXVEC), and shouldn't hurt otherwise.
-  AC_REQUIRE([gl_USE_AIX_EXTENSIONS])
+  dnl Through the dependency on module extensions-aix, _LINUX_SOURCE_COMPAT
+  dnl gets defined already before this macro gets invoked.  This helps
+  dnl if !(__VEC__ || __AIXVEC), and doesn't hurt otherwise.
 
   REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX"
   if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then
index b3ec43a8a72a6eda2d49f99c2d963abc133f696d..cc91102836f3f34674bc427da4b669160dc828fd 100644 (file)
@@ -1,5 +1,5 @@
 # realloc.m4
-# serial 31
+# serial 32
 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,
@@ -46,8 +46,9 @@ AC_DEFUN([gl_FUNC_REALLOC_GNU],
   AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_REALLOC_POSIX])
 
-  dnl This helps if !(__VEC__ || __AIXVEC), and shouldn't hurt otherwise.
-  AC_REQUIRE([gl_USE_AIX_EXTENSIONS])
+  dnl Through the dependency on module extensions-aix, _LINUX_SOURCE_COMPAT
+  dnl gets defined already before this macro gets invoked.  This helps
+  dnl if !(__VEC__ || __AIXVEC), and doesn't hurt otherwise.
 
   if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then
     _AC_FUNC_REALLOC_IF([], [REPLACE_REALLOC_FOR_REALLOC_GNU=1])
index c8673fc88086dec356326407004f63fed7ac7192..27b8af860d6b602c7e211c4c3bba47c16ba489c3 100644 (file)
@@ -1,5 +1,5 @@
 # scandir.m4
-# serial 4
+# serial 5
 dnl Copyright (C) 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,
@@ -12,8 +12,6 @@ AC_DEFUN([gl_FUNC_SCANDIR],
   dnl Persuade glibc and Solaris <dirent.h> to declare scandir().
   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
-  AC_REQUIRE([gl_USE_AIX_EXTENSIONS])
-
   AC_CHECK_FUNCS([scandir])
   if test $ac_cv_func_scandir = no; then
     HAVE_SCANDIR=0