build: do full SAMBA_CHECK_PERL() check in configure
authorMichael Adam <obnox@samba.org>
Mon, 25 Aug 2014 23:31:17 +0000 (01:31 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 18 Nov 2014 20:09:04 +0000 (21:09 +0100)
...instead of only checking for the perl binary

This autodetects PERL_LIB_INSTALL_DIR and removes the
need of the --with-perl-lib-install-dir when using a --prefix!=/usr.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10472

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 7bf9e937ae59e10a9b40be3a60ffaad49669fb83)

wscript

diff --git a/wscript b/wscript
index 087e950af516e5bcb8d18b1325ae9d1eabf84719..85620d6ab6e41f3b9999167c5250aa5f15d819fd 100644 (file)
--- a/wscript
+++ b/wscript
@@ -90,7 +90,7 @@ def configure(conf):
 
     conf.RECURSE('lib/replace')
 
-    conf.find_program('perl', var='PERL', mandatory=True)
+    conf.SAMBA_CHECK_PERL(mandatory=True)
     conf.find_program('xsltproc', var='XSLTPROC')
 
     conf.SAMBA_CHECK_PYTHON(mandatory=True)