summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-20 21:44:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-20 21:44:48 +0000
commitf8706cb33338df49ee6cb2f6be12c6cd0fe398e3 (patch)
tree3c59ecee04ac96ec8e26a97b542a06c24da3d4ed /make
parentdff9228f246dada328795b1ece11c5694529f898 (diff)
Add caching of all detected values :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6410 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make')
-rw-r--r--make/utilities.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/make/utilities.pm b/make/utilities.pm
index 982337577..17a43606f 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -49,6 +49,8 @@ sub pkgconfig_get_include_dirs($$$;$)
if (exists $config{$key})
{
+ print "Locating include directory for package \033[1;32m$packagename\033[0m for module \033[1;32m$module\033[0m... ";
+ print "\033[1;32m$ret\033[0m (cached)\n";
my $key = "default_includedir_$packagename";
$ret = $config{$key};
return $ret;
@@ -94,6 +96,8 @@ sub pkgconfig_get_include_dirs($$$;$)
}
else
{
+ my $key = "default_includedir_$packagename";
+ $config{$key} = $ret;
print "\033[1;32m$ret\033[0m\n";
}
return $ret;
@@ -105,6 +109,8 @@ sub pkgconfig_get_lib_dirs($$$;$)
if (exists $config{$key})
{
+ print "Locating library directory for package \033[1;32m$packagename\033[0m for module \033[1;32m$module\033[0m... ";
+ print "\033[1;32m$ret\033[0m (cached)\n";
my $key = "default_libdir_$packagename";
$ret = $config{$key};
return $ret;
@@ -152,6 +158,8 @@ sub pkgconfig_get_lib_dirs($$$;$)
else
{
print "\033[1;32m$ret\033[0m\n";
+ my $key = "default_libdir_$packagename";
+ $config{$key} = $ret;
}
return $ret;
}