tests/krb5: Add PK-INIT testing framework
[Samba.git] / third_party / popt / wscript
blobea655bb484c7fbc72d50aeeb0e8440e1e29d4adf
1 #!/usr/bin/env python
3 from waflib import Options
5 def configure(conf):
6 if conf.CHECK_POPT():
7 conf.define('USING_SYSTEM_POPT', 1)
8 return
10 conf.CHECK_HEADERS('float.h')
11 conf.CHECK_FUNCS('stpcpy')
12 conf.CHECK_LIB('iconv', shlib=True)
14 def build(bld):
15 if bld.CONFIG_SET('USING_SYSTEM_POPT'):
16 return
18 cflags = '-DPACKAGE="popt" -DPOPT_SYSCONFDIR="%s"' % bld.env.SYSCONFDIR
19 bld.SAMBA_LIBRARY('popt',
20 source='popt.c poptconfig.c popthelp.c poptint.c poptparse.c',
21 cflags=cflags,
22 deps='iconv',
23 allow_warnings=True,
24 private_library=True)