1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/lib/nss_wrapper/wscript
Jelmer Vernooij 2933fac7c7 s4: Rename NSS_WRAPPER to nss_wrapper.
Only link to nss_wrapper when it is enabled.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Oct 23 23:05:44 UTC 2010 on sn-devel-104
2010-10-23 23:05:43 +00:00

18 lines
528 B
Python

#!/usr/bin/env python
import Options
def set_options(opt):
gr = opt.option_group('developer options')
gr.add_option('--enable-nss-wrapper',
help=("Turn on nss wrapper library (default=no)"),
action="store_true", dest='enable_nss_wrapper', default=False)
def configure(conf):
if (Options.options.enable_nss_wrapper or
Options.options.developer or
Options.options.enable_selftest):
conf.DEFINE('NSS_WRAPPER', 1)
conf.ADD_GLOBAL_DEPENDENCY('nss_wrapper')