Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

ModPerl::MM or ExtUtils::MakeMaker or what?

Torsten Foertsch

2008-04-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I am a bit confused about what MakeMaker is best to use with mp2 modules.
There is the good old ExtUtils::MakeMaker that is mentioned in
http://perl.apache.org/docs/general/testing/testing.html. How I got there I
don't remember but I have used in all my modules ModPerl::MM. Is that right?
Or should I rather port them to use the former?

I am asking because I have had FAIL reports from CPAN testers that don't
install ModPerl::MM. The way around these reports is using

BEGIN {
eval {
  require ModPerl::MM;
  require Apache::TestMM;
};
if( $@ ) {
  warn $@;
  exit 0;
}
Apache::TestMM->import( qw(test clean) );
}

instead of

use ModPerl::MM ();
use Apache::TestMM qw(test clean);

This way no Makefile is written and the automatic test suite is happy.

Torsten
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.