build: Allow for a custom message in CHECK_C_PROTOTYPE
authorKai Blin <kai@samba.org>
Thu, 17 Jun 2010 20:41:57 +0000 (22:41 +0200)
committerKai Blin <kai@samba.org>
Sun, 20 Jun 2010 07:34:28 +0000 (09:34 +0200)
buildtools/wafsamba/samba_conftests.py

index a5c1b389aedbe4b9b2a595b1f72074d4567daa2c..c95a88791b1c28df5e22c2e8db69c7b6c2ba36ca 100644 (file)
@@ -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