libcli/named_pipe_auth: we need to hide length of the message mode header from the...
[Samba/gebeck_regimport.git] / source3 / build / wscript
bloba4df794f3a1cf0d3b5ebca1b27f71dad0503ffa0
1 #!/usr/bin/env python
3 import Options
4 from dynconfig import *
6 def set_options(opt):
7 # get all the basic GNU options from the gnu_dirs tool
8 opt.tool_options('gnu_dirs')
9 for option in dir_options.keys():
10 default = dir_options[option][0]
11 help = dir_options[option][1]
12 varname = get_varname(option)
13 opt.add_option('--%s' % option,
14 help=(help + ' [%s]' % default),
15 action="store", dest=varname, default=default)
17 def configure(conf):
18 # get all the basic GNU options from the gnu_dirs tool
19 conf.check_tool('gnu_dirs')
20 for option in dir_options.keys():
21 varname = get_varname(option)
22 value = getattr(Options.options, varname, None)
23 conf.ASSERT(value is not None, "Missing configure option %s" % varname)
24 conf.ASSERT(varname not in conf.env, "Variable %s already defined" % varname)
25 conf.env[varname] = value
27 def build(bld):
28 cflags = dynconfig_cflags(bld)
29 bld.SAMBA_SUBSYSTEM('DYNCONFIG',
30 '../dynconfig.c',
31 deps='replace talloc tdb',
32 cflags=cflags)