]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: report if no supported version of libnl is found
authorPavel Roskin <proski@gnu.org>
Fri, 30 Jan 2009 22:33:34 +0000 (17:33 -0500)
committerJohannes Berg <johannes@sipsolutions.net>
Sat, 31 Jan 2009 13:29:34 +0000 (14:29 +0100)
Otherwise, the error messase would be very confusing.

Makefile

index 4de66e8945f56d084f5b8a0b178fe2150cae2a0f..89ebd7f81e8d863dae82551276c643398d318c73 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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))