When MAN3PODS is forced to {} in a Makefile.PL, manpages should not be
Rafael Garcia-Suarez [Thu, 23 Mar 2006 22:13:13 +0000 (22:13 +0000)]
built from pods. This change fixes bleadperl compilation -- trying to
build manpages with miniperl causes a bootstrapping problem.

p4raw-id: //depot/perl@27592

lib/ExtUtils/MM_Unix.pm

index 1b4822b..5672c92 100644 (file)
@@ -19,7 +19,7 @@ use vars qw($VERSION @ISA
 use ExtUtils::MakeMaker qw($Verbose neatvalue);
 
 # $VERSION needs to stay numeric to avoid test warnings
-$VERSION = '1.5002';
+$VERSION = '1.5003';
 
 require ExtUtils::MM_Any;
 @ISA = qw(ExtUtils::MM_Any);
@@ -1312,6 +1312,8 @@ sub init_MANPODS {
            $self->{"BUILD${man}PODS"} = 0 if
               $self->{"INSTALL${man}DIR"} =~ /^(none|\s*)$/;
        }
+       $self->{"BUILD${man}PODS"} = 0 if
+           scalar(keys %{$self->{"${man}PODS"}}) == 0;
     }
 
     $self->init_MAN1PODS() if $self->{BUILDMAN1PODS};