From bada194851e0a6839f78e811bfc63c2d5e8877dc Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Thu, 5 Oct 2017 22:02:38 +1300 Subject: Make EV/Event not auto-compiled, but rely on configuration --- Makefile.PL | 51 ++++++++++----------------------------------------- 1 file changed, 10 insertions(+), 41 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index e58e210..25243ff 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -17,47 +17,16 @@ EOF print "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n\n"; -if (eval { require Event }) { - if ($Event::VERSION < 0.86 or $Event::VERSION == 0.88) { - print <VERSION(0.89); +}; +$EV and do { + require EV; + EV->VERSION(4.0); +}; WriteMakefile( dist => { -- 2.14.1