From 7af56875040c0d170d3313bb0e0c126d3f19aed8 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 16 Oct 2010 00:41:34 +0200 Subject: heimdal_build: Use existing functions for finding system libraries. --- source4/heimdal_build/wscript_configure | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source4') diff --git a/source4/heimdal_build/wscript_configure b/source4/heimdal_build/wscript_configure index e0c435dc5e..727344c3b4 100644 --- a/source4/heimdal_build/wscript_configure +++ b/source4/heimdal_build/wscript_configure @@ -72,12 +72,7 @@ def check_bundled_heimdal_lib(name, functions, headers): 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) -- cgit