From: Daniel P. Berrangé Date: Fri, 14 Dec 2018 14:07:08 +0000 (+0000) Subject: Fix header ifdef check for config-post.h in VPATH build X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1fb73537d764636ce66724173a8a9fe200d35713;p=libvirt.git 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é --- diff --git a/build-aux/header-ifdef.pl b/build-aux/header-ifdef.pl index 74b4c0246b..ccabf14055 100644 --- a/build-aux/header-ifdef.pl +++ b/build-aux/header-ifdef.pl @@ -85,7 +85,7 @@ while (<>) { } if ($mistake || - $ARGV eq "config-post.h" || + $ARGV =~ /config-post\.h$/ || $ARGV =~ /vbox_(CAPI|XPCOM)/) { $state = $STATE_EOF; next;