Repository: mesos
Updated Branches:
  refs/heads/master cc41082d0 -> b523da556


Added check for libnl headers in configure.ac.

Review: https://reviews.apache.org/r/23132


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b523da55
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b523da55
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b523da55

Branch: refs/heads/master
Commit: b523da556956dc666ce4c906a6bbe60145ef9c41
Parents: cc41082
Author: Jie Yu <yujie....@gmail.com>
Authored: Fri Jun 27 10:26:23 2014 -0700
Committer: Jie Yu <yujie....@gmail.com>
Committed: Fri Jun 27 10:52:38 2014 -0700

----------------------------------------------------------------------
 configure.ac | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/b523da55/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 41f3c2b..17230aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -810,20 +810,37 @@ if test "x$with_network_isolator" = "xyes"; then
 -------------------------------------------------------------------
 Network isolator is only supported on Linux!
 -------------------------------------------------------------------
-        ])])
+  ])])
 
-  # Check for libnl.
+  # Check for libnl (both headers and libraries).
   AC_CHECK_LIB([nl-3], [nl_connect], [],
                [AC_MSG_ERROR([cannot find libnl-3
 -------------------------------------------------------------------
-We need libnl-3 for network isolator!
+We need libnl-3 for building network isolator!
+-------------------------------------------------------------------
+  ])])
+
+  AC_CHECK_HEADERS([netlink/netlink.h libnl3/netlink/netlink.h],
+                   [break]
+                   [AC_MSG_ERROR([cannot find libnl-3 headers
+-------------------------------------------------------------------
+We need libnl-3 headers for building network isolator!
 -------------------------------------------------------------------
   ])])
 
+  # Check for libnl-route (both headers and libraries).
   AC_CHECK_LIB([nl-route-3], [rtnl_cls_alloc], [],
                [AC_MSG_ERROR([cannot find libnl-route-3
 -------------------------------------------------------------------
-We need libnl-route-3 for network isolator!
+We need libnl-route-3 for building network isolator!
+-------------------------------------------------------------------
+  ])])
+
+  AC_CHECK_HEADERS([netlink/route/rtnl.h libnl3/netlink/route/rtnl.h],
+                   [break]
+                   [AC_MSG_ERROR([cannot find libnl-route-3 headers
+-------------------------------------------------------------------
+We need libnl-route-3 headers for building network isolator!
 -------------------------------------------------------------------
   ])])
 

Reply via email to