5 use ExtUtils::MakeMaker;
8 eval { require Config };
9 die 'OS unsupported' if $@;
10 Config->import(qw/%Config/);
11 eval { require File::Spec };
12 die 'OS unsupported' if $@;
15 # Inspired from Module::Install::Can
16 print "Checking for a valid C compiler in the PATH... ";
17 my @ccs = ($Config{cc});
18 unshift @ccs, $ENV{CC} if $ENV{CC};
19 my @path = File::Spec->path;
22 File::Spec->file_name_is_absolute($cc)
24 : map File::Spec->catfile($_, $cc), @path
29 if (-x $cc or MM->maybe_command($cc)) {
36 my $xs = 'Valgrind.xs';
37 (my $c = $xs) =~ s/\.xs$/.c/;
44 my $dist = 'Test-Valgrind';
50 'File::HomeDir' => '0.86',
53 'File::Temp' => '0.14', # OO interface
54 'Filter::Util::Call' => 0,
58 'Perl::Destruct::Level' => 0,
68 configure_requires => {
70 'ExtUtils::MakeMaker' => 0,
73 'ExtUtils::MakeMaker' => 0,
83 bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
84 homepage => "http://search.cpan.org/dist/$dist/",
85 license => 'http://dev.perl.org/licenses/',
86 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
91 NAME => 'Test::Valgrind',
92 AUTHOR => 'Vincent Pit <perl@profvince.com>',
94 VERSION_FROM => 'lib/Test/Valgrind.pm',
95 ABSTRACT_FROM => 'lib/Test/Valgrind.pm',
98 PREREQ_PM => \%PREREQ_PM,
99 MIN_PERL_VERSION => 5.006,
100 META_MERGE => \%META,
102 PREOP => 'pod2text lib/Test/Valgrind.pm > $(DISTVNAME)/README',
103 COMPRESS => 'gzip -9f', SUFFIX => 'gz',
106 FILES => "$dist-* Makefile.bak *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"