Skip to content
Snippets Groups Projects
Commit 1d3f88ff authored by jacob's avatar jacob
Browse files

b=1549

r=adilger,zab

check that CONFIG_EXT3_FS and CONFIG_EXT3_FS_XATTR are defined in
linux/config.h
parent 813544fa
No related branches found
No related tags found
No related merge requests found
...@@ -397,3 +397,38 @@ if test "$HAVE_DIO_FILE" != 0 ; then ...@@ -397,3 +397,38 @@ if test "$HAVE_DIO_FILE" != 0 ; then
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
fi 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
...@@ -397,3 +397,38 @@ if test "$HAVE_DIO_FILE" != 0 ; then ...@@ -397,3 +397,38 @@ if test "$HAVE_DIO_FILE" != 0 ; then
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
fi 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment