aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-07-17 13:22:56 -0300
committerdequis <dx@dxzone.com.ar>2016-07-25 20:42:31 -0300
commit9ae8f82b01b85d34f738a1e28c8894785ca7f0ee (patch)
treeeae94778468f1a58eac4ae0b6b4711fa71d0cc4d
parentf60dc5cb68ac91df714f01ef61ba819eeac584aa (diff)
configure: improve error message on missing pkg-config
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index cabefe7c..0ec3c013 100755
--- a/configure
+++ b/configure
@@ -335,7 +335,13 @@ if [ -z "$PKG_CONFIG" ]; then
PKG_CONFIG=pkg-config
fi
-if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
+if ! $PKG_CONFIG --version > /dev/null 2>/dev/null; then
+ echo
+ echo 'Cannot find pkg-config, aborting.'
+ exit 1
+fi
+
+if $PKG_CONFIG glib-2.0; then
if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then
cat<<EOF >>Makefile.settings
EFLAGS+=$($PKG_CONFIG --libs glib-2.0 gmodule-2.0)