--- IO-AIO/Makefile.PL 2008/05/10 18:06:41 1.15 +++ IO-AIO/Makefile.PL 2018/08/12 05:21:35 1.35 @@ -1,33 +1,54 @@ +use Canary::Stability IO::AIO => 1, 5.008002; + use ExtUtils::MakeMaker; use Config; -if ($^O =~ /win32/i or $^O =~ /mswin/) { - +if ($^O eq "MSWin32") { # configuration on windows is hardcoded - as always - warn "your platform is not standards-compliant, you have to port this module first\n"; - warn "using some hardcoded config that will not work on your system\n"; + print STDERR <config.h" + or die "config.h: $!"; + print $fh < "cd libeio && ./configure --prefix \Q$Config{prefixexp}\E" + system $ENV{SHELL}, -c => "./configure --prefix \Q$Config{prefixexp}\E" and exit $? >> 8; } } @@ -59,7 +80,7 @@ *** *** WARNING: *** -*** Your perl uses it's own memory allocator (-Dusemymalloc=y), +*** Your perl uses its own memory allocator (-Dusemymalloc=y), *** which is known not to be threadsafe on GNU/Linux and probably *** other platforms (even when not used concurrently, it trashes *** the data structures of the system malloc running concurrently), @@ -78,18 +99,23 @@ PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', COMPRESS => 'gzip -9v', SUFFIX => '.gz', - }, + }, depend => { - "AIO.c" => "libeio/eio.h libeio/eio.c libeio/config.h", + "AIO.c" => "schmorp.h libeio/eio.h libeio/xthread.h libeio/etp.c libeio/eio.c config.h", }, NAME => "IO::AIO", VERSION_FROM => "AIO.pm", INC => $INC, LIBS => $LIBS, + EXE_FILES => ["bin/treescan"], PM => { - 'AIO.pm' => '$(INST_LIBDIR)/AIO.pm', - }, - clean => { FILES => "libeio/config.h libeio/config.log libeio/config.status" }, + 'AIO.pm' => '$(INST_LIB)/IO/AIO.pm', + }, + CONFIGURE_REQUIRES => { ExtUtils::MakeMaker => 6.52, Canary::Stability => 2001 }, + PREREQ_PM => { + "common::sense" => 0, + }, + clean => { FILES => "config.h libeio/config.h libeio/config.log libeio/config.status" }, }); $mm->flush;