Re: No macro for C11/C18?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 24, 2020 at 8:47 PM Nick Bowler <nbowler@xxxxxxxxxx> wrote:
>
> On 1/24/20, Christian Biesinger <cbiesinger@xxxxxxxxxx> 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




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux