From 4134dc1b4a37b65f8176d799f03342583b49d932 Mon Sep 17 00:00:00 2001 From: Alexandre Oliveira Date: Mon, 2 Nov 2020 19:37:26 +0100 Subject: [PATCH] Check if pkg-config is valid before checking for libs --- config.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.sh b/config.sh index 55bc9a2..5bd34bb 100644 --- a/config.sh +++ b/config.sh @@ -85,6 +85,11 @@ find_library() { name="$1" pc="$2" printf "Checking for %s... " "$name" + if ! command -v pkg-config >/dev/null + then + printf "ERROR: pkg-config not found\n" + return 1 + fi if ! pkg-config "$pc" 2>/dev/null then printf "NOT FOUND\n"