]> 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>
Sun, 9 Apr 2023 21:46:49 +0000 (23:46 +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 9a62ffa171b6c98ddf159c84189cf7ad09fe3dcf..ea2857a38cc8f2d56a33a8d7ee8bf9ffc1c49e5b 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 ed0234fbc0174db31c6dbf3547e1f6389dbcb195..b53636236ccf54055e25f09051a0d54149d2c2ee 100644 (file)
@@ -1,4 +1,4 @@
-# mbrtoc32.m4 serial 13
+# mbrtoc32.m4 serial 14
 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 0c7a8bae69f768888fa47d1744a0355e3d4d8525..893faff637885918309422d50f9f60507b40561a 100644 (file)
@@ -1,4 +1,4 @@
-# mbrtowc.m4 serial 39  -*- coding: utf-8 -*-
+# mbrtowc.m4 serial 40  -*- 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
@@ -117,7 +117,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 41c8727f223e91d2d975c4f191d6ffe772b35992..55719b534c9fc9354edbf0fa93281975a0be7c6f 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 @@ assert-h
 
 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 486b7cd0c5f247e5ab08065bd71fad158e91aa39..cd33949d5479ef34689d1e556e530e52d4d7345b 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 @@ assert-h
 
 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 f38de1601614e74b82e3a12900d6054fdf439dc7..b99f347074373bbfcc520ceed827292106d46a53 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 @@ assert-h
 
 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 b7a15bcd5e43ba0773ce535d78e9120d90fa320d..3b789e0f943e3b323b7be907f6bc1862102b593b 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 @@ assert-h
 
 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 67c253ad253328b3795d0e95613755b8d8656261..823b1c8dacecd7d35a516696974620e2020df65c 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 @@ assert-h
 
 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 39b7bfe8174356f47652a3e21fb8c338a19acfba..e39affd97f9bea14b8b211b597795aae854a6259 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 @@ assert-h
 
 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 c69cc498762bbb89d0230cc4b186fee268d836b5..48c35548b1c388962e8acabc5d8ce0e87207a839 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 @@ assert-h
 
 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 6c147902c5e032497b024dd11eacdf70d47537ef..290ee094ae051483af808dd6ccb30229bd9908bc 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 @@ assert-h
 
 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 932978c5a2c1eff512d618dba883015c3511f969..d828130fa27cc2a82daef98741ae63b2feaf3436 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 @@ assert-h
 
 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 c1a3cd43aea96bc7a1afe9883853f92e5d46f9ac..86132cecf2c31f4fb04a72961a6b95f19f7f1944 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 @@ assert-h
 
 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 7a51f1cf85271c1bc5b40654725990d7fc901f50..0efe245522f6eb9006265676051cfa3075f41659 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 @@ assert-h
 
 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 e958285ee1f78dc2d56c02e21c580677d28d4b01..11616c2e7132fedd3e759ddb12530c6b5e7e869f 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 @@ assert-h
 
 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])