fenv-rounding et al.: Require AC_CANONICAL_HOST before accessing $host.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Nov 2023 12:54:56 +0000 (13:54 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Nov 2023 13:01:13 +0000 (14:01 +0100)
* m4/fenv-rounding.m4 (gl_FENV_ROUNDING): Require AC_CANONICAL_HOST.
* m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Likewise.
* m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
* m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
* m4/iswpunct.m4 (gl_FUNC_ISWPUNCT): Likewise.
* m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
* m4/strerrorname_np.m4 (gl_FUNC_STRERRORNAME_NP): Likewise.
* m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Likewise.
* m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
* m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF): Likewise.
* m4/wcscmp.m4 (gl_FUNC_WCSCMP): Likewise.
* m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Likewise.

13 files changed:
ChangeLog
m4/c32rtomb.m4
m4/fenv-rounding.m4
m4/getrandom.m4
m4/iswdigit.m4
m4/iswpunct.m4
m4/iswxdigit.m4
m4/strerrorname_np.m4
m4/strfmon_l.m4
m4/unlink-busy.m4
m4/vasnprintf.m4
m4/wcscmp.m4
m4/wcsncmp.m4

index c809e8f0107f74955cb1438dbd4f96cb9a0c7fc7..f69203311f7c046dcc452d811d48ec719a6702cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2023-11-04  Bruno Haible  <bruno@clisp.org>
+
+       fenv-rounding et al.: Require AC_CANONICAL_HOST before accessing $host.
+       * m4/fenv-rounding.m4 (gl_FENV_ROUNDING): Require AC_CANONICAL_HOST.
+       * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Likewise.
+       * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
+       * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
+       * m4/iswpunct.m4 (gl_FUNC_ISWPUNCT): Likewise.
+       * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
+       * m4/strerrorname_np.m4 (gl_FUNC_STRERRORNAME_NP): Likewise.
+       * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Likewise.
+       * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF): Likewise.
+       * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Likewise.
+       * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Likewise.
+
 2023-11-04  Bruno Haible  <bruno@clisp.org>
 
        fenv: Document an ABI break on MSVC.
