Whamcloud - gitweb
Branch b1_8
authoryangsheng <yangsheng>
Fri, 17 Jul 2009 13:30:27 +0000 (13:30 +0000)
committeryangsheng <yangsheng>
Fri, 17 Jul 2009 13:30:27 +0000 (13:30 +0000)
b=19615

i=shadow, johann

Disable server build for rhel4 & sles9.

lustre/autoconf/lustre-core.m4

index 1d2eaf3..7aa6acf 100644 (file)
@@ -588,6 +588,18 @@ AC_DEFUN([LC_LUSTRE_VERSION_H],
                enable_server='no'
        fi
 ])
+       if test x$enable_server = xyes ; then
+               if test x$RHEL_KERNEL = xyes -a x$LINUXRELEASE != x${LINUXRELEASE##2.6.9} ; then
+                       AC_MSG_WARN([Lustre server has been disabled with rhel4 kernel;])
+                       AC_MSG_WARN([disabling server build])
+                       enable_server='no'
+               fi
+               if test x$SUSE_KERNEL = xyes -a x$LINUXRELEASE != x${LINUXRELEASE##2.6.5} ; then
+                       AC_MSG_WARN([Lustre server has been disabled with sles9 kernel;])
+                       AC_MSG_WARN([disabling server build])
+                       enable_server='no'
+               fi
+       fi
 ])
 
 #