mainAutoconf - Support: sr #110394, Support optional use of the C++...


sr #110394: Support optional use of the C++ compiler in AC_PROG_CXX (and similarly for other languages)

Submitter:  Zack Weinberg <zackw>
Submitted:  Sun 06 Dec 2020 10:25:57 PM UTC
Priority:  * 3 - Release N+1 Severity:  1 - Wish
Status:  Confirmed Privacy:  Public
Assigned to:  None Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sun 06 Dec 2020 10:26:29 PM UTC, comment #1: 

Not going to happen for 2.70 but should definitely be considered for 2.71.

Zack Weinberg <zackw>
Group administrator
Sun 06 Dec 2020 10:25:57 PM UTC, original submission:  

Bug #110294 reports a regression in autoconf 2.70 on the configure script for a program that has some C and some C++ code, but use of the C++ code is optional.  The code that broke attempts to do most of what AC_PROG_CXX does, but not abort the configure script when a C++ compiler is not found.  Instead, output variables would be set so that compilation of C++ code is disabled.

We do not want to support this particular kludge, as it would pin down the guts of AC_PROG_CXX too much, but we should support optional use of the $LANG compiler (for all values of $LANG).  Perhaps with an additional argument to AC_PROG_CC, AC_PROG_CXX, etc, marking usage optional.

See also bug #110286.

Zack Weinberg <zackw>
Group administrator


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by haible
  • -email is unavailable- added by zackw (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-08 zackw StatusNone Confirmed
    2023-12-08 zackw Priority1 - Blocked 3 - Release N+1
    2020-12-07 haible Carbon-Copy- Added -email is unavailable-
    2020-12-06 zackw Priority5 - Unprioritized 1 - Blocked

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code