From 5374c1696128bf8908e3cfad547213e2893edf01 Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 26 Jun 2009 12:10:16 +0000 Subject: Make pkg-config failure error clearer git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11417 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/utilities.pm | 6 +++--- 1 file 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)) { -- cgit v1.2.3