buildtools: Add perl vendorlib configure option.
authorAndreas Schneider <asn@samba.org>
Fri, 28 Feb 2014 14:50:02 +0000 (15:50 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 6 Mar 2014 08:59:43 +0000 (09:59 +0100)
After this patch has been pushed, we need to change autobuild to compile
with this option or we will not be able to install pidl.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
buildtools/wafadmin/Tools/perl.py

index 99e0540ca3a3f0573b5291df01bf89bd104c8e54..8f13e2892714b6a6f745a8a9e47ceb110548d34a 100644 (file)
@@ -103,6 +103,11 @@ def check_perl_ext_devel(conf):
        else:
                conf.env.PERL_VENDORARCH_DIR = read_out('print $Config{vendorarch}')[0]
 
+       if getattr(Options.options, 'perl_vendorlib_dir', None):
+               conf.env.PERL_VENDORLIB_DIR = Options.options.perl_vendorlib_dir
+       else:
+               conf.env.PERL_VENDORLIB_DIR = read_out('print $Config{vendorlib}')[0]
+
 def set_options(opt):
        opt.add_option("--with-perl-binary", type="string", dest="perlbinary", help = 'Specify alternate perl binary', default=None)
 
@@ -112,3 +117,8 @@ def set_options(opt):
                       help = ('Specify directory where to install arch specific files'),
                       default=None)
 
+       opt.add_option("--with-perl-vendorlib",
+                      type="string",
+                      dest="perl_vendorlib_dir",
+                      help = ('Specify directory where to install vendor specific files'),
+                      default=None)