Skip to content

Commit b22c8ec

Browse files
committed
configure: Support --disable-option-checking
1 parent a264f5b commit b22c8ec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

configure

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ fi
585585
BOOL_OPTIONS=""
586586
VAL_OPTIONS=""
587587

588+
opt option-checking 1 "complain about unrecognized options"
588589
opt debug 0 "debug mode; disables optimization unless \`--enable-optimize\` given"
589590
opt valgrind 0 "run tests with valgrind (memcheck by default)"
590591
opt helgrind 0 "run tests with helgrind instead of memcheck"
@@ -674,8 +675,11 @@ then
674675
fi
675676

676677
# Validate Options
677-
step_msg "validating $CFG_SELF args"
678-
validate_opt
678+
if [ -z "$CFG_DISABLE_OPTION_CHECKING" ]
679+
then
680+
step_msg "validating $CFG_SELF args"
681+
validate_opt
682+
fi
679683

680684
# Validate the release channel, and configure options
681685
case "$CFG_RELEASE_CHANNEL" in

0 commit comments

Comments
 (0)