Whamcloud - gitweb
b=3041
[fs/lustre-release.git] / lnet / archdep.m4
index 6fb96e3..aec9e82 100644 (file)
@@ -171,6 +171,8 @@ KINCFLAGS="$CRAY_PORTALS_INCLUDE $CRAY_PORTALS_COMMANDLINE \
        -I\$(top_srcdir)/portals/include"
 if test $host_cpu != "lib" ; then 
     KINCFLAGS="$KINCFLAGS -I$LINUX/include -I$LINUX/include"
+else
+    KINCFLAGS="$KINCFLAGS -I\$(top_srcdir)/utils -I\$(top_srcdir)/portals/unals"
 fi
 CPPFLAGS="$KINCFLAGS $ARCHCPPFLAGS"
 
@@ -342,6 +344,9 @@ AC_SUBST(SCIMACNAL)
 
 CFLAGS="$KCFLAGS"
 CPPFLAGS="$KINCFLAGS $KCPPFLAGS $MFLAGS $enable_zerocopy $enable_affinity $with_quadrics $with_gm $with_scamac $with_ib"
+if test $host_cpu == "lib" ; then 
+CPPFLAGS="$CPPFLAGS -fPIC -D_LARGEFILE64_SOURCE=1 -g"
+fi
 
 AM_CONDITIONAL(LIBLUSTRE, test x$host_cpu = xlib)
 AC_SUBST(MOD_LINK)
@@ -415,20 +420,21 @@ if test "$host_cpu" != "lib" ; then
                [AC_MSG_RESULT([no])
                AC_MSG_ERROR([Lustre requires that ext3 is enabled in the kernel (CONFIG_EXT3_FS)])
                ])
-       AC_MSG_CHECKING([that extended attributes for ext3 are enabled in the kernel])
-       AC_TRY_COMPILE([
-#define __KERNEL__
-#include <linux/config.h>
-               ],
-               [
-#ifdef CONFIG_EXT3_FS_XATTR
-       return 0;
-#else
-#error CONFIG_EXT3_FS_XATTR not #defined
-#endif
-               ],[AC_MSG_RESULT([yes])],
-               [AC_MSG_RESULT([no])
-               AC_MSG_ERROR([Lustre requires that extended attributes for ext3 are enabled in the kernel (CONFIG_EXT3_FS_XATTR)])
-               ])
+# disable this check until our xattr patches define it!
+#      AC_MSG_CHECKING([that extended attributes for ext3 are enabled in the kernel])
+#      AC_TRY_COMPILE([
+##define __KERNEL__
+##include <linux/config.h>
+#              ],
+#              [
+##ifdef CONFIG_EXT3_FS_XATTR
+#      return 0;
+##else
+##error CONFIG_EXT3_FS_XATTR not #defined
+##endif
+#              ],[AC_MSG_RESULT([yes])],
+#              [AC_MSG_RESULT([no])
+#              AC_MSG_ERROR([Lustre requires that extended attributes for ext3 are enabled in the kernel (CONFIG_EXT3_FS_XATTR)])
+#              ])
 fi