X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=fae4a206a8198215add4487cd9861f68942ea52e;hb=387f80220829f113007b021a7cbfa7e6bb209f01;hp=b6b5963582367eee39d3a7973c4ad05a30ac4e6f;hpb=187178315869b7862b5fcdf1cc6314aea87d0033;p=p5sagit%2Flocal-lib.git diff --git a/Makefile.PL b/Makefile.PL index b6b5963..fae4a20 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -214,22 +214,19 @@ unless ($ENV{PERL5_CPANM_IS_RUNNING}) { if (!$@ ) { CPAN::HandleConfig->require_myconfig_or_config; if ( $CPAN::Config ) { - for my $eumm_setting ( qw/makepl_arg make_install_arg/ ) { - if ($CPAN::Config->{$eumm_setting} =~ /(?:PREFIX|INSTALL_BASE)/) { + for my $setting (qw( + makepl_arg make_install_arg + mbuild_arg mbuild_install_arg mbuildpl_arg + )) { + my $value = $CPAN::Config->{$setting} or next; + if ($setting =~ /^make/ + ? $value =~ /(?:PREFIX|INSTALL_BASE)/ + : /(?:--prefix|--install_base)/ + ) { die <<"DEATH"; -WHOA THERE! It looks like you've got $CPAN::Config->{$eumm_setting} set. This is -known to cause problems with local::lib. Please either remove this setting or -clear out your .cpan directory. -DEATH - } - } - - for my $mb_setting (qw/mbuild_arg mbuild_install_arg mbuildpl_arg/) { - if ($CPAN::Config->{$mb_setting} =~ /(?:--prefix|--install_base)/) { - die <<"DEATH"; -WHOA THERE! It looks like you've got $CPAN::Config->{$mb_setting} set. This is -known to cause problems with local::lib. Please either remove this setting or -clear out your .cpan directory. +WHOA THERE! It looks like you've got $CPAN::Config->{$setting} set in +your CPAN config. This is known to cause problems with local::lib. Please +either remove this setting or clear out your .cpan directory. DEATH } }