summaryrefslogtreecommitdiff
path: root/libevent.mk
diff options
context:
space:
mode:
Diffstat (limited to 'libevent.mk')
-rw-r--r--libevent.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/libevent.mk b/libevent.mk
index 194a525..74c9946 100644
--- a/libevent.mk
+++ b/libevent.mk
@@ -1,2 +1,6 @@
+ifeq ($(shell pkg-config libevent; echo $$?),1)
+$(error pkg libevent not found)
+endif
+
CFLAGS += $(shell pkg-config --cflags libevent)
LDFLAGS += $(shell pkg-config --libs libevent)