Re: configure adds -std=gnu++11 to CXX variable
Peter Johansson <[email protected]> Tue, 5 Mar 2024 11:57:06 +1000
| Newsgroups | gmane.comp.sysutils.autoconf.general |
|---|---|
| Message-ID | <CAEZXgxjQBPp+H11Wwr3S9r_1wCmpyNSgCrVGPywPN4+dgt0J6w@mail.gmail.com> |
Hi Zack, On Tue, Mar 5, 2024 at 12:58 AM Zack Weinberg <[email protected]> wrote: > On Mon, Mar 4, 2024, at 9:54 AM, Zack Weinberg wrote: > > Fixing these things is a high priority for Autoconf 2.73 but nobody > > currently has time to work on it. If you have time, we would > > appreciate your working on it -- even just a rough draft of revised > > test programs would be helpful. > > I'm glad this was already on your radar. I'm happy to give this a go and changing the test code so it compiles c++20 mode seems like an appropriate start. I'm unlikely to find time before May though. > Oh, also, as a workaround, try > > ./configure CXX='g++ -std=c++2a' ac_cv_prog_cxx_cxx11='none needed' > That made 'none needed' appear in $CXX, which was not popular, but if I set the cache variable to empty, it works ./configure CXX='g++ -std=c++2a' ac_cv_prog_cxx_cxx11= Thanks, Peter