--- Coro/Makefile.PL 2001/07/25 04:14:37 1.6 +++ Coro/Makefile.PL 2001/12/31 20:46:53 1.11 @@ -8,8 +8,7 @@ *** internals to do it's job. While it seems to work fine with perl-5.8, *** 5.7 and 5.6, it has not been tested with older versions. If it *** compiles and passes the testsuite, it should work. Otherwise you -*** should either upgrade or contact the author, maybe it can be made to -*** work... +*** should either upgrade or fix it ;) *** *** Marc Lehmann *** @@ -17,6 +16,8 @@ EOF } +$EVENT = eval { require Event }; + WriteMakefile( dist => { PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', @@ -25,10 +26,14 @@ }, NAME => "Coro", VERSION_FROM => "Coro.pm", - DIR => ['Coro'], + DIR => ['Coro', ($EVENT ? 'Event' : ())], PREREQ_PM => { - Event => 0.84, # yes, 0.83 and below have serious bugs + Event => 0.83, # still, 0.83 and below have serious bugs(!) + Scalar::Util => 0.00, }, + PM => { + 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', + }, ); sub MY::postamble {