helpAutoconf - Support: sr #110425, autoconf 2.70 generated configure...


sr #110425: autoconf 2.70 generated configure file does not enable -std=gnu99 on Mac OS X 10.5

Submitter:  Bruno Haible <haible>
Submitted:  Sat 16 Jan 2021 10:49:59 AM UTC
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Operating System:  Mac OS
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Sat 30 Jan 2021 09:55:16 AM UTC, comment #3: 

Thanks. I confirm that it is fixed in Autoconf 2.71.

Bruno Haible <haible>
Thu 28 Jan 2021 11:04:15 PM UTC, comment #2: 

This should be fixed in the just-released 2.71.

Zack Weinberg <zackw>
Project Administrator
Sat 16 Jan 2021 10:51:49 AM UTC, comment #1: 

With autoconf master as of 2021-01-15, the problem is fixed. I.e. the generated configure script now adds '-std=gnu99' to $CC again.

Bruno Haible <haible>
Sat 16 Jan 2021 10:49:59 AM UTC, original submission:  

This is a regression in autoconf 2.70, compared to version 2.69:

Take a tarball with C source code that makes use of C99 features. For example:

./gnulib-tool --create-testdir --dir=../testdir5 --single-configure dfa

(with current gnulib).

Build it on Mac OS X 10.5, with CC="gcc -m64".

With autoconf 2.69, the config.status file contains

S["CC"]="gcc -m64 -std=gnu99"

and the compilation goes through.

With autoconf 2.70, the config.status file contains

S["CC"]="gcc -m64"

and the compilation fails with errors such as "error: 'for' loop initial declaration used outside C99 mode".

Bruno Haible <haible>


(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 zackw (Posted a comment)
  • -email is unavailable- added by haible (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-28 zackw StatusNone Done
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.9