From: Nick Bowler Date: Thu, 11 Apr 2024 00:57:36 +0000 (-0400) Subject: DX_C_ALIGNAS: Work around bash-5 parsing bug. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain 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. --- 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],