From 45d3ac05b3781a8c14e7f4426a515746e9a99172 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 9 Apr 2010 21:12:02 +1000 Subject: build: use Logs.error() and Logs.info() instead of print() this gives appropriate colors on output, and ensures it works with compiler output --- buildtools/wafsamba/samba_autoconf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'buildtools/wafsamba/samba_autoconf.py') diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 4731a4e13d..fcd900dec1 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -1,6 +1,6 @@ # a waf tool to add autoconf-like macros to the configure section -import Build, os, Options, preproc +import Build, os, Options, preproc, Logs import string from Configure import conf from samba_utils import * @@ -456,7 +456,7 @@ def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True): if not conf.check(lib=lib, uselib_store=lib, ccflags=ccflags, ldflags=ldflags): if mandatory: - print("Mandatory library '%s' not found for functions '%s'" % (lib, list)) + Logs.error("Mandatory library '%s' not found for functions '%s'" % (lib, list)) sys.exit(1) if empty_decl: # if it isn't a mandatory library, then remove it from dependency lists @@ -511,7 +511,7 @@ def CHECK_FUNCS_IN(conf, list, library, mandatory=False, checklibc=False, for lib in liblist[:]: if not GET_TARGET_TYPE(conf, lib) == 'SYSLIB': if mandatory: - print("Mandatory library '%s' not found for functions '%s'" % (lib, list)) + Logs.error("Mandatory library '%s' not found for functions '%s'" % (lib, list)) sys.exit(1) # if it isn't a mandatory library, then remove it from dependency lists liblist.remove(lib) -- cgit