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

build: make the C99 requirement explicit #193

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

carenas
Copy link
Contributor

@carenas carenas commented Jan 15, 2023

Fixes to bootstrapping with older tools that would result in broken builds.

The configure.ac uses additional syntax to keep using the original macro that is used in bootstrapping for releases and that works fine even with really old gcc (would test and try to enable up to C11) and could be dropped once the AC_PREREQ is updated as originally intended.

Recent code uses C99 syntax (as reported in PCRE2Project#163, and therefore it
will fail to build unless C99 (or higher) support is required by the
compiler (gcc >= 5 does it by default).

For those unfortunate to need an older compiler that does require a
flag to enable that, make sure that both autoconf and cmake make it
explicit.

While testing the change with the ancient autoconf version listed as
a prerequisite, noticed that the LT_INIT syntax introduced with 91485e5
(Update configure.ac for latest version of autoconf., 2021-02-02), was
not supported, so update the autoconf minimum as well.
@PhilipHazel PhilipHazel merged commit 6068ae1 into PCRE2Project:master Jan 19, 2023
@carenas carenas deleted the c99 branch January 19, 2023 20:08
bryce-cahill pushed a commit to bryce-cahill/conan-center-index that referenced this pull request Sep 10, 2023
bryce-cahill pushed a commit to bryce-cahill/conan-center-index that referenced this pull request Sep 10, 2023
bryce-cahill pushed a commit to bryce-cahill/conan-center-index that referenced this pull request Sep 14, 2023
bryce-cahill added a commit to bryce-cahill/conan-center-index that referenced this pull request Sep 25, 2023
conan-center-bot pushed a commit to conan-io/conan-center-index that referenced this pull request Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants