mc-i18n.m4 955 B

123456789101112131415161718192021222324252627282930313233
  1. dnl @synopsis mc_I18N
  2. dnl
  3. dnl Check if environment is ready for get translations of docs from transifex
  4. dnl
  5. dnl @author Slava Zanko <slavazanko@gmail.com>
  6. dnl @version 2011-02-10
  7. dnl @license GPL
  8. dnl @copyright Free Software Foundation, Inc.
  9. AC_DEFUN([mc_I18N],[
  10. dnl User visible support for charset conversion.
  11. AC_ARG_ENABLE([charset],
  12. AS_HELP_STRING([--enable-charset], [Support for charset selection and conversion @<:@yes@:>@]))
  13. have_charset=
  14. charset_msg="no"
  15. if test "x$enable_charset" != "xno"; then
  16. AC_DEFINE(HAVE_CHARSET, 1, [Define to enable charset selection and conversion])
  17. have_charset=yes
  18. charset_msg="yes"
  19. dnl Solaris has different name of Windows 1251 encoding
  20. case $host_os in
  21. solaris*)
  22. CP1251="ANSI-1251"
  23. ;;
  24. *)
  25. CP1251="CP1251"
  26. ;;
  27. esac
  28. AC_SUBST(CP1251)
  29. fi
  30. ])