diff --git a/wscript b/wscript index 8ac0f9901be..7e2bd0a7b7a 100644 --- a/wscript +++ b/wscript @@ -83,7 +83,7 @@ def copytree(src, dst, symlinks=False, ignore=None): def conf_subproject (conf, subdir, command=None): print("---- %s ----" % subdir) src = join(conf.srcdir, subdir) - if not os.path.exists (src): fatal("no such subproject " + subdir) + if not os.path.exists (src): conf.fatal("no such subproject " + subdir) default_tgt = join(conf.blddir, "default", subdir) @@ -92,7 +92,7 @@ def conf_subproject (conf, subdir, command=None): if command: if os.system("cd %s && %s" % (default_tgt, command)) != 0: - fatal("Configuring %s failed." % (subdir)) + conf.fatal("Configuring %s failed." % (subdir)) debug_tgt = join(conf.blddir, "debug", subdir) @@ -117,7 +117,7 @@ def configure(conf): if not conf.check(lib="execinfo", libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"): if sys.platform.startswith("freebsd"): - fatal("Install the libexecinfo port from /usr/ports/devel/libexecinfo.") + conf.fatal("Install the libexecinfo port from /usr/ports/devel/libexecinfo.") if conf.check_cfg(package='gnutls', args='--cflags --libs',