From 1d3f88ffde4b54d32c5195d67e9b376718987577 Mon Sep 17 00:00:00 2001 From: jacob <jacob> Date: Fri, 19 Mar 2004 22:54:19 +0000 Subject: [PATCH] b=1549 r=adilger,zab check that CONFIG_EXT3_FS and CONFIG_EXT3_FS_XATTR are defined in linux/config.h --- lnet/archdep.m4 | 35 +++++++++++++++++++++++++++++++++++ lustre/portals/archdep.m4 | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/lnet/archdep.m4 b/lnet/archdep.m4 index b203a95cd1..6fb96e3641 100644 --- a/lnet/archdep.m4 +++ b/lnet/archdep.m4 @@ -397,3 +397,38 @@ if test "$HAVE_DIO_FILE" != 0 ; then else AC_MSG_RESULT(no) fi + +# --- Check that ext3 and ext3 xattr are enabled in the kernel +if test "$host_cpu" != "lib" ; then + AC_MSG_CHECKING([that ext3 is enabled in the kernel]) + AC_TRY_COMPILE([ +#define __KERNEL__ +#include <linux/config.h> + ], + [ +#ifdef CONFIG_EXT3_FS + return 0; +#else +#error CONFIG_EXT3_FS not #defined +#endif + ],[AC_MSG_RESULT([yes])], + [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)]) + ]) +fi + diff --git a/lustre/portals/archdep.m4 b/lustre/portals/archdep.m4 index b203a95cd1..6fb96e3641 100644 --- a/lustre/portals/archdep.m4 +++ b/lustre/portals/archdep.m4 @@ -397,3 +397,38 @@ if test "$HAVE_DIO_FILE" != 0 ; then else AC_MSG_RESULT(no) fi + +# --- Check that ext3 and ext3 xattr are enabled in the kernel +if test "$host_cpu" != "lib" ; then + AC_MSG_CHECKING([that ext3 is enabled in the kernel]) + AC_TRY_COMPILE([ +#define __KERNEL__ +#include <linux/config.h> + ], + [ +#ifdef CONFIG_EXT3_FS + return 0; +#else +#error CONFIG_EXT3_FS not #defined +#endif + ],[AC_MSG_RESULT([yes])], + [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)]) + ]) +fi + -- GitLab