From 419ef0274998c19b8c46b0f511bf44f49a514670 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 10 Apr 2024 20:57:36 -0400 Subject: [PATCH] DX_C_ALIGNAS: Work around bash-5 parsing bug. Apparently bash-5 and later versions fail to parse for loops with a newline before the 'in' keyword, if that loop itself is in a case. statement. Previous versions of bash have no such problem, nor does any other shell I've tried, but the workaround is simple enough. --- m4/align.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/align.m4 b/m4/align.m4 index 945beff..a69e640 100644 --- a/m4/align.m4 +++ b/m4/align.m4 @@ -59,7 +59,7 @@ AC_DEFUN([DX_C_ALIGNAS], [no/no|*/c89|*/c99], [AC_CACHE_CHECK([if $CC supports _Alignas], [dx_cv_have_alignas], [dx_cv_have_alignas=no -for _dx_alignas +for _dx_alignas dnl Eat newline to work around bash-5 parsing bug. in '_Alignas(X)' '__attribute__((__aligned__(X)))' '__declspec(align(X))' do AC_COMPUTE_INT([_dx_tmp], -- 2.43.0