]> Savannah Git Hosting - gnulib.git/commitdiff
Strengthen LC_CTYPE configure tests on OpenBSD, Android, Haiku.
authorBruno Haible <bruno@clisp.org>
Sat, 31 Aug 2024 23:57:29 +0000 (01:57 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 31 Aug 2024 23:57:29 +0000 (01:57 +0200)
* m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Require gt_LOCALE_EN_UTF8 instead of
gt_LOCALE_FR_UTF8. Use LOCALE_EN_UTF8 instead of LOCALE_FR_UTF8.
* m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2, gl_MBRTOWC_RETVAL,
gl_MBRTOWC_STORES_INCOMPLETE): Likewise.
* m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
* m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
* m4/mbrtoc16.m4 (gl_MBRTOC16_NULL_DESTINATION): Require
gt_LOCALE_EN_UTF8 instead of gt_LOCALE_FR_UTF8. Use LOCALE_EN_UTF8
instead of LOCALE_FR_UTF8. Update cross-compilation guess.
* m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
* modules/btowc (Files): Add m4/locale-en.m4.
* modules/c32isalnum (Files): Likewise.
* modules/c32isalpha (Files): Likewise.
* modules/c32isblank (Files): Likewise.
* modules/c32iscntrl (Files): Likewise.
* modules/c32isdigit (Files): Likewise.
* modules/c32isgraph (Files): Likewise.
* modules/c32islower (Files): Likewise.
* modules/c32isprint (Files): Likewise.
* modules/c32ispunct (Files): Likewise.
* modules/c32isspace (Files): Likewise.
* modules/c32isupper (Files): Likewise.
* modules/c32isxdigit (Files): Likewise.
* modules/c32rtomb (Files): Likewise.
* modules/c32tob (Files): Likewise.
* modules/c32tolower (Files): Likewise.
* modules/c32toupper (Files): Likewise.
* modules/c32width (Files): Likewise.
* modules/iswdigit (Files): Likewise.
* modules/mbrtoc16 (Files): Likewise.
* modules/mbrtoc32 (Files): Likewise.
* modules/mbsnrtowcs (Files): Likewise.
* modules/mbsrtowcs (Files): Likewise.
* modules/wcrtomb (Files): Likewise.
* modules/wcsnrtombs (Files): Likewise.
* modules/wcsrtombs (Files): Likewise.
* modules/wctob (Files): Likewise.
* modules/mbrlen (Files): Add m4/locale-en.m4. Remove m4/locale-fr.m4.
* modules/mbrtowc (Files): Likewise.
* modules/stdlib (Files): Likewise.

36 files changed:
ChangeLog
m4/mbrlen.m4
m4/mbrtoc16.m4
m4/mbrtowc.m4
m4/mbsrtowcs.m4
m4/stdlib_h.m4
m4/wcrtomb.m4
modules/btowc
modules/c32isalnum
modules/c32isalpha
modules/c32isblank
modules/c32iscntrl
modules/c32isdigit
modules/c32isgraph
modules/c32islower
modules/c32isprint
modules/c32ispunct
modules/c32isspace
modules/c32isupper
modules/c32isxdigit
modules/c32rtomb
modules/c32tob
modules/c32tolower
modules/c32toupper
modules/c32width
modules/mbrlen
modules/mbrtoc16
modules/mbrtoc32
modules/mbrtowc
modules/mbsnrtowcs
modules/mbsrtowcs
modules/stdlib
modules/wcrtomb
modules/wcsnrtombs
modules/wcsrtombs
modules/wctob

index a961e78f203aa7ebcd6ba35f538c4eb431973bbe..de6cfce9a598bd26fcc95a846007c4d0600f957a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,48 @@
+2024-08-31  Bruno Haible  <bruno@clisp.org>
+
+       Strengthen LC_CTYPE configure tests on OpenBSD, Android, Haiku.
+       * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Require gt_LOCALE_EN_UTF8 instead of
+       gt_LOCALE_FR_UTF8. Use LOCALE_EN_UTF8 instead of LOCALE_FR_UTF8.
+       * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
+       gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2, gl_MBRTOWC_RETVAL,
+       gl_MBRTOWC_STORES_INCOMPLETE): Likewise.
+       * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
+       * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
+       * m4/mbrtoc16.m4 (gl_MBRTOC16_NULL_DESTINATION): Require
+       gt_LOCALE_EN_UTF8 instead of gt_LOCALE_FR_UTF8. Use LOCALE_EN_UTF8
+       instead of LOCALE_FR_UTF8. Update cross-compilation guess.
+       * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
+       * modules/btowc (Files): Add m4/locale-en.m4.
+       * modules/c32isalnum (Files): Likewise.
+       * modules/c32isalpha (Files): Likewise.
+       * modules/c32isblank (Files): Likewise.
+       * modules/c32iscntrl (Files): Likewise.
+       * modules/c32isdigit (Files): Likewise.
+       * modules/c32isgraph (Files): Likewise.
+       * modules/c32islower (Files): Likewise.
+       * modules/c32isprint (Files): Likewise.
+       * modules/c32ispunct (Files): Likewise.
+       * modules/c32isspace (Files): Likewise.
+       * modules/c32isupper (Files): Likewise.
+       * modules/c32isxdigit (Files): Likewise.
+       * modules/c32rtomb (Files): Likewise.
+       * modules/c32tob (Files): Likewise.
+       * modules/c32tolower (Files): Likewise.
+       * modules/c32toupper (Files): Likewise.
+       * modules/c32width (Files): Likewise.
+       * modules/iswdigit (Files): Likewise.
+       * modules/mbrtoc16 (Files): Likewise.
+       * modules/mbrtoc32 (Files): Likewise.
+       * modules/mbsnrtowcs (Files): Likewise.
+       * modules/mbsrtowcs (Files): Likewise.
+       * modules/wcrtomb (Files): Likewise.
+       * modules/wcsnrtombs (Files): Likewise.
+       * modules/wcsrtombs (Files): Likewise.
+       * modules/wctob (Files): Likewise.
+       * modules/mbrlen (Files): Add m4/locale-en.m4. Remove m4/locale-fr.m4.
+       * modules/mbrtowc (Files): Likewise.
+       * modules/stdlib (Files): Likewise.
+
 2024-08-31  Colin Watson  <cjwatson@debian.org>
 
        Update users.txt.
index f7fad22d675aeec799e8a4a295813ffd4b87476c..5602c0596bb4323eb8624c466c3848f271bcdfa1 100644 (file)
@@ -1,5 +1,5 @@
 # mbrlen.m4
-# serial 12
+# serial 13
 dnl Copyright (C) 2008, 2010-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,
@@ -91,7 +91,7 @@ dnl Result is gl_cv_func_mbrlen_retval.
 AC_DEFUN([gl_MBRLEN_RETVAL],
 [
   AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([gt_LOCALE_FR_UTF8])
+  AC_REQUIRE([gt_LOCALE_EN_UTF8])
   AC_REQUIRE([gt_LOCALE_JA])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether mbrlen has a correct return value],
@@ -107,7 +107,7 @@ changequote(,)dnl
         *)                gl_cv_func_mbrlen_retval="guessing yes" ;;
       esac
 changequote([,])dnl
