]> Savannah Git Hosting - gnulib.git/commitdiff
c32is*: Ensure GNULIB_defined_mbstate_t is defined on AIX.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Apr 2023 16:14:46 +0000 (18:14 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Apr 2023 02:04:12 +0000 (04:04 +0200)
* m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Define through AC_DEFUN_ONCE.
* m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32): Require it.
* modules/c32isalnum (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4.
(configure.ac): Require gl_MBSTATE_T_BROKEN.
* modules/c32isalpha: Likewise.
* modules/c32isblank: Likewise.
* modules/c32iscntrl: Likewise.
* modules/c32isdigit: Likewise.
* modules/c32isgraph: Likewise.
* modules/c32islower: Likewise.
* modules/c32isprint: Likewise.
* modules/c32ispunct: Likewise.
* modules/c32isspace: Likewise.
* modules/c32isupper: Likewise.
* modules/c32isxdigit: Likewise.

15 files changed:
ChangeLog
m4/mbrtoc32.m4
m4/mbrtowc.m4
modules/c32isalnum
modules/c32isalpha
modules/c32isblank
modules/c32iscntrl
modules/c32isdigit
modules/c32isgraph
modules/c32islower
modules/c32isprint
modules/c32ispunct
modules/c32isspace
modules/c32isupper
modules/c32isxdigit

index fa513fa2dc25c3b02f8f0bb12e3946cae2d541db..d4d665bb4fa563641425ecdbbf897e43979702e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2023-04-09  Bruno Haible  <bruno@clisp.org>
+
+       c32is*: Ensure GNULIB_defined_mbstate_t is defined on AIX.
+       * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Define through AC_DEFUN_ONCE.
+       * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32): Require it.
+       * modules/c32isalnum (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4.
+       (configure.ac): Require gl_MBSTATE_T_BROKEN.
+       * modules/c32isalpha: Likewise.
+       * modules/c32isblank: Likewise.
+       * modules/c32iscntrl: Likewise.
+       * modules/c32isdigit: Likewise.
+       * modules/c32isgraph: Likewise.
+       * modules/c32islower: Likewise.
+       * modules/c32isprint: Likewise.
+       * modules/c32ispunct: Likewise.
+       * modules/c32isspace: Likewise.
+       * modules/c32isupper: Likewise.
+       * modules/c32isxdigit: Likewise.
+
 2023-04-09  Bruno Haible  <bruno@clisp.org>
 
        mbrtoc32: Add comments.
index a193c97c969c152f3ed3c8c0ec223b6f8bfa78cd..62ec2531e9331e4f4d10f49b9f951c6b94fa9f98 100644 (file)
@@ -1,4 +1,4 @@
-# mbrtoc32.m4 serial 9.1
+# mbrtoc32.m4 serial 9.2
 dnl Copyright (C) 2014-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,7 +12,7 @@ AC_DEFUN([gl_FUNC_MBRTOC32],
   dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
   dnl determined.  It describes how our overridden mbrtowc is implemented.
   dnl We then implement mbrtoc32 accordingly.
-  gl_MBSTATE_T_BROKEN
+  AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 
   AC_REQUIRE([gl_TYPE_CHAR32_T])
   AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
index ec8716b59966ba050729d05099f87aa5452edc71..34d5a179c35f81f472c23c70d0118a6918b9fe1e 100644 (file)
@@ -1,5 +1,5 @@
-# mbrtowc.m4 serial 38  -*- coding: utf-8 -*-
-dnl Copyright (C) 2001-2002, 2004-2005, 2008-2022 Free Software Foundation,
+# mbrtowc.m4 serial 38.1  -*- coding: utf-8 -*-
+dnl Copyright (C) 2001-2002, 2004-2005, 2008-2023 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -114,7 +114,7 @@ dnl Result is REPLACE_MBSTATE_T.
 dnl When this is set to 1, we replace both mbsinit() and mbrtowc(), in order to
 dnl avoid inconsistencies.
 
-AC_DEFUN([gl_MBSTATE_T_BROKEN],
+AC_DEFUN_ONCE([gl_MBSTATE_T_BROKEN],
 [
   AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
   AC_REQUIRE([AC_CANONICAL_HOST])
index 16ff86663e649baedc12110b3af8be3a1c1e0b05..834fe87fbe7c7e18048412d2c5cbada5a37ef4eb 100644 (file)
@@ -5,7 +5,9 @@ Files:
 lib/c32isalnum.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -20,6 +22,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32isalnum])
 
index f82bd2a840a4f9d00c5cdcd2795e4439a9c8fab1..f3869466a3267e7dd92f3b223d253a42eaca2876 100644 (file)
@@ -5,7 +5,9 @@ Files:
 lib/c32isalpha.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -20,6 +22,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32isalpha])
 
index 5f5d9c04d35f2bf3ed339b113fe30d3a7c61d09e..2a0c28dc8f5dba4ce3a81c3be435629821389142 100644 (file)
@@ -5,7 +5,9 @@ Files:
 lib/c32isblank.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -21,6 +23,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32isblank])
 
