mc-ext2fs-attr.m4 959 B

1234567891011121314151617181920212223242526272829
  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. AC_SUBST(EXT2FS_CFLAGS)
  13. AC_SUBST(E2P_CFLAGS)
  14. MCLIBS="$MCLIBS $E2P_LIBS"
  15. ext2fs_attr_msg="yes"
  16. else
  17. AC_MSG_WARN([e2p library not found or version too old (must be >= 1.42.4)])
  18. ext2fs_attr_msg="no"
  19. fi
  20. else
  21. AC_MSG_WARN([ext2fs library not found or version too old (must be >= 1.42.4)])
  22. ext2fs_attr_msg="no"
  23. fi
  24. AM_CONDITIONAL(ENABLE_EXT2FS_ATTR, [test "x$ext2fs_attr_msg" = "xyes"])
  25. ])