]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
stdlib: Improve change from 2024-12-23.
authorBruno Haible <bruno@clisp.org>
Wed, 25 Dec 2024 14:14:32 +0000 (15:14 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 25 Dec 2024 14:14:32 +0000 (15:14 +0100)
* m4/stdlib_h.m4 (gl_STDLIB_H): Improve indentation.

ChangeLog
m4/stdlib_h.m4

index 4e93cf372f8a5685e1f5d93fbdafb1430d008954..e609ecf440625d22075fd026163b0b1b49e3581b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-25  Bruno Haible  <bruno@clisp.org>
+
+       stdlib: Improve change from 2024-12-23.
+       * m4/stdlib_h.m4 (gl_STDLIB_H): Improve indentation.
+
 2024-12-24  Bruno Haible  <bruno@clisp.org>
 
        access, euidaccess tests: Avoid test failure in Cygwin 3.5.5.
index f1192e3d25b3b875d8b5a2e89e8dcb8477f255e0..ba56a9480b33c9c253a2e677f2e15f1c567ab7ca 100644 (file)
@@ -1,5 +1,5 @@
 # stdlib_h.m4
-# serial 83
+# serial 84
 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,
@@ -42,19 +42,20 @@ AC_DEFUN_ONCE([gl_STDLIB_H],
   AC_CACHE_CHECK([whether MB_CUR_MAX is correct],
     [gl_cv_macro_MB_CUR_MAX_good],
     [AC_LINK_IFELSE(
-     [AC_LANG_PROGRAM([[#include <stdlib.h>
-                      ]],
-                      [[return !!MB_CUR_MAX;]])],
-     [dnl Initial guess, used when cross-compiling or when no suitable locale
-      dnl is present.
-      # Guess no on Solaris and Haiku, yes otherwise.
-      AS_CASE([$host_os],
-        [solaris* | haiku*],
-          [gl_cv_macro_MB_CUR_MAX_good="guessing no"],
-          [gl_cv_macro_MB_CUR_MAX_good="guessing yes"])
-      if test "$LOCALE_EN_UTF8" != none; then
-        AC_RUN_IFELSE(
-          [AC_LANG_SOURCE([[
+       [AC_LANG_PROGRAM([[#include <stdlib.h>
+                        ]],
+                        [[return !!MB_CUR_MAX;]])
+       ],
+       [dnl Initial guess, used when cross-compiling or when no suitable locale
+        dnl is present.
+        # Guess no on Solaris and Haiku, yes otherwise.
+        AS_CASE([$host_os],
+          [solaris* | haiku*],
+            [gl_cv_macro_MB_CUR_MAX_good="guessing no"],
+            [gl_cv_macro_MB_CUR_MAX_good="guessing yes"])
+        if test "$LOCALE_EN_UTF8" != none; then
+          AC_RUN_IFELSE(
+            [AC_LANG_SOURCE([[
 #include <locale.h>
 #include <stdlib.h>
 int main ()
@@ -67,12 +68,12 @@ int main ()
     }
   return result;
 }]])],
-          [gl_cv_macro_MB_CUR_MAX_good=yes],
-          [gl_cv_macro_MB_CUR_MAX_good=no],
-          [:])
-      fi
-     ],
-     [gl_cv_macro_MB_CUR_MAX_good="link failed - so no"])
+            [gl_cv_macro_MB_CUR_MAX_good=yes],
+            [gl_cv_macro_MB_CUR_MAX_good=no],
+            [:])
+        fi
+       ],
+       [gl_cv_macro_MB_CUR_MAX_good="link failed - so no"])
     ])
   AS_CASE([$gl_cv_macro_MB_CUR_MAX_good],
     [*yes],