def build_fun(bld):
    """
	Build function that is used for running configuration tests with ``conf.check()``
	"""
    if bld.kw['compile_filename']:
        node = bld.srcnode.make_node(bld.kw['compile_filename'])
        node.write(bld.kw['code'])
    o = bld(features=bld.kw['features'], source=bld.kw['compile_filename'],
        target='testprog')
    for k, v in bld.kw.items():
        setattr(o, k, v)
    if not bld.kw.get('quiet'):
        bld.conf.to_log('==>\n%s\n<==' % bld.kw['code'])
