dougm       02/05/30 17:41:09

  Modified:    .        Makefile.PL
  Log:
  no longer support 5.7.x perl development versions
  
  Revision  Changes    Path
  1.85      +14 -4     modperl-2.0/Makefile.PL
  
  Index: Makefile.PL
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/Makefile.PL,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -r1.84 -r1.85
  --- Makefile.PL       23 May 2002 02:35:19 -0000      1.84
  +++ Makefile.PL       31 May 2002 00:41:08 -0000      1.85
  @@ -44,10 +44,7 @@
       }
   }
   
  -if ($] < 5.006001) {
  -    error "You are running Perl version $]\n" .
  -        "We strongly suggest to upgrade to at least 5.6.1";
  -}
  +perl_version_check();
   
   my $build = Apache::Build->new(init => 1);
   my $code  = ModPerl::Code->new;
  @@ -294,6 +291,19 @@
        last if /^=item/;
       }
       close $fh;
  +}
  +
  +sub perl_version_check {
  +    if ($] < 5.006_001) {
  +        error "You are running Perl version 5.6.0\n" .
  +          "We strongly suggest you upgrade to at least 5.6.1";
  +    }
  +
  +    if ($] >= 5.007 and $] < 5.008) {
  +        error "5.7.x development versions of Perl are no longer supported\n" .
  +          "Upgrade to 5.8.0 or higher";
  +        exit 1;
  +    }
   }
   
   sub system_sanity_check {
  
  
  


Reply via email to