Skip to contentSkip to conversation

iw: report if no supported version of libnl is found

PATCH New Pavel Roskin 1 participant 1 message Jan 30, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iw: report if no supported version of libnl is found

Otherwise, the error messase would be very confusing.

---
 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Makefile +4 -0
index 4de66e8..89ebd7f 100644
@@ -29,6 +29,10 @@ LIBS += -lnl-genl
 NLLIBNAME = libnl-2.0
 endif
 
+ifeq ($(NLLIBNAME),)
+$(error Cannot find development files for any supported version of libnl)
+endif
+
 LIBS += $(shell pkg-config --libs $(NLLIBNAME))
 CFLAGS += $(shell pkg-config --cflags $(NLLIBNAME))