diff options
author | dequis <dx@dxzone.com.ar> | 2016-07-17 13:22:56 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-07-25 20:42:31 -0300 |
commit | 9ae8f82b01b85d34f738a1e28c8894785ca7f0ee (patch) | |
tree | eae94778468f1a58eac4ae0b6b4711fa71d0cc4d /configure | |
parent | f60dc5cb68ac91df714f01ef61ba819eeac584aa (diff) |
configure: improve error message on missing pkg-config
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |