summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2009-01-30 14:33:06 -0800
committerLuis R. Rodriguez <lrodriguez@atheros.com>2009-02-02 14:53:48 -0800
commit8e4ae9f3f025e681fbcbac87dc1394513a5b15be (patch)
tree9f514b083bcafca598f6f95c7ed883039f457d45
parent83730433ff90fb4339e11d57c5872a0c943cc1d1 (diff)
downloadcrda-8e4ae9f3f025e681fbcbac87dc1394513a5b15be.tar.gz
crda-8e4ae9f3f025e681fbcbac87dc1394513a5b15be.tar.bz2
crda-8e4ae9f3f025e681fbcbac87dc1394513a5b15be.zip
crda: report if no supported version of libnl is found
Otherwise, the error messase would be very confusing.
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index aaa9ca6..461103d 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,10 @@ NLLIBS += -lnl-genl
NLLIBNAME = libnl-2.0
endif
+ifeq ($(NLLIBNAME),)
+$(error Cannot find development files for any supported version of libnl)
+endif
+
NLLIBS += `pkg-config --libs $(NLLIBNAME)`
CFLAGS += `pkg-config --cflags $(NLLIBNAME)`