Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-115765: Use AX_CHECK_DEFINE instead of AC_EGREP_* #116016

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Feb 28, 2024

@erlend-aasland
Copy link
Contributor Author

cc. @mhsmith

dnl http://www.v6.linux.or.jp/
AC_EGREP_CPP([yes], [
#include <features.h>
#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Glibc 2.1 was released in February 1999. According to DistroWatch, we can safely assume that we run on glibc 2.1 or newer. All we need here is to check for __GLIBC__, AFAICS.

Copy link
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

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

lgtm!

@erlend-aasland
Copy link
Contributor Author

Thanks for the review, both of you! Highly appreciated :)

@erlend-aasland erlend-aasland merged commit 449c6da into python:main Feb 28, 2024
35 checks passed
@erlend-aasland erlend-aasland deleted the ac/2.72-egrep-source-alt branch February 28, 2024 13:35
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
…ac (python#116016)

Rewrite using AX_CHECK_DEFINE and AC_CHECK_TYPES.
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
…ac (python#116016)

Rewrite using AX_CHECK_DEFINE and AC_CHECK_TYPES.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…ac (python#116016)

Rewrite using AX_CHECK_DEFINE and AC_CHECK_TYPES.
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.

3 participants