diff options
| author | Ira Cooper <ira@samba.org> | 2014-07-23 00:17:30 -0700 |
|---|---|---|
| committer | Ira Cooper <ira@samba.org> | 2014-08-09 18:26:17 +0200 |
| commit | 8cc966747df8531eb0afc8870dac29a306fb4352 (patch) | |
| tree | 73b5933ed72c61361103402ec9f481c51d3d7c3e /third_party/popt/wscript | |
| parent | b08cbc64c00d563738c45a701d4a7a7fd371e63f (diff) | |
| download | samba-8cc966747df8531eb0afc8870dac29a306fb4352.tar.gz samba-8cc966747df8531eb0afc8870dac29a306fb4352.tar.xz samba-8cc966747df8531eb0afc8870dac29a306fb4352.zip | |
third_party/popt: Initial copy of popt.
Signed-off-by: Ira Cooper <ira@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'third_party/popt/wscript')
| -rw-r--r-- | third_party/popt/wscript | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/third_party/popt/wscript b/third_party/popt/wscript new file mode 100644 index 0000000000..d622841890 --- /dev/null +++ b/third_party/popt/wscript @@ -0,0 +1,19 @@ +#!/usr/bin/env python + +import Options + +def configure(conf): + conf.CHECK_HEADERS('float.h') + + if conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h'): + conf.define('USING_SYSTEM_POPT', 1) + +def build(bld): + if bld.CONFIG_SET('USING_SYSTEM_POPT'): + return + + bld.SAMBA_LIBRARY('popt', + source='findme.c popt.c poptconfig.c popthelp.c poptparse.c', + cflags='-DDBL_EPSILON=__DBL_EPSILON__', + allow_warnings=True, + private_library=True) |
