# This -*- perl -*- script writes the Makefile for LWP::Parallel # $Id: Makefile.PL,v 1.14 2004/02/10 15:19:10 langhein Exp $ use ExtUtils::MakeMaker; print "Checking your version of libwww..."; my $required = "5.64"; my $supported = "6.04"; my $version; eval { require LWP; $version = LWP->Version; $version >= $required or die "\nLWP::Parallel only works with versions of libwww $required or greater.\nYou seem to have only version $version installed on your system. If you can\nnot or do not want to upgrade to a later version of libwww you should check\nCPAN for an earlier version of this software that might support it.\n"; $version <= $supported or warn <=$required) of the LWP package before you can proceed. The latest version of libwww-perl should always be available from: http://www.linpro.no/lwp/ The library is also available from the Comprehensive Perl Archive Network (CPAN). Visit to find a CPAN site near you. PS: If you _do_ have the libwww-perl library installed, then this script was unable to find it. Either figure out why this happens, or go ahead and edit Makefile.PL to disable the version check (no, this is not recommended) :-) EOT exit; # No need to go on } else { if ($version < $supported) { print " ok ($version)\nNote: you can upgrade to $supported (although ParallelUA should work ok)\n"; } else { print " ok\n"; } } # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( 'NAME' => 'LWP::Parallel', 'DISTNAME' => 'ParallelUserAgent', 'VERSION_FROM' => 'lib/LWP/Parallel.pm', # finds $VERSION # # automated testing on 5.16.2 gave errors at make test; not able to find # LWP::Protocol::http10. Repeated a reduced version of the # test with https and it needed IO::Socket::SSL and LWP::Protocol::https10. # # I don't know any of the actual # required version numbers here. This is a start on # getting the problem fixed, though. # 'PREREQ_PM' => { 'LWP' => 0, 'LWP::Protocol::http10' => 0, 'IO::Socket::SSL' => 0, 'LWP::Protocol::https10' => 0, }, ); package MY; sub test { q( test: all $(FULLPERL) t/TEST ); }