diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-13 21:20:52 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-13 23:03:27 +1000 |
commit | 483d059c8e08473c9c9b27025bfb80f0d6b89c4a (patch) | |
tree | 607a9fa99ce8e57b4501a7c63c6758c0c95435ca /lib | |
parent | be813ff2d4a8d85eccc641f0d0739b31f4fdb964 (diff) | |
download | samba-483d059c8e08473c9c9b27025bfb80f0d6b89c4a.tar.gz samba-483d059c8e08473c9c9b27025bfb80f0d6b89c4a.tar.bz2 samba-483d059c8e08473c9c9b27025bfb80f0d6b89c4a.zip |
tevent-waf: added man page and pkgconfig file
this allows libtevent to build under rpmbuild
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tevent/wscript | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/tevent/wscript b/lib/tevent/wscript index 4244db1a6f..c90ed7a090 100644 --- a/lib/tevent/wscript +++ b/lib/tevent/wscript @@ -27,9 +27,12 @@ def configure(conf): conf.RECURSE('lib/replace') conf.RECURSE('lib/talloc') - if conf.CHECK_BUNDLED_SYSTEM('tevent', minversion=VERSION, - onlyif='talloc', implied_deps='replace talloc'): - conf.define('USING_SYSTEM_TEVENT', 1) + conf.env.standalone_tevent = conf.IN_LAUNCH_DIR() + + if not conf.env.standalone_tevent: + if conf.CHECK_BUNDLED_SYSTEM('tevent', minversion=VERSION, + onlyif='talloc', implied_deps='replace talloc'): + conf.define('USING_SYSTEM_TEVENT', 1) if conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'): conf.DEFINE('HAVE_EPOLL', 1) @@ -54,6 +57,11 @@ def build(bld): enabled= not bld.CONFIG_SET('USING_SYSTEM_TEVENT'), vnum=VERSION) + if bld.env.standalone_tevent: + bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig' + bld.PKG_CONFIG_FILES('tevent.pc', vnum=VERSION) + bld.INSTALL_FILES('${INCLUDEDIR}', 'tevent.h') + def test(ctx): '''test tevent''' print("The tevent testsuite is part of smbtorture in samba4") |