diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:20:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:20:00 +0000 |
commit | 8daa83a594a2e98f39d764422bfbdbc62c9efd44 (patch) | |
tree | 4099e8021376c7d8c05bdf8503093d80e9c7bad0 /third_party/popt/wscript | |
parent | Initial commit. (diff) | |
download | samba-8daa83a594a2e98f39d764422bfbdbc62c9efd44.tar.xz samba-8daa83a594a2e98f39d764422bfbdbc62c9efd44.zip |
Adding upstream version 2:4.20.0+dfsg.upstream/2%4.20.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/popt/wscript')
-rw-r--r-- | third_party/popt/wscript | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/third_party/popt/wscript b/third_party/popt/wscript new file mode 100644 index 0000000..ea655bb --- /dev/null +++ b/third_party/popt/wscript @@ -0,0 +1,24 @@ +#!/usr/bin/env python + +from waflib import Options + +def configure(conf): + if conf.CHECK_POPT(): + conf.define('USING_SYSTEM_POPT', 1) + return + + conf.CHECK_HEADERS('float.h') + conf.CHECK_FUNCS('stpcpy') + conf.CHECK_LIB('iconv', shlib=True) + +def build(bld): + if bld.CONFIG_SET('USING_SYSTEM_POPT'): + return + + cflags = '-DPACKAGE="popt" -DPOPT_SYSCONFDIR="%s"' % bld.env.SYSCONFDIR + bld.SAMBA_LIBRARY('popt', + source='popt.c poptconfig.c popthelp.c poptint.c poptparse.c', + cflags=cflags, + deps='iconv', + allow_warnings=True, + private_library=True) |