|
@@ -1790,14 +1790,24 @@ sub checkmakefile {
|
|
|
}
|
|
|
if (!grep(/^$i$/, (@mopt, @popt))) {
|
|
|
if ($whole !~ /\n${i}_($m)(_\w+)?(.)?=[^\n]+/ and $whole !~ /\n[-\w]+-${i}-(on|off):\n/) {
|
|
|
- if (!$slaveport) {
|
|
|
- &perror("WARN", $file, -1, "$i is listed in ".
|
|
|
- "OPTIONS_DEFINE, but no PORT_OPTIONS:M$i appears.");
|
|
|
- } else {
|
|
|
- &perror("WARN", $file, -1, "$i is listed in ".
|
|
|
- "OPTIONS_DEFINE, but no PORT_OPTIONS:M$i appears ".
|
|
|
- "in this slave Makefile. Make sure it appears in ".
|
|
|
- "the master's Makefile.");
|
|
|
+ my $found_opt_use = 0;
|
|
|
+ foreach my $oarg ('BUILD_DEPENDS', 'RUN_DEPENDS', 'LIB_DEPENDS') {
|
|
|
+ my $oarg_var = &get_makevar("${i}_${oarg}");
|
|
|
+ if ($oarg_var ne "") {
|
|
|
+ $found_opt_use = 1;
|
|
|
+ last;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!$found_opt_use) {
|
|
|
+ if (!$slaveport) {
|
|
|
+ &perror("WARN", $file, -1, "$i is listed in ".
|
|
|
+ "OPTIONS_DEFINE, but no PORT_OPTIONS:M$i appears.");
|
|
|
+ } else {
|
|
|
+ &perror("WARN", $file, -1, "$i is listed in ".
|
|
|
+ "OPTIONS_DEFINE, but no PORT_OPTIONS:M$i appears ".
|
|
|
+ "in this slave Makefile. Make sure it appears in ".
|
|
|
+ "the master's Makefile.");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|