X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=Makefile.PL;h=54fca1e047e5cc76bf09a3185a9868237c2ebfb8;hb=3609d7b6848ab3554b7e5a7c67745afd04d1a6df;hp=c2dca8ed2bf6b9fc05b5d4a8447e277087d48b88;hpb=f88f5efad030281b1d1f47fa9e87d1236406f945;p=linux-seccomp.git diff --git a/Makefile.PL b/Makefile.PL index c2dca8e..54fca1e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,10 +1,6 @@ use 5.014000; -use Devel::CheckLib; use ExtUtils::MakeMaker; -check_lib_or_exit - lib => 'seccomp'; - WriteMakefile( NAME => 'Linux::Seccomp', VERSION_FROM => 'lib/Linux/Seccomp.pm', @@ -13,12 +9,8 @@ WriteMakefile( MIN_PERL_VERSION => '5.14.0', LICENSE => 'perl', SIGN => 1, - CONFIGURE_REQUIRES => { - qw/Devel::CheckLib 0 - ExtUtils::MakeMaker 0/, - }, PREREQ_PM => {}, - LIBS => ['-lseccomp'], + INC => '-Ilibseccomp/include', MYEXTLIB => 'libseccomp/src/.libs/libseccomp$(LIB_EXT)', clean => { FILES => 'libseccomp/src/.libs/libseccomp$(LIB_EXT)' }, META_ADD => { @@ -31,8 +23,8 @@ WriteMakefile( sub MY::postamble { ' -$(MYEXTLIB): libseccomp/configure - cd libseccomp && ./configure && `which gmake || echo $(MAKE)` all +$(MYEXTLIB): libseccomp/configure.ac libseccomp/Makefile.am libseccomp/autogen.sh + cd libseccomp && ./autogen.sh && ./configure && `which gmake || echo $(MAKE)` all ' }