summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-11-12 16:14:33 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-11-13 18:06:06 +0100
commit5e8dee8d96a7522cdcde57dbbf93fbe9c614992e (patch)
tree3d3e4a8e41dbe3be41a592eac940cebb7296c9a5
parent8aa988a455f1165f59e19eb39f5fd2b0c39231f6 (diff)
downloadsamba-5e8dee8d96a7522cdcde57dbbf93fbe9c614992e.tar.gz
samba-5e8dee8d96a7522cdcde57dbbf93fbe9c614992e.tar.bz2
samba-5e8dee8d96a7522cdcde57dbbf93fbe9c614992e.zip
tevent: Only build pytevent if the system doesn't provide it.
-rw-r--r--lib/tevent/wscript13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/tevent/wscript b/lib/tevent/wscript
index 5e32eec48b..0d1653d5bc 100644
--- a/lib/tevent/wscript
+++ b/lib/tevent/wscript
@@ -38,6 +38,8 @@ def configure(conf):
if conf.CHECK_BUNDLED_SYSTEM('tevent', minversion=VERSION,
onlyif='talloc', implied_deps='replace talloc'):
conf.define('USING_SYSTEM_TEVENT', 1)
+ if conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytevent', 'tevent', minversion=VERSION):
+ conf.define('USING_SYSTEM_PYTEVENT', 1)
if conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'):
conf.DEFINE('HAVE_EPOLL', 1)
@@ -62,7 +64,7 @@ def build(bld):
SRC = '''tevent.c tevent_debug.c tevent_fd.c tevent_immediate.c
tevent_queue.c tevent_req.c tevent_select.c
- tevent_poll.c
+ tevent_poll.c
tevent_signal.c tevent_standard.c tevent_timed.c tevent_util.c tevent_wakeup.c'''
if bld.CONFIG_SET('HAVE_EPOLL'):
@@ -88,10 +90,11 @@ def build(bld):
pc_files='tevent.pc',
private_library=private_library)
- bld.SAMBA_PYTHON('pytevent',
- 'pytevent.c',
- deps='tevent',
- realname='_tevent.so')
+ if not bld.CONFIG_SET('USING_SYSTEM_PYTDB'):
+ bld.SAMBA_PYTHON('pytevent',
+ 'pytevent.c',
+ deps='tevent',
+ realname='_tevent.so')
def test(ctx):