summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wscript
diff options
context:
space:
mode:
authorThomas Nagy <tnagy2pow10@gmail.com>2010-05-21 12:48:11 +0200
committerStefan Metzmacher <metze@samba.org>2010-05-21 13:59:55 +0200
commitab093ffe4637db65afb3779f592f20dd55f4e5f3 (patch)
tree6baa60acae3790c0bd9c64c759ba03e617e04f2a /buildtools/wafsamba/wscript
parent50b472a772edeb23ec97c3878054fb437db24f9b (diff)
downloadsamba-ab093ffe4637db65afb3779f592f20dd55f4e5f3.tar.gz
samba-ab093ffe4637db65afb3779f592f20dd55f4e5f3.tar.bz2
samba-ab093ffe4637db65afb3779f592f20dd55f4e5f3.zip
wafsamba: Disable the abi checks when gdb is not available
Try to find gdb during the configuration, if gdb is missing, disable the abi checks. Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'buildtools/wafsamba/wscript')
-rw-r--r--buildtools/wafsamba/wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index 56f2e60a5b..7bb2baa038 100644
--- a/buildtools/wafsamba/wscript
+++ b/buildtools/wafsamba/wscript
@@ -191,6 +191,10 @@ def configure(conf):
conf.env.ABI_CHECK = Options.options.ABI_CHECK or Options.options.developer
if Options.options.ABI_CHECK_DISABLE:
conf.env.ABI_CHECK = False
+ try:
+ conf.find_program('gdb', mandatory=True)
+ except:
+ conf.env.ABI_CHECK = False
conf.CHECK_COMMAND(['uname', '-a'],
msg='Checking build system',