Whamcloud - gitweb
Branch b1_8_gate
authoryangsheng <yangsheng>
Wed, 3 Sep 2008 09:18:06 +0000 (09:18 +0000)
committeryangsheng <yangsheng>
Wed, 3 Sep 2008 09:18:06 +0000 (09:18 +0000)
b=16580
i=johann, shadow

Fix build issue for sles9/ppc64.

lnet/autoconf/lustre-lnet.m4

index 5605098..3003fb6 100644 (file)
@@ -1170,6 +1170,24 @@ CFLAGS="$tmp_flags"
 ])
 
 
+# check kernel __le16, __le32 types
+AC_DEFUN([LN_LE_TYPES],
+[AC_MSG_CHECKING([__le16 and __le32 types are defined])
+LB_LINUX_TRY_COMPILE([
+       #include <linux/types.h>
+],[
+       __le16 a;
+       __le32 b;
+],[
+       AC_MSG_RESULT([yes])
+        AC_DEFINE(HAVE_LE_TYPES, 1,
+                  [__le16 and __le32 types are defined])
+],[
+       AC_MSG_RESULT([no])
+])
+])
+
+
 # LN_TASKLIST_LOCK
 # 2.6.18 remove tasklist_lock export
 AC_DEFUN([LN_TASKLIST_LOCK],
@@ -1322,6 +1340,7 @@ LN_FUNC_SHOW_TASK
 LN_U64_LONG_LONG
 LN_SSIZE_T_LONG
 LN_SIZE_T_LONG
+LN_LE_TYPES
 # 2.6.18
 LN_TASKLIST_LOCK
 # 2.6.19