From fa3e50fee421a7fe407510627e0fdbcd5f4013c0 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Thu, 17 Jun 2010 22:41:57 +0200 Subject: build: Allow for a custom message in CHECK_C_PROTOTYPE --- buildtools/wafsamba/samba_conftests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'buildtools/wafsamba/samba_conftests.py') 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 -- cgit