--- IO-AIO/Makefile.PL 2006/02/01 23:43:17 1.8 +++ IO-AIO/Makefile.PL 2009/06/07 22:37:54 1.19 @@ -1,11 +1,26 @@ +use v5.8.8; + use ExtUtils::MakeMaker; use Config; -require "autoconf.pm"; +if ($^O =~ /win32/i or $^O =~ /mswin/) { -if ($^O =~ /freebsd/i) { - print < "./configure --prefix \Q$Config{prefixexp}\E" + and exit $? >> 8; + } } -autoconf::run_script() - and die "\nconfigure failed, check it's output above and autoconf/config.log\n\n"; +if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { + print <new({ dist => { @@ -28,10 +80,18 @@ COMPRESS => 'gzip -9v', SUFFIX => '.gz', }, + depend => { + "AIO.c" => "libeio/eio.h libeio/xthread.h libeio/eio.c libeio/config.h", + }, NAME => "IO::AIO", VERSION_FROM => "AIO.pm", - LIBS => ['-lpthread -lrt', '-lpthread', '-lpthreads', ''], - clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, + 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" }, }); $mm->flush;