From: Vincent Pit Date: Fri, 2 Nov 2012 01:23:14 +0000 (-0200) Subject: Simplify Config loading in Makefile.PL X-Git-Tag: v0.13~36 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=commitdiff_plain;h=bb0e678043b356499d78475dc3825d9c9c2d192d Simplify Config loading in Makefile.PL Also add it to configure_requires and build_requires. --- diff --git a/Makefile.PL b/Makefile.PL index 6064175..e7593bc 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,12 +4,7 @@ use strict; use warnings; use ExtUtils::MakeMaker; -BEGIN { - local $@; - eval { require Config }; - die 'OS unsupported' if $@; - Config->import(qw<%Config>); -} +use Config; my @DEFINES; my %macro; @@ -60,9 +55,11 @@ my %PREREQ_PM = ( my %META = ( configure_requires => { + 'Config' => 0, 'ExtUtils::MakeMaker' => 0, }, build_requires => { + 'Config' => 0, 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, 'constant' => 0,