autoconf
[Top][All Lists]
Advanced

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

Feature request: AC_PROG_CC_* macros for gnu89/gnu99-compliant compiler


From: Michał Górny
Subject: Feature request: AC_PROG_CC_* macros for gnu89/gnu99-compliant compiler
Date: Sat, 2 Feb 2013 14:13:03 +0100

Hello,

With the late increase in number of clang users, we're getting a number
of bugs related to the packages relying on gnu89/gnu99 standards
compiler compliance without proper checks for it. Those packages fail
to build because clang uses strict -std=c99 by default, and they fail
to provide proper -std=gnu89 or -std=gnu99.

In order to solve that properly, I would like to request having two new
macros in autoconf: AC_PROG_CC_GNU89 and AC_PROG_CC_GNU99, in a similar
manner to the AC_PROG_CC_C99 macro.

I'm not sure what checks can be used to distinguish between strict
standards and GNU ones. But the general idea is that those macros
should cause clang to be run with '-std=gnu89' or '-std=gnu99'
as required by the package.

What are your thoughts?

-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]