summaryrefslogtreecommitdiff
path: root/make/utilities.pm
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-14 00:03:50 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-14 00:03:50 +0000
commit7e014c9b8c910e405518541135030b69e3db2914 (patch)
tree88ebef3285fd9ad849f9d53fc8ca97d74b054713 /make/utilities.pm
parent2e9951e823c6178f1126c68e5f37e6fd3a724ea9 (diff)
Output for 'using defaults' when nothing of interest found
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6308 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/utilities.pm')
-rw-r--r--make/utilities.pm19
1 files changed, 16 insertions, 3 deletions
diff --git a/make/utilities.pm b/make/utilities.pm
index 3c0f76188..2470e1b44 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -63,8 +63,14 @@ sub pkgconfig_get_include_dirs($$$)
$ret = "$foo " . $defaults;
}
chomp($ret);
-
- print "\033[1;32m$ret\033[0m\n";
+ if (($ret eq " ") || (!defined $ret))
+ {
+ print "\033[1;32mUsing defaults\033[0m\n";
+ }
+ else
+ {
+ print "\033[1;32m$ret\033[0m\n";
+ }
return $ret;
}
@@ -96,7 +102,14 @@ sub pkgconfig_get_lib_dirs($$$)
$ret = "$foo " . $defaults;
}
chomp($ret);
- print "\033[1;32m$ret\033[0m\n";
+ if (($ret eq " ") || (!defined $ret))
+ {
+ print "\033[1;32mUsing defaults\033[0m\n";
+ }
+ else
+ {
+ print "\033[1;32m$ret\033[0m\n";
+ }
return $ret;
}