s4-waf: sanitize library names like the old build system did, only add
[samba.git] / lib / popt / wscript
1 #!/usr/bin/env python
2
3 import Options
4
5 def configure(conf):
6     conf.CHECK_HEADERS('float.h')
7
8     if conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h'):
9         conf.define('USING_SYSTEM_POPT', 1)
10
11 def build(bld):
12     if bld.CONFIG_SET('USING_SYSTEM_POPT'):
13         return
14
15     bld.SAMBA_LIBRARY('popt',
16                       source='findme.c popt.c poptconfig.c popthelp.c poptparse.c',
17                       cflags='-DDBL_EPSILON=__DBL_EPSILON__',
18                                           is_bundled=True,
19                       )