pidl-waf: Install pidl modules to the perl vendorlib directory.
authorAndreas Schneider <asn@samba.org>
Fri, 28 Feb 2014 14:53:10 +0000 (15:53 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 6 Mar 2014 08:59:45 +0000 (09:59 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
pidl/lib/wscript_build
pidl/wscript

index eb5f1e0c3792e03ad57aaf51eff496b91eb31ce3..67223a8fc294a5a1942e23b3a438b4f009d47a24 100644 (file)
@@ -1,4 +1,4 @@
 #!/usr/bin/env python
 
 # install the pidl modules
-bld.INSTALL_WILDCARD('${DATAROOTDIR}/perl5', '**/*.pm', flat=False)
+bld.INSTALL_WILDCARD(bld.env.PERL_VENDORLIB_DIR, '**/*.pm', flat=False)
index 05d9982adfecf44c79f44fd28e26dcb735c6561e..77abb019de9bd5675c37ad1c8d3f969dc51a0b6d 100644 (file)
@@ -8,6 +8,8 @@ def set_options(opt):
 
 def configure(conf):
     conf.check_tool('perl')
+    conf.check_perl_ext_devel()
+
     # we need a recent version of MakeMaker to get the right man page names
     if conf.CHECK_PERL_MANPAGE():
         conf.env.PERLMAN1EXT = conf.CHECK_PERL_MANPAGE(section='1')