6 opt.add_option('--with-included-popt',
7 help=("use bundled popt library, not from system"),
8 action="store_true", dest='INCLUDED_POPT', default=False)
11 conf.CHECK_HEADERS('float.h')
12 if not Options.options.INCLUDED_POPT:
13 if conf.CHECK_FUNCS_IN('poptGetContext', 'popt', headers='popt.h'):
14 conf.DEFINE('HAVE_SYSTEM_POPT', 1)
17 if not bld.CONFIG_SET('HAVE_SYSTEM_POPT'):
18 bld.SAMBA_SUBSYSTEM('LIBPOPT',
19 source='findme.c popt.c poptconfig.c popthelp.c poptparse.c',
20 cflags='-DDBL_EPSILON=__DBL_EPSILON__'
22 bld.TARGET_ALIAS('LIBPOPT', 'popt')
24 bld.TARGET_ALIAS('popt', 'LIBPOPT')