diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-09 21:12:02 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-09 21:12:09 +1000 |
commit | 45d3ac05b3781a8c14e7f4426a515746e9a99172 (patch) | |
tree | 5dce7065b5b86fd9dcb6133bde9308358a78f151 /buildtools/wafsamba/samba_autoconf.py | |
parent | d661759780d70c771c3748095db5a5308451266d (diff) | |
download | samba-45d3ac05b3781a8c14e7f4426a515746e9a99172.tar.gz samba-45d3ac05b3781a8c14e7f4426a515746e9a99172.tar.bz2 samba-45d3ac05b3781a8c14e7f4426a515746e9a99172.zip |
build: use Logs.error() and Logs.info() instead of print()
this gives appropriate colors on output, and ensures it works with
compiler output
Diffstat (limited to 'buildtools/wafsamba/samba_autoconf.py')
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |