patchGNU Autoconf Archive - Patches: patch #8247, ...


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

Submitter:  None
Submitted:  Sun 24 Nov 2013 09:30:16 PM UTC
Priority:  5 - Normal Status:  Done
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)

Tue 10 Dec 2013 08:59:26 PM UTC, comment #1: 

I pushed your patch in commit 391cb680171d3889965b1ead43d3a326c913bc25. Thank you very much for the submission!

Peter Simons <simons>
Group administrator
Sun 24 Nov 2013 09:30:16 PM UTC, original submission:  

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) { ... }".



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by simons
  • -email is unavailable- added by simons
  • -email is unavailable- added by None (Submitted the item)




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-07 simons StatusReady For Test Done
        Open/ClosedOpen Closed
    2013-12-10 simons StatusNone Ready For Test
        Assigned toNone simons
        Carbon-Copy- Added maarten bosmans <>
        Carbon-Copy- Added guido u. draheim <>
    2013-11-24 None Attached File- Added 0001-AX_CHECK_-PREPROC-COMPILE-LINK-_FLAG-add-optional-IN.patch, #29700

    Back to the top

    Powered by Savane 3.12