diff options
author | jlam <jlam@pkgsrc.org> | 2007-09-08 05:03:52 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2007-09-08 05:03:52 +0000 |
commit | 1e07c6ecdbac5660d695a896b868a3dfe97d2abb (patch) | |
tree | 9b652d86514ea9406e2679033baefd32d74a3421 /mk | |
parent | f2eb6c6337e3b444e207cf30a5e6bc10cdba313f (diff) | |
download | pkgsrc-1e07c6ecdbac5660d695a896b868a3dfe97d2abb.tar.gz |
Canonicalize the way the features are tested.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/features/features-vars.mk | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/mk/features/features-vars.mk b/mk/features/features-vars.mk index 30d72688be0..c5d847352f2 100644 --- a/mk/features/features-vars.mk +++ b/mk/features/features-vars.mk @@ -1,4 +1,4 @@ -# $NetBSD: features-vars.mk,v 1.2 2007/09/08 04:54:12 jlam Exp $ +# $NetBSD: features-vars.mk,v 1.3 2007/09/08 05:03:52 jlam Exp $ # # This file is include by bsd.prefs.mk. # @@ -45,11 +45,13 @@ MISSING_FEATURES+= ${_feature_} . endif .endfor -.if defined(USE_FEATURES) && !empty(USE_FEATURES:Mgetopt_long) -. if !exists(/usr/include/getopt.h) -MISSING_FEATURES+= getopt_long +.for _feature_ in getopt_long +. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_}) +. if !exists(/usr/include/getopt.h) +MISSING_FEATURES+= ${_feature_} +. endif . endif -.endif +.endfor .for _feature_ in getprogname setprogname . if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_}) @@ -59,31 +61,37 @@ MISSING_FEATURES+= ${_feature_} . endif .endfor -.if defined(USE_FEATURES) && !empty(USE_FEATURES:Mglob) -. if !exists(/usr/include/glob.h) -MISSING_FEATURES+= glob +.for _feature_ in glob +. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_}) +. if !exists(/usr/include/glob.h) +MISSING_FEATURES+= ${_feature_} +. endif . endif -.endif +.endfor -.if defined(USE_FEATURES) && !empty(USE_FEATURES:Mregex) -. if !exists(/usr/include/regex.h) -MISSING_FEATURES+= regex +.for _feature_ in regex +. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_}) +. if !exists(/usr/include/regex.h) +MISSING_FEATURES+= ${_feature_} +. endif . endif -.endif +.endfor .for _feature_ in snprintf vsnprintf . if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_}) . if !empty(LOWER_OPSYS:Mirix5*) -MISSING_FEATURES+= snprintf +MISSING_FEATURES+= ${_feature_} . endif . endif .endfor -.if defined(USE_FEATURES) && !empty(USE_FEATURES:Mutimes) -. if ${OPSYS} == "Interix" -MISSING_FEATURES+= utimes +.for _feature_ in utimes +. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_}) +. if ${OPSYS} == "Interix" +MISSING_FEATURES+= ${_feature_} +. endif . endif -.endif +.endfor .if defined(USE_FEATURES) && !empty(USE_FEATURES:Mnbcompat) MISSING_FEATURES+= nbcompat |