mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
c529317fe2
Avoid linking against socket_wrapper outside of developer mode. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 21 20:26:11 UTC 2010 on sn-devel-104
16 lines
537 B
Python
16 lines
537 B
Python
#!/usr/bin/env python
|
|
|
|
import Options
|
|
|
|
def set_options(opt):
|
|
gr = opt.option_group('developer options')
|
|
gr.add_option('--enable-socket-wrapper',
|
|
help=("Turn on socket wrapper library (default=no)"),
|
|
action="store_true", dest='enable_socket_wrapper', default=False)
|
|
|
|
def configure(conf):
|
|
if (Options.options.enable_socket_wrapper or Options.options.developer or Options.options.enable_selftest):
|
|
conf.DEFINE('SOCKET_WRAPPER', 1)
|
|
conf.ADD_GLOBAL_DEPENDENCY('socket_wrapper')
|
|
|