summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-06-17 22:41:57 +0200
committerKai Blin <kai@samba.org>2010-06-20 09:34:28 +0200
commitfa3e50fee421a7fe407510627e0fdbcd5f4013c0 (patch)
treecb706e5f4c91c3c47b291836303e7d6c8bd23419
parent1f07f53827908d48e50b018c50e97de4740b740b (diff)
downloadsamba-fa3e50fee421a7fe407510627e0fdbcd5f4013c0.tar.gz
samba-fa3e50fee421a7fe407510627e0fdbcd5f4013c0.tar.bz2
samba-fa3e50fee421a7fe407510627e0fdbcd5f4013c0.zip
build: Allow for a custom message in CHECK_C_PROTOTYPE
-rw-r--r--buildtools/wafsamba/samba_conftests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_conftests.py b/buildtools/wafsamba/samba_conftests.py
index a5c1b389ae..c95a88791b 100644
--- a/buildtools/wafsamba/samba_conftests.py
+++ b/buildtools/wafsamba/samba_conftests.py
@@ -34,17 +34,19 @@ def CHECK_LARGEFILE(conf, define='HAVE_LARGEFILE'):
@conf
-def CHECK_C_PROTOTYPE(conf, function, prototype, define, headers=None):
+def CHECK_C_PROTOTYPE(conf, function, prototype, define, headers=None, msg=None):
'''verify that a C prototype matches the one on the current system'''
if not conf.CHECK_DECLS(function, headers=headers):
return False
+ if not msg:
+ msg = 'Checking C prototype for %s' % function
return conf.CHECK_CODE('%s; void *_x = (void *)%s' % (prototype, function),
define=define,
local_include=False,
headers=headers,
link=False,
execute=False,
- msg='Checking C prototype for %s' % function)
+ msg=msg)
@conf