Whamcloud - gitweb
branch: b_new_cmd
[fs/lustre-release.git] / build / autoconf / lustre-build-linux.m4
index ac337a9..b4a9dd2 100644 (file)
@@ -1,3 +1,5 @@
+m4_pattern_allow(AC_KERBEROS_V5)
+
 #
 # LB_LINUX_VERSION
 #
@@ -402,6 +404,19 @@ AM_CONDITIONAL(GSS, test x$enable_gss = xyes)
 ])
 
 #
+# LB_LINUX_CONFIG_PAG
+#
+AC_DEFUN([LB_LINUX_CONFIG_PAG],
+[AC_MSG_CHECKING([if Linux is patched with basic PAG support])
+LB_LINUX_TRY_COMPILE([#include <linux/sched.h>],[
+unsigned long pag = current->pag;
+],[AC_MSG_RESULT([yes])
+AC_DEFINE(HAVE_LINUX_PAG, 1, [linux has basic PAG support for Lustre])],[
+AC_MSG_RESULT([no])
+])
+])
+
+#
 # LC_LINUX_CONFIG_GSS
 #
 # Build gss and related tools of Lustre. Currently both kernel and user space