mc-vfs-extfs.m4 1015 B

12345678910111213141516171819202122232425262728293031323334
  1. dnl mc_EXTFS_CHECKS
  2. dnl Check for tools used in extfs scripts.
  3. dnl FIXME: make this configurable
  4. AC_DEFUN([mc_EXTFS_CHECKS], [
  5. AC_PATH_PROG([ZIP], [zip], [/usr/bin/zip])
  6. AC_PATH_PROG([UNZIP], [unzip], [/usr/bin/unzip])
  7. AC_CACHE_CHECK([for zipinfo code in unzip], [mc_cv_have_zipinfo],
  8. [mc_cv_have_zipinfo=no
  9. if $UNZIP -Z </dev/null >/dev/null 2>&1; then
  10. mc_cv_have_zipinfo=yes
  11. fi])
  12. if test x"$mc_cv_have_zipinfo" = xyes; then
  13. HAVE_ZIPINFO=1
  14. else
  15. HAVE_ZIPINFO=0
  16. fi
  17. AC_SUBST([HAVE_ZIPINFO])
  18. ])
  19. dnl Enable Extfs (classic)
  20. AC_DEFUN([mc_VFS_EXTFS],
  21. [
  22. AC_ARG_ENABLE([vfs-extfs],
  23. AS_HELP_STRING([--enable-vfs-extfs], [Support for extfs filesystem @<:@yes@:>@]))
  24. if test "$enable_vfs" = "yes" -a x"$enable_vfs_extfs" != x"no"; then
  25. mc_EXTFS_CHECKS
  26. enable_vfs_extfs="yes"
  27. mc_VFS_ADDNAME([extfs])
  28. AC_DEFINE([ENABLE_VFS_EXTFS], [1], [Support for extfs])
  29. fi
  30. AM_CONDITIONAL(ENABLE_VFS_EXTFS, [test "$enable_vfs" = "yes" -a x"$enable_vfs_extfs" = x"yes"])
  31. ])