Warn about nonfunctional WITHOUT options

Print a warning if we try to WITHOUT_ an option which is marked as
"required" (and forced on).

Suggested by:	emaste, imp
Reviewed by:	emaste, imp
Differential Revision:	https://reviews.freebsd.org/D40613
This commit is contained in:
Colin Percival 2023-06-19 21:42:17 -07:00
parent 4bc148c30e
commit 824b64a2f1

View File

@ -59,6 +59,9 @@ MK_${var}:= yes
# step towards removing the options entirely.
#
.for var in ${__REQUIRED_OPTIONS}
.if defined(WITHOUT_${var})
.warning WITHOUT_${var} option ignored: it is no longer supported
.endif
MK_${var}:= yes
.endfor