-      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
+      if test $LOCALE_EN_UTF8 != none || test $LOCALE_JA != none; then
         AC_RUN_IFELSE(
           [AC_LANG_SOURCE([[
 #include <locale.h>
@@ -117,8 +117,8 @@ int main ()
 {
   int result = 0;
   /* This fails on Solaris.  */
-  if (strcmp ("$LOCALE_FR_UTF8", "none") != 0
-      && setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
+  if (strcmp ("$LOCALE_EN_UTF8", "none") != 0
+      && setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
     {
       char input[] = "B\303\274\303\237er"; /* "Büßer" */
       mbstate_t state;
index c1033cb61ff7da5a203826bba1bdc2f16a617373..a562c7dc7bffba2c9d894cf1dffc5f76a70c13bf 100644 (file)
@@ -1,5 +1,5 @@
 # mbrtoc16.m4
-# serial 2
+# serial 3
 dnl Copyright (C) 2014-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,
@@ -73,7 +73,7 @@ AC_DEFUN([gl_MBRTOC16_NULL_DESTINATION],
 [
   AC_REQUIRE([AC_PROG_CC])
   AC_REQUIRE([gl_TYPE_CHAR16_T])
-  AC_REQUIRE([gt_LOCALE_FR_UTF8])
+  AC_REQUIRE([gt_LOCALE_EN_UTF8])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether mbrtoc16 supports a NULL destination],
     [gl_cv_func_mbrtoc16_null_destination],
@@ -82,13 +82,15 @@ AC_DEFUN([gl_MBRTOC16_NULL_DESTINATION],
       dnl is present.
 changequote(,)dnl
       case "$host_os" in
-                       # Guess no on glibc systems.
-        *-gnu* | gnu*) gl_cv_func_mbrtoc16_null_destination="guessing no" ;;
-                       # Guess yes otherwise.
-        *)             gl_cv_func_mbrtoc16_null_destination="guessing yes" ;;
+          # Guess no on glibc systems, on OpenBSD, and on Android.
+        *-gnu* | gnu* | openbsd* | *-android*)
+          gl_cv_func_mbrtoc16_null_destination="guessing no" ;;
+          # Guess yes otherwise.
+        *)
+          gl_cv_func_mbrtoc16_null_destination="guessing yes" ;;
       esac
 changequote([,])dnl
-      if test $LOCALE_FR_UTF8 != none; then
+      if test $LOCALE_EN_UTF8 != none; then
         AC_RUN_IFELSE(
           [AC_LANG_SOURCE([[
              #include <locale.h>
@@ -100,7 +102,7 @@ changequote([,])dnl
              int
              main (void)
              {
-               if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") == NULL
+               if (setlocale (LC_ALL, "$LOCALE_EN_UTF8") == NULL
                  return 1;
                mbstate_t state;
                size_t ret;
index 4ea818404938fcc42e9004a332f33d7d1924f3ba..618ab8ffe192979fcb4d9e6e4982d3a0edb3f3c9 100644 (file)
@@ -1,5 +1,5 @@
 # mbrtowc.m4
-# serial 44
+# serial 45
 dnl Copyright (C) 2001-2002, 2004-2005, 2008-2024 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -160,7 +160,7 @@ AC_DEFUN([gl_MBRTOWC_INCOMPLETE_STATE],
 [
   AC_REQUIRE([AC_PROG_CC])
   AC_REQUIRE([gt_LOCALE_JA])
-  AC_REQUIRE([gt_LOCALE_FR_UTF8])
+  AC_REQUIRE([gt_LOCALE_EN_UTF8])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether mbrtowc handles incomplete characters],
     [gl_cv_func_mbrtowc_incomplete_state],
@@ -200,7 +200,7 @@ int main ()
           [gl_cv_func_mbrtowc_incomplete_state=no],
           [:])
       else
-        if test $LOCALE_FR_UTF8 != none; then
+        if test $LOCALE_EN_UTF8 != none; then
           AC_RUN_IFELSE(
             [AC_LANG_SOURCE([[
 #include <locale.h>
@@ -208,7 +208,7 @@ int main ()
 #include <wchar.h>
 int main ()
 {
-  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
+  if (setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
     {
       const char input[] = "B\303\274\303\237er"; /* "Büßer" */
       mbstate_t state;
@@ -288,7 +288,7 @@ dnl Result is gl_cv_func_mbrtowc_null_arg1.
 AC_DEFUN([gl_MBRTOWC_NULL_ARG1],
 [
   AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([gt_LOCALE_FR_UTF8])
+  AC_REQUIRE([gt_LOCALE_EN_UTF8])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether mbrtowc handles a NULL pwc argument],
     [gl_cv_func_mbrtowc_null_arg1],
@@ -303,7 +303,7 @@ changequote(,)dnl
         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
       esac
 changequote([,])dnl
-      if test $LOCALE_FR_UTF8 != none; then
+      if test $LOCALE_EN_UTF8 != none; then
         AC_RUN_IFELSE(
           [AC_LANG_SOURCE([[
 #include <locale.h>
@@ -314,7 +314,7 @@ int main ()
 {
   int result = 0;
 
-  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
+  if (setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
     {
       char input[] = "\303\237er";
       mbstate_t state;
@@ -351,7 +351,7 @@ dnl Result is gl_cv_func_mbrtowc_null_arg2.
 AC_DEFUN([gl_MBRTOWC_NULL_ARG2],
 [
   AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([gt_LOCALE_FR_UTF8])
+  AC_REQUIRE([gt_LOCALE_EN_UTF8])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether mbrtowc handles a NULL string argument],
     [gl_cv_func_mbrtowc_null_arg2],
@@ -366,7 +366,7 @@ changequote(,)dnl
         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
       esac
 changequote([,])dnl
-      if test $LOCALE_FR_UTF8 != none; then
+      if test $LOCALE_EN_UTF8 != none; then
         AC_RUN_IFELSE(
           [AC_LANG_SOURCE([[
 #include <locale.h>
@@ -374,7 +374,7 @@ changequote([,])dnl
 #include <wchar.h>
 int main ()
 {
-  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
+  if (setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
     {
       mbstate_t state;
       wchar_t wc;
@@ -404,7 +404,7 @@ dnl Result is gl_cv_func_mbrtowc_retval.
 AC_DEFUN([gl_MBRTOWC_RETVAL],
 [
   AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([gt_LOCALE_FR_UTF8])
+  AC_REQUIRE([gt_LOCALE_EN_UTF8])
   AC_REQUIRE([gt_LOCALE_JA])
   AC_REQUIRE([AC_CANONICAL_HOST])
   AC_CACHE_CHECK([whether mbrtowc has a correct return value],
@@ -422,7 +422,7 @@ changequote(,)dnl
           gl_cv_func_mbrtowc_retval="guessing yes" ;;
       esac
 changequote([,])dnl
-      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
+      if test $LOCALE_EN_UTF8 != none || test $LOCALE_JA != none \
          || { case "$host_os" in mingw* | windows*) true;; *) false;; esac; }; then
         AC_RUN_IFELSE(
           [AC_LANG_SOURCE([[
@@ -434,8 +434,8 @@ int main ()
   int result = 0;
   int found_some_locale = 0;
   /* This fails on Solaris.  */
-  if (strcmp ("$LOCALE_FR_UTF8", "none") != 0
-      && setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
+  if (strcmp ("$LOCALE_EN_UTF8", "none") != 0
+      && setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
     {
       char input[] = "B\303\274\303\237er"; /* "Büßer" */
       mbstate_t state;
@@ -649,8 +649,8 @@ int main ()
            [:])
          ;;
        *)
-         AC_REQUIRE([gt_LOCALE_FR_UTF8])
-         if test $LOCALE_FR_UTF8 != none; then
+         AC_REQUIRE([gt_LOCALE_EN_UTF8])
+         if test $LOCALE_EN_UTF8 != none; then
            AC_RUN_IFELSE(
              [AC_LANG_SOURCE([[
 #include <locale.h>
@@ -658,7 +658,7 @@ int main ()
 #include <wchar.h>
 int main ()
 {
-  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
+  if (setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
     {
       wchar_t wc = (wchar_t) 0xBADFACE;
       mbstate_t state;
index 2001e22b9f02b60de60f8787f95a31d858aa57b2..29ab3258698cb19acd62b3b358e25d66c7c6e4aa 100644 (file)
@@ -1,5 +1,5 @@
 # mbsrtowcs.m4
-# serial 17
+# serial 18
 dnl Copyright (C) 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,
@@ -51,7 +51,7 @@ AC_DEFUN([gl_MBSRTOWCS_WORKS],
 [
   AC_REQUIRE([AC_PROG_CC])
   AC_REQUIRE([gt_LOCALE_FR])
-  AC_REQUIRE([gt_LOCALE_FR_UTF8])
+  AC_REQUIRE([gt_LOCALE_EN_UTF8])
   AC_REQUIRE([gt_LOCALE_JA])
   AC_REQUIRE([gt_LOCALE_ZH_CN])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
@@ -70,7 +70,7 @@ changequote(,)dnl
           gl_cv_func_mbsrtowcs_works="guessing yes" ;;
       esac
 changequote([,])dnl
-      if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
+      if test $LOCALE_FR != none || test $LOCALE_EN_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
         AC_RUN_IFELSE(
           [AC_LANG_SOURCE([[
 #include <locale.h>
@@ -95,8 +95,8 @@ int main ()
     }
   /* Test whether the function works when started with a conversion state
      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
-  if (strcmp ("$LOCALE_FR_UTF8", "none") != 0
-      && setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
+  if (strcmp ("$LOCALE_EN_UTF8", "none") != 0
+      && setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
     {
       const char input[] = "B\303\274\303\237er";
       mbstate_t state;
index 332669f94672aebcd5c3d122a00134538a2a7963..b546a438b8426193dc3c493748d0540d2996d480 100644 (file)
@@ -1,5 +1,5 @@
 # stdlib_h.m4
-# serial 79
+# serial 80
 dnl Copyright (C) 2007-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,
@@ -37,7 +37,7 @@ AC_DEFUN_ONCE([gl_STDLIB_H],
   dnl On Solaris 10, in UTF-8 locales, its value is 3 but needs to be 4.
   dnl Fortunately, we can do this because on this platform MB_LEN_MAX is 5.
   AC_REQUIRE([AC_CANONICAL_HOST])
-  AC_REQUIRE([gt_LOCALE_FR_UTF8])
+  AC_REQUIRE([gt_LOCALE_EN_UTF8])
   AC_CACHE_CHECK([whether MB_CUR_MAX is correct],
     [gl_cv_macro_MB_CUR_MAX_good],
     [
@@ -45,13 +45,13 @@ AC_DEFUN_ONCE([gl_STDLIB_H],
       dnl is present.
 changequote(,)dnl
       case "$host_os" in
-                  # Guess no on Solaris.
-        solaris*) gl_cv_macro_MB_CUR_MAX_good="guessing no" ;;
-                  # Guess yes otherwise.
-        *)        gl_cv_macro_MB_CUR_MAX_good="guessing yes" ;;
+                           # Guess no on Solaris and Haiku.
+        solaris* | haiku*) gl_cv_macro_MB_CUR_MAX_good="guessing no" ;;
+                           # Guess yes otherwise.
+        *)                 gl_cv_macro_MB_CUR_MAX_good="guessing yes" ;;
       esac
 changequote([,])dnl
-      if test $LOCALE_FR_UTF8 != none; then
+      if test $LOCALE_EN_UTF8 != none; then
         AC_RUN_IFELSE(
           [AC_LANG_SOURCE([[
 #include <locale.h>
@@ -59,7 +59,7 @@ changequote([,])dnl
 int main ()
 {
   int result = 0;
-  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
+  if (setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
     {
       if (MB_CUR_MAX < 4)
         result |= 1;
index 35dff6f03796f473ddfa21434a1ec96f0666449b..5d8388c344173a9a0287bdd0c2760081abb0371d 100644 (file)
@@ -1,5 +1,5 @@
 # wcrtomb.m4
-# serial 19
+# serial 20
 dnl Copyright (C) 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,
@@ -36,7 +36,7 @@ AC_DEFUN([gl_FUNC_WCRTOMB],
       dnl sometimes returns 0 instead of 1.
       AC_REQUIRE([AC_PROG_CC])
       AC_REQUIRE([gt_LOCALE_FR])
-      AC_REQUIRE([gt_LOCALE_FR_UTF8])
+      AC_REQUIRE([gt_LOCALE_EN_UTF8])
       AC_REQUIRE([gt_LOCALE_JA])
       AC_REQUIRE([gt_LOCALE_ZH_CN])
       AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
@@ -90,7 +90,7 @@ changequote(,)dnl
               gl_cv_func_wcrtomb_retval="guessing yes" ;;
           esac
 changequote([,])dnl
-          if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
+          if test $LOCALE_FR != none || test $LOCALE_EN_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
             AC_RUN_IFELSE(
               [AC_LANG_SOURCE([[
 #include <locale.h>
@@ -106,8 +106,8 @@ int main ()
       if (wcrtomb (NULL, 0, NULL) != 1)
         result |= 1;
     }
-  if (strcmp ("$LOCALE_FR_UTF8", "none") != 0
-      && setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
+  if (strcmp ("$LOCALE_EN_UTF8", "none") != 0
+      && setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
     {
       if (wcrtomb (NULL, 0, NULL) != 1)
         result |= 2;
index 99957c83b0377851e4dad7625460b41ce762046b..cbcbddb792df9c71e0b03f5190a0d52cf87d250c 100644 (file)
@@ -5,6 +5,7 @@ Files:
 lib/btowc.c
 m4/btowc.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4
 
index 4626d153738495f58159cc638b305e809efcfe94..8b82528b007905d900beecfcfeb9172e3dd45793 100644 (file)
@@ -7,6 +7,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 8d2a33ebce8a4c277476f06f32717e16888f2db6..c1470238b8a048bd145a6ca4b5949de01078f264 100644 (file)
@@ -7,6 +7,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 08d9038790b7cc75bdb4b13ebb11d8b5a13ca8db..f231f95600b58932c04ca023bfee5ae4504096b8 100644 (file)
@@ -7,6 +7,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index b1a56eba04334a821f7d28a65d1387a2861dbedc..cc4c80cb087b9a666469cf5ffe35fc4758f87cd9 100644 (file)
@@ -7,6 +7,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 9f295b3ad18bbfa3d9caf5f368eb707377d02f67..986bf79e287789fac1b4bee9105498dc7a4fe879 100644 (file)
@@ -7,6 +7,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index b5a02b040502577c29335ff6670ff8d05296fc0c..a6519a6208177f3cc4467aa2aab86f8864c8cfc4 100644 (file)
@@ -7,6 +7,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 77f17a861f7ad9d5184ea5860e2199a6d597696c..378ac90a2ba4f75a9554ffe870b74c2cf0cbd06d 100644 (file)
@@ -7,6 +7,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 10f74e6887f9573e967d538f60a2aa680187559a..5d6d4703d0d54eb4f8beeecdd5afa786d5d2754f 100644 (file)
@@ -7,6 +7,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 7a8af0e39294c83c76550cc721bcb49c545f7e68..39c1286a78ba156acaadd40b7e3a7f74cc9c869d 100644 (file)
@@ -8,6 +8,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 28befaacc5c120e3e9cc184b58da6d66b5948312..a2dd36876d5eae3d698470df3ad65a3e522a5aa8 100644 (file)
@@ -7,6 +7,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 75cd04327ff55695054e15af35df30a76089a735..2e5972d137d20b57303692c384f5cb5db9e37eff 100644 (file)
@@ -7,6 +7,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 9447744bb7f720a0b3dcbae51c7077bebd27eb82..a1c498fe3bf5f66b6cc9d1f63aa101c4519a05c7 100644 (file)
@@ -8,6 +8,7 @@ lib/c32is-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 1662333e8dd9e80b03d4ed3a70b7e25063076889..8331aa178a716f16f9c819f430f376c1f78c2d9b 100644 (file)
@@ -5,6 +5,7 @@ Files:
 lib/c32rtomb.c
 m4/c32rtomb.m4
 m4/mbrtoc32.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-zh.m4
 m4/codeset.m4
index 9e8c0a28692dfa7aaaee85cb693b024bb257b15a..6637b824923b2918e262a53c10f3313800e6f753 100644 (file)
@@ -5,6 +5,7 @@ Files:
 lib/c32tob.c
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-zh.m4
 m4/codeset.m4
index e4140f34a81a11371ed97086e3d506a442ab54a4..eb139aa16fab216fdc4f2d774a2c930303a63750 100644 (file)
@@ -7,6 +7,7 @@ lib/c32to-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 16c7a0c7aeb9174b4c25c0a12cd61935ca77343a..9f7c3c516b5c2a4ed9aadc952741db2ae74173dd 100644 (file)
@@ -7,6 +7,7 @@ lib/c32to-impl.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 1db9002bb4f9a3555f8a648fcf7793136ca6d5db..d2e262ababac894bf1bebe557c6582ed89b8af15 100644 (file)
@@ -7,6 +7,7 @@ lib/c32width.c
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 517139f7e514343f2b10195bb6894e3b844d0245..974de786e813612ed4a56de47e4ca77d7d3f6e6a 100644 (file)
@@ -5,7 +5,7 @@ Files:
 lib/mbrlen.c
 m4/mbrlen.m4
 m4/mbstate_t.m4
-m4/locale-fr.m4
+m4/locale-en.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
index 8f4599fba80812b2a28eb5e3adfe662f1528769b..19cc559fb6a3759fcfd7c56820af7732e2cdb1f9 100644 (file)
@@ -4,6 +4,7 @@ mbrtoc16() function: convert multibyte character and return next 16-bit wide cha
 Files:
 lib/mbrtoc16.c
 m4/mbrtoc16.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-zh.m4
 m4/codeset.m4
index 463756d08b8ab9f800ddc70dc7ce4ee3560b2933..75c2b6fe45a4dcb1d7d47f7aa4231f75b3959c7e 100644 (file)
@@ -12,6 +12,7 @@ lib/mbtowc-lock.c
 lib/windows-initguard.h
 m4/mbrtoc32.m4
 m4/c32rtomb.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-zh.m4
 m4/codeset.m4
index 4fbffab1dec6cc08ddc79b4e71b777d953503a5c..64885a922c2ff7c79f703b8e03f0134129665ea5 100644 (file)
@@ -12,7 +12,7 @@ lib/mbtowc-lock.c
 lib/windows-initguard.h
 m4/mbrtowc.m4
 m4/mbstate_t.m4
-m4/locale-fr.m4
+m4/locale-en.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
 m4/codeset.m4
index 59a205d465f3351d7faab47581c20ad6e4144783..c7b8532440114f5b8aa073cd0b86fb7c3ee08407 100644 (file)
@@ -8,6 +8,7 @@ lib/mbsrtowcs-state.c
 m4/mbsnrtowcs.m4
 m4/mbstate_t.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4
 
index 70e7d0c36fb6bdd0601d1a742d3c002ef1a14016..9fc971dc19c2d7bac5b505d9855568f24d463e01 100644 (file)
@@ -8,6 +8,7 @@ lib/mbsrtowcs-state.c
 m4/mbsrtowcs.m4
 m4/mbstate_t.m4
 m4/mbrtowc.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 009dec8ee64aef73dcbf01858924609c919ad8e6..9646c3b336376d8840e1510a37db120299ec843b 100644 (file)
@@ -4,7 +4,7 @@ A GNU-like <stdlib.h>.
 Files:
 lib/stdlib.in.h
 m4/stdlib_h.m4
-m4/locale-fr.m4
+m4/locale-en.m4
 m4/codeset.m4
 
 Depends-on:
index b2876143182a15aa8eb3219c7f6bd9e588904912..de87c7ec92afdcb55efae4f2fab0f6f714ed819f 100644 (file)
@@ -6,6 +6,7 @@ lib/wcrtomb.c
 m4/wcrtomb.m4
 m4/mbrtowc.m4
 m4/mbstate_t.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 4e344a19524fff686ee76f1172bdaf48121b081d..f29aa37c0ec504f636bbc3586ad97c5adff1c86d 100644 (file)
@@ -8,6 +8,7 @@ lib/wcsrtombs-state.c
 m4/wcsnrtombs.m4
 m4/mbrtowc.m4
 m4/mbstate_t.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index 127be1df775f667952977088ad52e3971575c05a..b478f86b6a246cf1431599adccff304f3aea8cc1 100644 (file)
@@ -8,6 +8,7 @@ lib/wcsrtombs-state.c
 m4/wcsrtombs.m4
 m4/mbrtowc.m4
 m4/mbstate_t.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/locale-ja.m4
 m4/locale-zh.m4
index b2b96965db8f0829122986146e1331ea2082c2dd..20abcb5c4b0b9b1029f5b976977886ff0cd6b578 100644 (file)
@@ -4,6 +4,7 @@ wctob() function: convert wide character to unibyte character.
 Files:
 lib/wctob.c
 m4/wctob.m4
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4