[patch #8247] AX_CHECK_{PREPROC, COMPILE, LINK}_FLAG: add optional INPUT argument
anonymous <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.archive-maintainers |
|---|---|
| Message-ID | <[email protected]> |
URL:
<http://savannah.gnu.org/patch/?8247>
Summary: AX_CHECK_{PREPROC,COMPILE,LINK}_FLAG: add optional
INPUT argument
Project: GNU Autoconf Archive
Submitted by: None
Submitted on: Sun 24 Nov 2013 09:30:16 PM UTC
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email: [email protected]
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This patch adds an optional INPUT argument to the end of the
AX_CHECK_{PREPROC,COMPILE,LINK}_FLAG macros. It allows the user to specify an
alternative input source to AC_{PREPROC,COMPILE,LINK}_IFELSE. The default is
to use AC_LANG_PROGRAM(), so the change is fully backward-compatible.
The use case of this change is checking for compiler warning flags, e.g.
-Wstrict-prototypes, by compiling with -Wstrict-prototypes -Werror to see if
the compiler fails. Unfortunately the default AC_LANG_PROGRAM() is not always
warning-safe, e.g. -Wstrict-prototypes will warn on "int main() { ... }", so
the compiler will fail even if the warning flag is supported. One can fix this
by supplying an input source which compiles with the warning flags one wants
to test for, e.g. in this case "int main(void) { ... }".
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 24 Nov 2013 09:30:16 PM UTC Name:
0001-AX_CHECK_-PREPROC-COMPILE-LINK-_FLAG-add-optional-IN.patch Size: 5kB
By: None
<http://savannah.gnu.org/patch/download.php?file_id=29700>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8247>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/