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