summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-19 19:56:08 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:55 +1000
commit5025ca10c6845af888a80a57a012c19fde6482ae (patch)
tree8efbce4672d77ae14f1094625ebfc5bfba7eaa56
parent6f15ea31c2a484273303d0d451eabeeaad71809e (diff)
downloadsamba-5025ca10c6845af888a80a57a012c19fde6482ae.tar.gz
samba-5025ca10c6845af888a80a57a012c19fde6482ae.tar.bz2
samba-5025ca10c6845af888a80a57a012c19fde6482ae.zip
build: added --enable-gccdeps option
off by default, for maximum portability
-rw-r--r--lib/replace/wscript12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 9b4aa6d9fe..20d757cb8f 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -26,6 +26,9 @@ def set_options(opt):
opt.add_option('--enable-developer',
help=("Turn on developer warnings and debugging"),
action="store_true", dest='developer', default=False)
+ opt.add_option('--enable-gccdeps',
+ help=("Enable use gcc -MD dependency module"),
+ action="store_true", dest='enable_gccdeps', default=False)
opt.add_option('--timestamp-dependencies',
help=("use file timestamps instead of content for build dependencies (BROKEN)"),
action="store_true", dest='timestamp_dependencies', default=False)
@@ -57,8 +60,10 @@ def configure(conf):
os.environ['CC'] = os.environ.get('CC').strip()
conf.check_tool('compiler_cc')
- # gccdeps can be useful for debugging recursion in #include lines
- conf.check_tool('gccdeps', tooldir=conf.srcdir + "/buildtools/wafsamba")
+
+ if Options.options.enable_gccdeps:
+ # don't enable gccdeps by default as it needs a very recent version gcc
+ conf.check_tool('gccdeps', tooldir=conf.srcdir + "/buildtools/wafsamba")
# make the install paths available in environment
conf.env.LIBDIR = Options.options.LIBDIR
@@ -322,7 +327,8 @@ def build(bld):
bld.SAMBA_BINARY('replace_testsuite',
TEST_SOURCES,
- deps='replace')
+ deps='replace',
+ install=False)
NET_SOURCES = []
if bld.CONFIG_SET('HAVE_INET_NTOA'): NET_SOURCES.append('inet_ntoa.c')