mc-ext2fs-attr.m4 950 B

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