add IO-1.20; mess with t/lib/io_*.t in an attempt to
[p5sagit/p5-mst-13.2.git] / ext / IO / Makefile.PL
1 use ExtUtils::MakeMaker;
2 use Config qw(%Config);
3
4 #--- Attempt to find <poll.h>
5
6 my $define = "";
7
8 my @inc = split(/\s+/, join(" ",$Config{'usrinc'},$Config{'incpth'},$Config{'locincpth'}));
9 foreach $path (@inc) {
10     if(-f $path . "/poll.h") {
11         $define .= "-DI_POLL ";
12         last;
13     }
14 }
15
16 #--- Write the Makefile
17
18 WriteMakefile(
19         VERSION_FROM    => "IO.pm",
20         NAME            => "IO",
21         OBJECT          => '$(O_FILES)', 
22         DEFINE          => $define,
23         MAN3PODS        => {},          # Pods will be built by installman.
24 );