From dff9228f246dada328795b1ece11c5694529f898 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 20 Jan 2007 21:42:57 +0000 Subject: Proritise cached value above a search git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6409 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/utilities.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'make/utilities.pm') diff --git a/make/utilities.pm b/make/utilities.pm index 1285a7193..982337577 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -46,6 +46,14 @@ sub extend_pkg_path() sub pkgconfig_get_include_dirs($$$;$) { my ($packagename, $headername, $defaults, $module) = @_; + + if (exists $config{$key}) + { + my $key = "default_includedir_$packagename"; + $ret = $config{$key}; + return $ret; + } + extend_pkg_path(); print "Locating include directory for package \033[1;32m$packagename\033[0m for module \033[1;32m$module\033[0m... "; @@ -94,6 +102,14 @@ sub pkgconfig_get_include_dirs($$$;$) sub pkgconfig_get_lib_dirs($$$;$) { my ($packagename, $libname, $defaults, $module) = @_; + + if (exists $config{$key}) + { + my $key = "default_libdir_$packagename"; + $ret = $config{$key}; + return $ret; + } + extend_pkg_path(); print "Locating library directory for package \033[1;32m$packagename\033[0m for module \033[1;32m$module\033[0m... "; -- cgit v1.2.3