waf: Only build smb_krb5_wrapper if we have CUPS
authorAndreas Schneider <asn@samba.org>
Tue, 26 Jan 2016 10:28:50 +0000 (11:28 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Feb 2016 11:07:22 +0000 (12:07 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 192f1516c378ae942d14921bfcc1e11173da36e6)

source3/wscript_build

index 657d79875c2e257d0f957914ebead34973e43fb8..ba670d35d8b64df44692c2177e0296569ca5ac03 100755 (executable)
@@ -1191,7 +1191,8 @@ bld.SAMBA3_BINARY('smbspool_krb5_wrapper',
                  deps='''
                  DYNCONFIG
                  cups
-                 ''')
+                 ''',
+                 enabled=bld.CONFIG_SET('HAVE_CUPS'))
 
 bld.SAMBA3_BINARY('testparm',
                  source='utils/testparm.c',