--- IO-AIO/Makefile.PL 2007/07/08 09:09:34 1.13 +++ IO-AIO/Makefile.PL 2018/08/25 19:55:48 1.38 @@ -1,41 +1,72 @@ +use Canary::Stability IO::AIO => 1, 5.008002; + use ExtUtils::MakeMaker; use Config; -require "autoconf.pm"; +if ($^O eq "MSWin32") { + # configuration on windows is hardcoded - as always -if ($^O =~ /win32/i or $^O =~ /mswin/) { + print STDERR <config.h" + or die "config.h: $!"; + print $fh < "./configure --prefix \Q$Config{prefixexp}\E" + and exit $? >> 8; + } } if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { @@ -44,7 +75,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), @@ -63,15 +94,23 @@ PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', COMPRESS => 'gzip -9v', SUFFIX => '.gz', - }, + }, + depend => { + "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 => "autoconf/config.h autoconf/config.log autoconf/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;