wafsamba: Correctly detect if bld.env.XSLTPROC is not set
authorKai Blin <kai@samba.org>
Mon, 31 May 2010 07:39:44 +0000 (09:39 +0200)
committerKai Blin <kai@samba.org>
Mon, 31 May 2010 07:40:14 +0000 (09:40 +0200)
This fixes the build on some build farm hosts and my machine.

Jelmer, please check.

buildtools/wafsamba/wafsamba.py

index eb5aa91d2d726760c6061798910376f52b9b5d52..41b866d05ca1e2c6c7695d1340ee4d64a9882f64 100644 (file)
@@ -299,7 +299,7 @@ def SAMBA_BINARY(bld, binname, source,
     if subsystem_name is not None:
         bld.TARGET_ALIAS(subsystem_name, binname)
 
-    if manpages is not None and bld.env.XSLTPROC is not None:
+    if manpages is not None and 'XSLTPROC' in bld.env:
         bld.env.MAN_XSL = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl'
         for m in manpages.split():
             source = m + '.xml'