2 dnl Support for attributes on a Linux second extended file system
4 AC_DEFUN([mc_EXT2FS_ATTR],
8 PKG_CHECK_MODULES(EXT2FS, [ext2fs >= 1.42.4], [found_ext2fs=yes], [:])
10 if test x"$found_ext2fs" = "xyes"; then
11 PKG_CHECK_MODULES(E2P, [e2p >= 1.42.4], [found_e2p=yes], [:])
13 if test x"$found_e2p" = "xyes"; then
14 AC_DEFINE(ENABLE_EXT2FS_ATTR, 1, [Define to enable support for ext2fs attributes])
15 MCLIBS="$MCLIBS $E2P_LIBS"
16 CPPFLAGS="$CPPFLAGS $EXT2FS_CFLAGS $E2P_CFLAGS"
19 AC_MSG_WARN([e2p library not found or version too old (must be >= 1.42.4)])
23 AC_MSG_WARN([ext2fs library not found or version too old (must be >= 1.42.4)])
27 AM_CONDITIONAL(ENABLE_EXT2FS_ATTR, [test "x$ext2fs_attr_msg" = "xyes"])