From b8993dc56f09a71c7ba99c08445d8897f2accbf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Sat, 26 Jun 2021 16:41:40 +0200 Subject: [PATCH] Verify that pkg-config is available Fixes #32 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index ce5531c..4624c3c 100644 --- a/Makefile +++ b/Makefile @@ -122,6 +122,8 @@ SRC_DIR=$(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))) vpath %.cpp $(SRC_DIR) PKG_CONFIG = pkg-config +$(call ensure_binary,$(PKG_CONFIG)) + override CFLAGS += -std=c++11 -Wall -pedantic -O2 -g GCC_4_2_OR_HIGHER := $(shell expr `$(CXX) -dumpversion | sed 's/\.//g'` \>= 420)