[Top][All Lists]

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

[patch #8247] AX_CHECK_{PREPROC, COMPILE, LINK}_FLAG: add optional INPUT

From: anonymous
Subject: [patch #8247] AX_CHECK_{PREPROC, COMPILE, LINK}_FLAG: add optional INPUT argument
Date: Sun, 24 Nov 2013 21:30:17 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131030 Firefox/17.0 Iceweasel/17.0.10


                 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: address@hidden
             Open/Closed: Open
         Discussion Lock: Any



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



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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