← 返回首页
bpo-45723: Prepare support for autoconf 2.71 (GH-29441) by tiran · Pull Request #29441 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

bpo-45723: Prepare support for autoconf 2.71 (GH-29441)#29441

Merged
tiran merged 1 commit into
python:mainfrom
tiran:bpo-45723-prep271
Nov 8, 2021
Merged

bpo-45723: Prepare support for autoconf 2.71 (GH-29441)#29441
tiran merged 1 commit into
python:mainfrom
tiran:bpo-45723-prep271

Conversation

tiran commented Nov 6, 2021
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

AC_PROG_EGREP should be checked explicitly.

AC_CONFIG_HEADER -> AC_CONFIG_HEADERS

AC_USE_SYSTEM_EXTENSIONS must be defined before first use of AC_LINK
or AC_COMPILE macros.

STDC_HEADERS and AC_HEADER_TIME are obsolete.

Signed-off-by: Christian Heimes christian@python.org

https://bugs.python.org/issue45723

tiran force-pushed the bpo-45723-prep271 branch from c4fe80a to fa14a14 Compare November 7, 2021 09:24
tiran added the skip news label Nov 7, 2021
tiran marked this pull request as ready for review November 7, 2021 09:34
tiran requested a review from rhettinger as a code owner November 7, 2021 09:34
tiran force-pushed the bpo-45723-prep271 branch from fa14a14 to 2b2a10e Compare November 7, 2021 10:18
tiran added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 7, 2021

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @tiran for commit 2b2a10ebcb4216c271248e2191c64f29a7a68912 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 7, 2021
tiran force-pushed the bpo-45723-prep271 branch from 2b2a10e to 2ffa2cb Compare November 8, 2021 07:17
tiran requested a review from erlend-aasland November 8, 2021 12:08

tiran commented Nov 8, 2021

Copy link
Copy Markdown
Member Author

All changes are based on the output of 2.71's autoupdate tool.

erlend-aasland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

I took a quick look and left some comments.

Comment thread configure.ac Outdated Show resolved Hide resolved
Comment thread configure.ac Outdated Show resolved Hide resolved
Comment thread configure.ac Outdated Show resolved Hide resolved
Comment thread configure.ac Outdated Show resolved Hide resolved
tiran force-pushed the bpo-45723-prep271 branch from 2ffa2cb to c224b32 Compare November 8, 2021 12:50

tiran commented Nov 8, 2021

Copy link
Copy Markdown
Member Author

autoconf 2.71 has deprecated the macro:

configure.ac:660: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:660: You should run autoupdate.

Copy link
Copy Markdown
Contributor

autoconf 2.71 has deprecated the macro:

configure.ac:660: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:660: You should run autoupdate.

Oh, well 😆

tiran commented Nov 8, 2021

Copy link
Copy Markdown
Member Author

In autoconf 2.71, AC_PROG_CC_C99 is an alias for AC_PROG_CC

erlend-aasland commented Nov 8, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

In autoconf 2.71, AC_PROG_CC_C99 is an alias for AC_PROG_CC

It seems that we can use AC_PROG_CC and check ac_cv_prog_cc_c99:

Otherwise, if ac_cv_prog_cc_c99 is set to any value other than ‘no’ (including the empty string), then CC can compile code as standard C 1999, and this mode has been enabled

Copy link
Copy Markdown
Contributor

BTW, we need to make sure we set CFLAGS before calling AC_PROG_CC, so we don't accidentally default to -g -O2.

tiran commented Nov 8, 2021

Copy link
Copy Markdown
Member Author

In autoconf 2.71, AC_PROG_CC_C99 is an alias for AC_PROG_CC

It seems that we can use AC_PROG_CC and check ac_cv_prog_cc_c99:

Otherwise, if ac_cv_prog_cc_c99 is set to any value other than ‘no’ (including the empty string), then CC can compile code as standard C 1999, and this mode has been enabled

autoconf 2.71 no longer defines the variable ac_cv_prog_cc_c99. autoconf 2.69 only defines it for AC_PROG_CC_STDC.

erlend-aasland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

LGTM, but I think one NEWS entry is enough ;)

``AC_PROG_EGREP`` should be checked explicitly. ``AC_CONFIG_HEADER`` -> ``AC_CONFIG_HEADERS`` ``AC_USE_SYSTEM_EXTENSIONS`` must be defined before first use of ``AC_LINK`` or ``AC_COMPILE`` macros. ``STDC_HEADERS`` and ``AC_HEADER_TIME`` are obsolete. Signed-off-by: Christian Heimes <christian@python.org>
tiran force-pushed the bpo-45723-prep271 branch from f8bfcf8 to 6a08338 Compare November 8, 2021 17:59

tiran commented Nov 8, 2021

Copy link
Copy Markdown
Member Author

LGTM, but I think one NEWS entry is enough ;)

Oops :)

I have removed the second entry and rebased the PR.

tiran changed the title bpo-45723: Prepare support for autoconf 2.71 bpo-45723: Prepare support for autoconf 2.71 (GH-29441) Nov 8, 2021
tiran merged commit cbab997 into python:main Nov 8, 2021
tiran deleted the bpo-45723-prep271 branch November 8, 2021 18:31
remykarem pushed a commit to remykarem/cpython that referenced this pull request Dec 7, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Footer

© 2026 GitHub, Inc.