diff options
author | Kai Blin <kai@samba.org> | 2010-06-17 22:41:57 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2010-06-20 09:34:28 +0200 |
commit | fa3e50fee421a7fe407510627e0fdbcd5f4013c0 (patch) | |
tree | cb706e5f4c91c3c47b291836303e7d6c8bd23419 /buildtools/wafsamba | |
parent | 1f07f53827908d48e50b018c50e97de4740b740b (diff) | |
download | samba-fa3e50fee421a7fe407510627e0fdbcd5f4013c0.tar.gz samba-fa3e50fee421a7fe407510627e0fdbcd5f4013c0.tar.bz2 samba-fa3e50fee421a7fe407510627e0fdbcd5f4013c0.zip |
build: Allow for a custom message in CHECK_C_PROTOTYPE
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/samba_conftests.py | 6 |
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 |