From 9ae8f82b01b85d34f738a1e28c8894785ca7f0ee Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 17 Jul 2016 13:22:56 -0300 Subject: configure: improve error message on missing pkg-config --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'configure') 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<>Makefile.settings EFLAGS+=$($PKG_CONFIG --libs glib-2.0 gmodule-2.0) -- cgit v1.2.3