This showed a problem when running the test out-of-tree, so
an include path is now being added to pick up the generated
curlbuild.h file.
</name>
<command type="perl">
-%SRCDIR/symbol-scan.pl %SRCDIR/..
+%SRCDIR/symbol-scan.pl %SRCDIR/.. ../include/curl
</command>
</client>
# we may get the dir root pointed out
my $root=$ARGV[0] || ".";
+# need an include directory when building out-of-tree
+my $i=$ARGV[1];
+$i="-I$i " if $i;
+
my $h = "$root/include/curl/curl.h";
my $mh = "$root/include/curl/multi.h";
my $summary=0;
my $misses=0;
-open H_IN, "-|", "cpp " . $h;
+open H_IN, "-|", "cpp $i$h" || die "Cannot preprocess curl.h";
while ( <H_IN> ) {
if ( /enum\s+(\S+\s+)?{/ .. /}/ ) {
s/^\s+//;
push @syms, $_;
}
}
-close H_IN;
+close H_IN || die "Error preprocessing curl.h";
+
sub scanheader {
my ($f)=@_;
open H, "<$f";