1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/third_party/popt/wscript
Alexander Bokovoy 7e2deed7c5 third_party/popt/wscript: update to handle waf 2.0.4
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-09-05 06:37:24 +02:00

25 lines
691 B
Python

#!/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)