};
WriteMakefile(
+ FULLPERL => "PSPP_TEST_CMD=\"$Locations{BuildDir}/src/ui/terminal/pspp -B $Locations{SourceDir}/config\" \$(PERL)",
NAME => 'PSPP',
DISTNAME => 'PSPP-Perl',
VERSION_FROM => "$Locations{BuildDir}/src/libpspp/version.c",
(ABSTRACT_FROM => 'lib/PSPP.pm', # retrieve abstract from module
AUTHOR => 'John Darrington <john@darrington.wattle.id.au>') : ()),
INC => "-I $Locations{SourceDir} -I $Locations{SourceDir}/src -I $Locations{SourceDir}/gl -I $Locations{BuildDir}/gl -I $Locations{BuildDir}",
-
MYEXTLIB => "$Locations{BuildDir}/src/.libs/libpspp-core\$(LIB_EXT)",
MAN3PODS => {"lib/PSPP.pm", "\$(INST_MAN3DIR)/PSPP.3pm",
"Examples.pod", "\$(INST_MAN3DIR)/PSPP::Examples.3pm"}
return ! diff ("$file", \$pattern);
}
+my $pspp_cmd = $ENV{PSPP_TEST_CMD};
+
+if ( ! $pspp_cmd)
+{
+ $pspp_cmd="pspp";
+}
+
sub run_pspp_syntax
{
my $tempdir = shift;
print FH "$syntax";
close (FH);
- system ("cd $tempdir; pspp -o raw-ascii $syntaxfile");
+ system ("cd $tempdir; $pspp_cmd -o raw-ascii $syntaxfile");
}
sub run_pspp_syntax_cmp