Skip to content

Fail noisily if an unknown --enable or --disable flag is passed to configure - #5395

Open
graydon wants to merge 1 commit into
stellar:masterfrom
graydon:fail-unknown-configure-flags
Open

Fail noisily if an unknown --enable or --disable flag is passed to configure#5395
graydon wants to merge 1 commit into
stellar:masterfrom
graydon:fail-unknown-configure-flags

Conversation

@graydon

@graydon graydon commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

If, like me, you regularly mis-spell a configure --enable-foo or --disable-foo flag and it gets silently ignored, you might enjoy this PR: it enables a thing in autoconf that catches and complains about such misspellings rather than silently ignoring them!

(Apparently this is normally the default until you have sub-configures like we have, in which case it switches. But you can switch it back. Thanks robot for discovering this!)

Fixes #2635

Copilot AI review requested due to automatic review settings July 29, 2026 20:23

Copilot AI 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.

Pull request overview

Makes top-level configuration fail on misspelled or unknown feature flags while preserving permissive recursive configuration.

Changes:

  • Sets Autoconf option checking to fatal.
  • Documents why recursive sub-configures remain unaffected.

@dmkozh dmkozh 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.

That's very much appreciated, thanks!

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.

Configure ignores invalid arguments silently

3 participants