summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-26 12:10:16 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-26 12:10:16 +0000
commit5374c1696128bf8908e3cfad547213e2893edf01 (patch)
treeb50d58d713ffef5436d3eefbfa3155a7671a378c
parent59d380cad4bb23ffd4a401ce220eadd647788e8d (diff)
Make pkg-config failure error clearer
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11417 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--make/utilities.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/make/utilities.pm b/make/utilities.pm
index 9776ae7f4..22425714a 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -116,9 +116,9 @@ sub pkgconfig_get_include_dirs($$$;$)
my $foo = "";
if ((!defined $v) || ($v eq ""))
{
- $foo = `locate "$headername" | head -n 1`;
- $foo =~ /(.+)\Q$headername\E/;
- my $find = $1;
+ print "\e[31mCould not find $packagename via pkg-config\e[m (\e[1;32mplease install pkg-config\e[m)\n";
+ $foo = `locate "$headername" 2>/dev/null | head -n 1`;
+ my $find = $foo =~ /(.+)\Q$headername\E/ ? $1 : '';
chomp($find);
if ((defined $find) && ($find ne "") && ($find ne $packagename))
{