m4: update ax_prog_cc_for_build.m4 to latest#524
Merged
stevegrubb merged 1 commit intolinux-audit:masterfrom Apr 23, 2026
Merged
m4: update ax_prog_cc_for_build.m4 to latest#524stevegrubb merged 1 commit intolinux-audit:masterfrom
stevegrubb merged 1 commit intolinux-audit:masterfrom
Conversation
After the autoconf update to 2.73 this was using -std=gnu23 even on hosts with gcc-13 which doesn't support it: ac_cv_prog_ac_ct_CC_FOR_BUILD='gcc ' ac_cv_prog_cc_c23=-std=gnu23 ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc=-std=gnu23 Leading to: gcc -std=gnu23 -DHAVE_CONFIG_H -I. -I../../sources/audit-4.1.4/lib -I.. -I. -I../../sources/audit-4.1.4 -I../../sources/audit-4.1.4/auparse -I../../sources/audit-4.1.4/common -isystem/audit/4.1.4/recipe-sysroot-native/usr/include '-DTABLE_H="fieldtab.h"' -isystem/audit/4.1.4/recipe-sysroot-native/usr/include -O2 -pipe -c -o gen_fieldtabs_h-gen_tables.o `test -f 'gen_tables.c' || echo '../../sources/audit-4.1.4/lib/'`gen_tables.c gcc: error: unrecognized command-line option �-std=gnu23�; did you mean �-std=gnu2x�? Needs the updated ac_cv_prog_cc_c23 from: autoconf-archive/autoconf-archive@8a970ce Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Cropi
approved these changes
Apr 21, 2026
Contributor
Cropi
left a comment
There was a problem hiding this comment.
Reviewed the changes. The PR updates m4/ax_prog_cc_for_build.m4 from serial 8 to serial 26 and is a byte-for-byte match with the current upstream at https://gitweb.git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_prog_cc_for_build.m4
Contributor
|
I was waiting for autoconf-2.73 to show up in rawhide. Build checks good. Thanks for the patch. |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After the autoconf update to 2.73 this was using -std=gnu23 even on hosts with gcc-13 which doesn't support it:
ac_cv_prog_ac_ct_CC_FOR_BUILD='gcc '
ac_cv_prog_cc_c23=-std=gnu23
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=-std=gnu23
Leading to:
gcc -std=gnu23 -DHAVE_CONFIG_H -I. -I../../sources/audit-4.1.4/lib -I.. -I. -I../../sources/audit-4.1.4 -I../../sources/audit-4.1.4/auparse -I../../sources/audit-4.1.4/common -isystem/audit/4.1.4/recipe-sysroot-native/usr/include '-DTABLE_H="fieldtab.h"' -isystem/audit/4.1.4/recipe-sysroot-native/usr/include -O2 -pipe -c -o gen_fieldtabs_h-gen_tables.o
test -f 'gen_tables.c' || echo '../../sources/audit-4.1.4/lib/'gen_tables.c gcc: error: unrecognized command-line option �-std=gnu23�; did you mean �-std=gnu2x�?Needs the updated ac_cv_prog_cc_c23 from:
autoconf-archive/autoconf-archive@8a970ce