use ExtUtils::MakeMaker; use Config; require "autoconf.pm"; if ($^O =~ /win32/i or $^O =~ /mswin/) { # configuration on windows is hardcoded - as always die "your platform is not standards-compliant, you have to port this module first\n";#d# } else { if ($^O =~ /freebsd/i) { print <new({ dist => { PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', COMPRESS => 'gzip -9v', SUFFIX => '.gz', }, NAME => "IO::AIO", VERSION_FROM => "AIO.pm", LIBS => ['-lpthread -lrt', '-lpthread', '-lpthreads', ''], PM => { 'AIO.pm' => '$(INST_LIBDIR)/IO/AIO.pm', }, clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, }); $mm->flush;