Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449840 - sys-devel/autoconf: add macros for C compiler with gnu89 / gnu99 standards
Summary: sys-devel/autoconf: add macros for C compiler with gnu89 / gnu99 standards
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-02 22:09 UTC by Michał Górny
Modified: 2013-02-02 12:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-02 22:09:11 UTC
Before I request this upstream, I'd like to know your opinion.

autoconf has AC_PROG_CC_C89 and AC_PROG_CC_C99 macros to enable the particular standard C variants, causing '-std=c89' and '-std=c99' to be used.

However, the programs using GNU extensions (-std=gnu89 and -std=gnu99) usually assume that they are the default and need no options. This is not true with clang which fails with those packages.

Therefore, I'd like to request adding to autoconf macros AC_PROG_CC_GNU89 and AC_PROG_CC_GNU99 which would request a compiler supporting C89/C99 with GNU extensions. In case of clang, it would add an '-std=gnu89' or '-std=gnu99' option.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-01-03 00:03:18 UTC
You can write your own and roll it in your software or ask for it to be added to 2.70 by going upstream.

WE are not going to add it to our packages for sure.
Comment 2 SpanKY gentoo-dev 2013-01-03 02:46:14 UTC
(In reply to comment #1)

^^^ that
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-02 12:42:33 UTC
Thanks for your effort in reading the first sentence.