def METHOD_NAME(conf, name, tool, wafname=None):
	wafname = wafname or name
	chost, chost_envar = get_chost_stuff(conf)
	specific = None
	if chost:
		specific = os.environ.get('%s_%s' % (chost_envar, name))
	if specific:
		value = Utils.to_list(specific)
		conf.env[wafname] += value
		conf.msg('Will use cross-compilation %s from %s_%s' % (name, chost_envar, name),
		 " ".join(quote(x) for x in value))
		return
	else:
		envar = os.environ.get('HOST_%s' % name)
		if envar is not None:
			value = Utils.to_list(envar)
			conf.env[wafname] = value
			conf.msg('Will use cross-compilation %s from HOST_%s' % (name, name),
			 " ".join(quote(x) for x in value))
			return
	if conf.env[wafname]:
		return
	value = None
	if chost:
		value = '%s-%s' % (chost, tool)
	if value:
		conf.env[wafname] = value
		conf.msg('Will use cross-compilation %s from CHOST' % wafname, value)