[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GNU Autoconf 2.71] testsuite: 509 514 failed
From: |
Zack Weinberg |
Subject: |
Re: [GNU Autoconf 2.71] testsuite: 509 514 failed |
Date: |
Fri, 08 Jul 2022 10:16:18 -0400 |
User-agent: |
Cyrus-JMAP/3.7.0-alpha0-719-gc39a70fa89-fm-20220629.002-gc39a70fa |
On Sat, Jul 2, 2022, at 11:18 AM, Tom Lane wrote:
> This is from "make check" on an M1 Mac Mini, running Monterey.
> It's effectively the same platform as the laptop in my previous report,
> but here I've got MacPorts at the front of the search path, so that
> there's a bunch of tools that are being supplied by MacPorts not Apple.
> If I remove /opt/local/bin from PATH I get results that look the same
> as the previous report, so MacPorts helps ... but not enough.
Can you please try this patch on Monterey?
diff --git a/lib/autoconf/headers.m4 b/lib/autoconf/headers.m4
index 8944da41..5cd1f4d5 100644
--- a/lib/autoconf/headers.m4
+++ b/lib/autoconf/headers.m4
@@ -633,8 +633,10 @@ AC_DEFUN([AC_CHECK_HEADER_STDBOOL],
bool *pp = &p;
/* C 1999 specifies that bool, true, and false are to be
- macros, but C++ 2011 and later overrule this. */
- #if __cplusplus < 201103
+ macros, but C++ 2011 overrules this. The C++ committee
+ was codifying existing practice, so we allow them to
+ not be macros whenever __cplusplus is defined. */
+ #ifndef __cplusplus
#ifndef bool
#error "bool is not defined"
#endif
diff --git a/tests/local.at b/tests/local.at
index 3f348929..f79f57ff 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -593,9 +593,9 @@ AT_CMP([at_defines-$1], [at_defines-$2])[]dnl
m4_define([_AT_DEFINES_CMP_PRUNE],
[m4_bmatch([$1],
[^vary:],
-[ /@%:@define ]m4_bpatsubsts([$1], [\<vary:], [])dnl
+[ /@%:@define ]m4_bpatsubsts([$1], [\<vary:], [])[]dnl
[@<:@ @{:@@:>@/ d ;@%:@@:}@
- /@%:@undef ]m4_bpatsubsts([$1], [\<vary:], [])dnl
+ /@%:@undef ]m4_bpatsubsts([$1], [\<vary:], [])[]dnl
[@<:@ @{:@@:>@/ d ;@%:@@:}@
],
[m4_fatal([unrecognized AT_DEFINES_CMP variance token: "$1"])])])