From dca1b4dcccc559a6df863f3c94d9df8f5cbc8f19 Mon Sep 17 00:00:00 2001 From: ngie Date: Mon, 16 Jan 2017 07:17:43 +0000 Subject: MFC r312009: Add license preamble for r286964; credit to asomers While here, clean up trailing whitespace --- share/mk/bsd.own.mk | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'share') diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 6f0fd3e..0d21cb3 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -602,6 +602,24 @@ MK_TESTS:= no # # +# MK_* options whose default value depends on another option. +# +.for vv in \ + GSSAPI/KERBEROS \ + MAN_UTILS/MAN +.if defined(WITH_${vv:H}) && defined(WITHOUT_${vv:H}) +.error WITH_${vv:H} and WITHOUT_${vv:H} can't both be set. +.endif +.if 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 + +# # MK_*_SUPPORT options which default to "yes" unless their corresponding # MK_* variable is set to "no". # @@ -627,24 +645,6 @@ MK_${var}_SUPPORT:= yes .endfor # -# MK_* options whose default value depends on another option. -# -.for vv in \ - GSSAPI/KERBEROS \ - MAN_UTILS/MAN -.if defined(WITH_${vv:H}) && defined(WITHOUT_${vv:H}) -.error WITH_${vv:H} and WITHOUT_${vv:H} can't both be set. -.endif -.if 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 - -# # MK_* options that default to "yes" if the compiler is a C++11 compiler. # .include -- cgit v1.1