use strict;
use Module::Build;
die "You don't seem to have glib installed (couldn't run glib-config --version), stopping\n"
unless `glib-config --version`;
my $build = Module::Build->new(
module_name => "Devel::LeakTrace",
dynamic_config => 1,
license => 'perl',
requires => {
'Module::Build' => '0.19', # xs
'Test::More' => 0,
},
extra_compiler_flags => ''.`glib-config --cflags`,
extra_linker_flags => ''.`glib-config --libs`,
create_makefile_pl => 'passthrough',
);
$build->create_build_script;
syntax highlighted by Code2HTML, v. 0.9.1