Add support for dependent options

Reviewed by:	imp
This commit is contained in:
Simon J. Gerraty 2015-06-06 01:18:28 +00:00
parent be771cda12
commit d800e67729

View File

@ -70,3 +70,16 @@ MK_${var}:= no
.for var in ${BROKEN_OPTIONS}
MK_${var}:= no
.endfor
.for vv in ${__DEFAULT_DEPENDENT_OPTIONS}
.if defined(WITH_${vv:H}) && defined(WITHOUT_${vv:H})
MK_${vv:H}?= no
.elif defined(WITH_${vv:H})
MK_${vv:H}?= yes
.elif defined(WITHOUT_${vv:H})
MK_${vv:H}?= no
.else
MK_${vv:H}?= ${MK_${vv:T}}
.endif
.endfor
.undef __DEFAULT_DEPENDENT_OPTIONS