index e3581dc33f0ea8ad43a2c5100b765c31eff3a8e2..6d267643fdaa3e826645d8ae3a65439090e6216d 100644 (file)
@@ -5,7 +5,9 @@ Files:
 lib/c32iscntrl.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -20,6 +22,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32iscntrl])
 
index 49b79364652ef0547287c1d5c7ec2e4cdd0265e8..33dadb93dc9d2ac2f0068595a33e53eeea058283 100644 (file)
@@ -5,7 +5,9 @@ Files:
 lib/c32isdigit.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -21,6 +23,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32isdigit])
 
index a9b87325d0894c98f0d924d6cb5a05fb28646a71..8e43388a76b1a932b1553195ccca62adec8540e1 100644 (file)
@@ -5,7 +5,9 @@ Files:
 lib/c32isgraph.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -20,6 +22,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32isgraph])
 
index 5ee73d0898319d56f21e48755241bd40877e2ddf..87aa7d2d4c834449693321224d5c88fe224dda26 100644 (file)
@@ -5,7 +5,9 @@ Files:
 lib/c32islower.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -20,6 +22,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32islower])
 
index b6d241be901a71f19ea920176719a7217a08333b..f5700863193455d42afe9d0e0acd318dde504db7 100644 (file)
@@ -5,7 +5,9 @@ Files:
 lib/c32isprint.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -20,6 +22,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32isprint])
 
index f77217f799a1f19111682c7b17ac321495e6f0b2..c8a372d37e44aeaa9333478ab4116b13828f5eb6 100644 (file)
@@ -6,7 +6,9 @@ Files:
 lib/c32ispunct.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -21,6 +23,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32ispunct])
 
index 1b7d765ed801721bb3499c33c3ade0673372cf83..6818f2f21c8ee81c9cb6625c0eec54b3602fd8c8 100644 (file)
@@ -5,7 +5,9 @@ Files:
 lib/c32isspace.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -20,6 +22,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32isspace])
 
index 0dfafb55ebee3a08ce9ed7c5f49ebe443a76f574..32cf0b032624ce157efd4bd38570935c26f54d05 100644 (file)
@@ -5,7 +5,9 @@ Files:
 lib/c32isupper.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -20,6 +22,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32isupper])
 
index 99b61b222314e3cdba2e5ee1c2d2297679662e1f..efca10c6b2edaaf5d070c6510e5a450370c9d217 100644 (file)
@@ -6,7 +6,9 @@ Files:
 lib/c32isxdigit.c
 lib/c32is-impl.h
 m4/mbrtoc32.m4
+m4/mbrtowc.m4
 m4/locale-fr.m4
+m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
 
@@ -22,6 +24,9 @@ verify
 
 configure.ac:
 AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined.  It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
 AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
 gl_UCHAR_MODULE_INDICATOR([c32isxdigit])