[PATCH 2/3] Don't install CLI header files when --disable-cli has been configured.

Michael Altizer xiche at verizon.net
Sun Oct 9 17:02:35 EDT 2011


Signed-off-by: Michael Altizer <xiche at verizon.net>
---
 include/Makefile.am |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/include/Makefile.am b/include/Makefile.am
index 515c237..db6862d 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -3,17 +3,6 @@
 libnlincludedir = $(includedir)/libnl at MAJ_VERSION@
 
 nobase_libnlinclude_HEADERS = \
-	netlink/cli/addr.h \
-	netlink/cli/class.h \
-	netlink/cli/cls.h \
-	netlink/cli/ct.h \
-	netlink/cli/link.h \
-	netlink/cli/neigh.h \
-	netlink/cli/qdisc.h \
-	netlink/cli/route.h \
-	netlink/cli/rule.h \
-	netlink/cli/tc.h \
-	netlink/cli/utils.h \
 	netlink/fib_lookup/lookup.h \
 	netlink/fib_lookup/request.h \
 	netlink/genl/ctrl.h \
@@ -84,6 +73,21 @@ nobase_libnlinclude_HEADERS = \
 	netlink/utils.h \
 	netlink/version.h
 
+if ENABLE_CLI
+nobase_libnlinclude_HEADERS += \
+	netlink/cli/addr.h \
+	netlink/cli/class.h \
+	netlink/cli/cls.h \
+	netlink/cli/ct.h \
+	netlink/cli/link.h \
+	netlink/cli/neigh.h \
+	netlink/cli/qdisc.h \
+	netlink/cli/route.h \
+	netlink/cli/rule.h \
+	netlink/cli/tc.h \
+	netlink/cli/utils.h
+endif
+
 noinst_HEADERS = \
 	linux/fib_rules.h \
 	linux/genetlink.h \
-- 
1.7.6




More information about the libnl mailing list