index 5073865d4836cc3e3c94be0cd85028dc422f863b..5f1db2520858b70d4e978e05b56486d8734ab197 100644 (file)
@@ -1,4 +1,4 @@
-# c32rtomb.m4 serial 6
+# c32rtomb.m4 serial 7
 dnl Copyright (C) 2020-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,6 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_C32RTOMB],
 [
   AC_REQUIRE([gl_UCHAR_H_DEFAULTS])
+  AC_REQUIRE([AC_CANONICAL_HOST])
 
   AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 
index f52937c307dbf0f8a7159e1fe636f8bd987dc38b..fc4e9a819df63e63efe24c120f83ead70afb178c 100644 (file)
@@ -1,4 +1,4 @@
-# fenv-rounding.m4 serial 1
+# fenv-rounding.m4 serial 2
 dnl Copyright (C) 2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,6 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FENV_ROUNDING],
 [
   AC_REQUIRE([gl_FENV_H_DEFAULTS])
+  AC_REQUIRE([AC_CANONICAL_HOST])
 
   dnl On FreeBSD 11/i386, fesetround needs -lm while fegetround doesn't.
   gl_MATHFUNC([fesetround], [int], [(int)], [#include <fenv.h>])
index fd73191b7b550ce83213bd7d454274b9ab393ea3..0f7d60246aa687afb357f8bcbfb4c00007039f7c 100644 (file)
@@ -1,4 +1,4 @@
-# getrandom.m4 serial 12
+# getrandom.m4 serial 13
 dnl Copyright 2020-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,6 +9,8 @@ dnl Written by Paul Eggert.
 AC_DEFUN([gl_FUNC_GETRANDOM],
 [
   AC_REQUIRE([gl_SYS_RANDOM_H_DEFAULTS])
+  AC_REQUIRE([AC_CANONICAL_HOST])
+
   gl_CHECK_FUNCS_ANDROID([getrandom],
     [[/* Additional includes are needed before <sys/random.h> on uClibc
          and Mac OS X.  */
index b0572819ce57ce06d3913b5bc62ee29d0da91708..5bb7e6c7dc92719ec4ddef27aa9a7d7a380e0afd 100644 (file)
@@ -1,4 +1,4 @@
-# iswdigit.m4 serial 5
+# iswdigit.m4 serial 6
 dnl Copyright (C) 2020-2023 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,6 +12,7 @@ AC_DEFUN([gl_FUNC_ISWDIGIT],
   AC_REQUIRE([gt_LOCALE_JA])
   AC_REQUIRE([gt_LOCALE_FR_UTF8])
   AC_REQUIRE([gt_LOCALE_ZH_CN])
+  AC_REQUIRE([AC_CANONICAL_HOST])
 
   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
     dnl <wctype.h> redefines iswdigit already.
index 14691154cff8918564823c3bdbcd331dd9893c92..7d033f1d9882e7079197384f428e2400f7357cab 100644 (file)
@@ -1,4 +1,4 @@
-# iswpunct.m4 serial 1
+# iswpunct.m4 serial 2
 dnl Copyright (C) 2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,6 +8,7 @@ AC_DEFUN([gl_FUNC_ISWPUNCT],
 [
   AC_REQUIRE([gl_WCTYPE_H_DEFAULTS])
   AC_REQUIRE([gl_WCTYPE_H])
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
 
   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
     dnl <wctype.h> redefines iswpunct already.
index 7321807bc67635adf64a682f9a690027d28ee4f2..5de1003269f2e3a0757e0f6d6b2914cb19fb9b6d 100644 (file)
@@ -1,4 +1,4 @@
-# iswxdigit.m4 serial 5
+# iswxdigit.m4 serial 6
 dnl Copyright (C) 2020-2023 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,6 +11,7 @@ AC_DEFUN([gl_FUNC_ISWXDIGIT],
   AC_REQUIRE([gt_LOCALE_JA])
   AC_REQUIRE([gt_LOCALE_FR_UTF8])
   AC_REQUIRE([gt_LOCALE_ZH_CN])
+  AC_REQUIRE([AC_CANONICAL_HOST])
 
   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
     dnl <wctype.h> redefines iswxdigit already.
index cb160e102d1ced31b307adc97e0a475122692841..2894f7244974e3e0421c36ffbf2ca03481e5c4ba 100644 (file)
@@ -1,4 +1,4 @@
-# strerrorname_np.m4 serial 3
+# strerrorname_np.m4 serial 4
 dnl Copyright (C) 2020-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,10 +6,13 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_STRERRORNAME_NP],
 [
+  AC_REQUIRE([gl_STRING_H_DEFAULTS])
+
   dnl Persuade glibc <string.h> to declare strerrorname_np().
   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
-  AC_REQUIRE([gl_STRING_H_DEFAULTS])
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
+
   AC_CHECK_FUNCS([strerrorname_np])
   if test $ac_cv_func_strerrorname_np = yes; then
     dnl In glibc 2.32, strerrorname_np returns English error descriptions, not
index c635a5a515e0c9e0374484f327382433209f6355..cce0e8fb22ffb09a16bda713538c2b19143a5d3a 100644 (file)
@@ -1,4 +1,4 @@
-# strfmon_l.m4 serial 3
+# strfmon_l.m4 serial 4
 dnl Copyright (C) 2017-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,6 +8,7 @@ AC_DEFUN([gl_FUNC_STRFMON_L],
 [
   AC_REQUIRE([gl_MONETARY_H_DEFAULTS])
   AC_REQUIRE([gt_LOCALE_FR_UTF8])
+  AC_REQUIRE([AC_CANONICAL_HOST])
 
   dnl Persuade glibc <monetary.h> to declare strfmon_l().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
index b225c2a285196a4588c66930344429630a09c49a..6819c7bee039cdd54b303dc8f5da3b484eda633b 100644 (file)
@@ -1,4 +1,4 @@
-#serial 16
+#serial 17
 
 dnl From J. David Anglin.
 
@@ -10,7 +10,8 @@ dnl HPUX and other systems can't unlink shared text that is being executed.
 # with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_UNLINK_BUSY_TEXT],
-[dnl
+[
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether a running program can be unlinked],
     [gl_cv_func_unlink_busy_text],
     [
index 77da78218871e3f2348a72393150e015daf9ae39..fb7cd70d8f1e15e4379d893fa326eececfc9627e 100644 (file)
@@ -1,4 +1,4 @@
-# vasnprintf.m4 serial 51
+# vasnprintf.m4 serial 52
 dnl Copyright (C) 2002-2004, 2006-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -94,6 +94,7 @@ AC_DEFUN_ONCE([gl_PREREQ_VASNPRINTF],
 # Prerequisites of lib/vasnwprintf.c.
 AC_DEFUN_ONCE([gl_PREREQ_VASNWPRINTF],
 [
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CHECK_FUNCS_ONCE([swprintf wcsnlen mbrtowc])
   AC_CHECK_DECLS([_snwprintf], , , [[#include <stdio.h>]])
   AC_CHECK_DECLS([wcsnlen], , , [[#include <wchar.h>]])
index 2060da1e764a9ec1bebc9d2f97995f0ded68b1af..14f2b45454846d35df6aafa74a67d9bbe5148726 100644 (file)
@@ -1,4 +1,4 @@
-# wcscmp.m4 serial 4
+# wcscmp.m4 serial 5
 dnl Copyright (C) 2011-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,6 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_WCSCMP],
 [
   AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CHECK_FUNCS_ONCE([wcscmp])
   if test $ac_cv_func_wcscmp = no; then
     HAVE_WCSCMP=0
index 4ef469f1ba46223ce15c88609da29364404b21fc..a2e19488f6a6cf9054f01a0fdf8cc3e0eb3fa428 100644 (file)
@@ -1,4 +1,4 @@
-# wcsncmp.m4 serial 3
+# wcsncmp.m4 serial 4
 dnl Copyright (C) 2011-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,6 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_WCSNCMP],
 [
   AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CHECK_FUNCS_ONCE([wcsncmp])
   if test $ac_cv_func_wcsncmp = no; then
     HAVE_WCSNCMP=0