Fix header ifdef check for config-post.h in VPATH build

We must do a substring match, not an exact match since
there can be an arbitrary virtual path prepended.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2018-12-14 14:07:08 +00:00
parent 0aadf5ffe2
commit 1fb73537d7
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ while (<>) {
}
if ($mistake ||
$ARGV eq "config-post.h" ||
$ARGV =~ /config-post\.h$/ ||
$ARGV =~ /vbox_(CAPI|XPCOM)/) {
$state = $STATE_EOF;
next;