9 sys.path.insert(0, srcdir+"/buildtools/wafsamba")
12 LIBREPLACE_DIR= srcdir + '/lib/replace'
13 LIBTALLOC_DIR= srcdir + '/lib/talloc'
16 opt.recurse(LIBREPLACE_DIR)
17 opt.recurse(LIBTALLOC_DIR)
20 conf.sub_config(LIBREPLACE_DIR)
21 conf.sub_config(LIBTALLOC_DIR)
23 if conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'):
24 conf.DEFINE('HAVE_EPOLL', 1)
29 bld.BUILD_SUBDIR(LIBREPLACE_DIR)
30 bld.BUILD_SUBDIR(LIBTALLOC_DIR)
32 SRC = '''tevent.c tevent_debug.c tevent_fd.c tevent_immediate.c
33 tevent_queue.c tevent_req.c tevent_select.c
34 tevent_signal.c tevent_standard.c tevent_timed.c tevent_util.c tevent_wakeup.c'''
36 if bld.CONFIG_SET('HAVE_EPOLL'):
37 SRC += ' tevent_epoll.c'
39 bld.SAMBA_LIBRARY('tevent',
41 deps='replace talloc',