build: added msg argument to CHECK_TYPE()
authorAndrew Tridgell <tridge@samba.org>
Wed, 24 Mar 2010 00:23:41 +0000 (18:23 -0600)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:04 +0000 (20:27 +1000)
buildtools/wafsamba/samba_autoconf.py

index aafa4c8c6b3fc899503ef07bb1fad037578b5e23..af09d729109bd092838afa2d123cb10f61fae081 100644 (file)
@@ -103,16 +103,18 @@ def header_list(conf, headers=None, lib=None):
 
 
 @conf
-def CHECK_TYPE(conf, t, alternate=None, headers=None, define=None, lib=None):
+def CHECK_TYPE(conf, t, alternate=None, headers=None, define=None, lib=None, msg=None):
     '''check for a single type'''
     if define is None:
         define = 'HAVE_' + t.upper().replace(' ', '_')
+    if msg is None:
+        msg='Checking for %s' % t
     ret = CHECK_CODE(conf, '%s _x' % t,
                      define,
                      execute=False,
                      headers=headers,
-                     msg='Checking for %s' % t,
                      local_include=False,
+                     msg=msg,
                      lib=lib,
                      link=False)
     if not ret and alternate: