From a22d7db30813127690d5c3758e7abfa8805e76c9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 31 May 2010 20:44:30 +0200 Subject: wafsamba: Only try to build manpages if XSLTPROC was actually found. --- buildtools/wafsamba/wafsamba.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buildtools') diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index a9b81f4918..13f3f8cd93 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -213,7 +213,7 @@ def SAMBA_LIBRARY(bld, libname, source, if pc_files is not None: bld.PKG_CONFIG_FILES(pc_files, vnum=vnum) - if manpages is not None and 'XSLTPROC' in bld.env: + if manpages is not None and 'XSLTPROC' in bld.env and bld.env['XSLTPROC']: bld.MANPAGES(manpages) @@ -304,7 +304,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 'XSLTPROC' in bld.env: + if manpages is not None and 'XSLTPROC' in bld.env and bld.env['XSLTPROC']: bld.MANPAGES(manpages) Build.BuildContext.SAMBA_BINARY = SAMBA_BINARY -- cgit