Skip to content

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

Merged
erlend-aasland merged 1 commit into
python:mainfrom
erlend-aasland:ac/2.72-egrep-source-alt
Feb 28, 2024
Merged

gh-115765: Use AX_CHECK_DEFINE instead of AC_EGREP_*#116016
erlend-aasland merged 1 commit into
python:mainfrom
erlend-aasland:ac/2.72-egrep-source-alt

Conversation

@erlend-aasland

@erlend-aaslanderlend-aasland commented Feb 28, 2024

Copy link
Copy Markdown
Contributor

@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

cc. @mhsmith

@erlend-aasland
erlend-aasland marked this pull request as ready for review February 28, 2024 12:48
Comment threadconfigure.ac
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
Copy Markdown
ContributorAuthor

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.

@corona10corona10 left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
ContributorAuthor

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

@erlend-aasland
erlend-aasland merged commit 449c6da into python:mainFeb 28, 2024
@erlend-aasland
erlend-aasland deleted the ac/2.72-egrep-source-alt branch February 28, 2024 13:35
@erlend-aaslanderlend-aasland mentioned this pull request Feb 29, 2024
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@erlend-aasland@mhsmith@corona10