'''helper function for CHECK_BUNDLED_SYSTEM'''
if checkfunctions is None:
return True
- if require_headers and headers and not conf.CHECK_HEADERS(headers):
+ if require_headers and headers and not conf.CHECK_HEADERS(headers, lib=libname):
return False
return conf.CHECK_FUNCS_IN(checkfunctions, libname, headers=headers,
empty_decl=False, set_target=False)
lib = name
setattr(conf.env, "CPPPATH_%s" % name.upper(), ["/usr/include/heimdal"])
setattr(conf.env, "LIBPATH_%s" % name.upper(), ["/usr/lib/heimdal"])
- if not conf.CHECK_HEADERS(headers, lib=lib):
- Logs.error('ERROR: Unable to find missing header %s' % headers)
- sys.exit(1)
- if not conf.CHECK_LIB([lib], mandatory=True, set_target=True):
- Logs.error('ERROR: Unable to find missing library %s' % lib)
- sys.exit(1)
+ conf.CHECK_BUNDLED_SYSTEM("wind", checkfunctions=functions, headers=headers)
conf.define('USING_SYSTEM_%s' % name.upper(), 1)