tevent: fix --disable-python cause configure fails (bug #8718)
authorGalen.Liu <galen.gang.liu@gmail.com>
Mon, 4 Feb 2013 06:43:01 +0000 (07:43 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Mar 2013 09:48:37 +0000 (10:48 +0100)
When we disable python, it will cause build fail!
so, the patch will fix it.

Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/tevent/wscript

index c62c3de31735625ec4e34fd25ff63081553a4de2..71b1f61673828355c608a7c1490e2157754f3501 100755 (executable)
@@ -109,7 +109,7 @@ def build(bld):
                           pc_files='tevent.pc',
                           private_library=private_library)
 
-    if not bld.CONFIG_SET('USING_SYSTEM_PYTEVENT'):
+    if not bld.CONFIG_SET('USING_SYSTEM_PYTEVENT') and not bld.env.disable_python:
         bld.SAMBA_PYTHON('pytevent',
                          'pytevent.c',
                          deps='tevent',