import sys, os, tempfile
sys.path.insert(0, srcdir+"/buildtools/wafsamba")
-import wafsamba, Options, samba_dist, Scripting, Utils, samba_version
+import wafsamba, Options, samba_dist, samba_git, Scripting, Utils, samba_version
samba_dist.DIST_DIRS('.')
conf.RECURSE('dynconfig')
if conf.CHECK_FOR_THIRD_PARTY():
- conf.RECURSE('third_party/zlib')
- conf.RECURSE('third_party/popt')
+ conf.RECURSE('third_party')
else:
if not conf.CHECK_ZLIB():
raise Utils.WafError('zlib development packages have not been found.\nIf third_party is installed, check that it is in the proper place.')
if not conf.CHECK_NEED_LC("-lc not needed"):
conf.ADD_LDFLAGS('-lc', testflags=False)
- # we don't want PYTHONDIR in config.h, as otherwise changing
- # --prefix causes a complete rebuild
- del(conf.env.defines['PYTHONDIR'])
- del(conf.env.defines['PYTHONARCHDIR'])
-
if not conf.CHECK_CODE('#include "tests/summary.c"',
define='SUMMARY_PASSES',
addmain=False,
if os.WEXITSTATUS(status):
raise Utils.WafError('ctags failed')
+
# putting this here enabled build in the list
# of commands in --help
def build(bld):
def main():
from samba_wildcard import wildcard_main
+
wildcard_main(wildcard_cmd)
Scripting.main = main
'''reconfigure if config scripts have changed'''
import samba_utils
samba_utils.reconfigure(ctx)
+
+
+if os.path.isdir(os.path.join(srcdir, ".git")):
+ # Check if there are submodules that are checked out but out of date.
+ for submodule, status in samba_git.read_submodule_status(srcdir):
+ if status == "out-of-date":
+ raise Utils.WafError("some submodules are out of date. Please run 'git submodule update'")