[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No macro for C11/C18?
From: |
Christian Biesinger |
Subject: |
Re: No macro for C11/C18? |
Date: |
Fri, 24 Jan 2020 21:06:57 +0100 |
On Fri, Jan 24, 2020 at 8:47 PM Nick Bowler <address@hidden> wrote:
>
> On 1/24/20, Christian Biesinger <address@hidden> wrote:
> > I noticed that autoconf has a macro to enable C99 (AC_PROG_CC_C99),
> > but apparently no such macro for C11 or C18. I was wondering if a
> > patch for that would be acceptable in principle or if this is missing
> > intentionally?
>
> In autoconf master, the AC_PROG_CC_C99 macro is deprecated and no longer
> recommended for use.
>
> AC_PROG_CC now tries to select the highest language revision supported
> by the compiler.
Nice. Is there a way to query what language revision it found, so that
configure scripts can check that it's at least C99 if that's what the
program requires?
> Unfortunately, the improved AC_PROG_CC has not yet made it into an
> Autoconf release, primarily due to a lack of volunteers willing to
> invest the time to help with the process.
That is unfortunate.
So I guess I need to decide whether to write my own macro, settle for
C99, or copy the unreleased autoconf one.
Thanks for the responses also to Bob and Nicholas.
Christian