Whamcloud - gitweb
b=19856
[fs/lustre-release.git] / lustre / autoconf / lustre-core.m4
index 7f634ec..15fbe17 100644 (file)
@@ -1636,6 +1636,7 @@ AC_DEFUN([LC_PROG_LINUX],
          LC_PERCPU_COUNTER
          LC_QUOTA64
          LC_4ARGS_VFS_SYMLINK
+         LC_NETLINK
 
          # does the kernel have VFS intent patches?
          LC_VFS_INTENT_PATCHES
@@ -2013,6 +2014,26 @@ LB_LINUX_TRY_COMPILE([
 ])
 
 #
+# LC_NETLINK
+#
+# If we have netlink.h
+#
+AC_DEFUN([LC_NETLINK],
+[LB_CHECK_FILE([$LINUX/include/net/netlink.h],[
+        AC_MSG_CHECKING([if netlink.h can be compiled])
+        LB_LINUX_TRY_COMPILE([
+                #include <net/netlink.h>
+        ],[],[
+                AC_MSG_RESULT([yes])
+                AC_DEFINE(HAVE_NETLINK, 1, [net/netlink.h found])
+        ],[
+                AC_MSG_RESULT([no])
+        ])
+],
+[])
+])
+
+#
 # LC_CONFIGURE
 #
 # other configure checks