summaryrefslogtreecommitdiffstats
path: root/m4.include/mc-i18n.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:12 +0000
commit8ccb487c21368a7fdc8c7c72315325bf0aa06147 (patch)
treeb2056fae01d325924508a41731edfbd4c3cddd23 /m4.include/mc-i18n.m4
parentInitial commit. (diff)
downloadmc-8ccb487c21368a7fdc8c7c72315325bf0aa06147.tar.xz
mc-8ccb487c21368a7fdc8c7c72315325bf0aa06147.zip
Adding upstream version 3:4.8.29.upstream/3%4.8.29upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--m4.include/mc-i18n.m433
1 files changed, 33 insertions, 0 deletions
diff --git a/m4.include/mc-i18n.m4 b/m4.include/mc-i18n.m4
new file mode 100644
index 0000000..8f14741
--- /dev/null
+++ b/m4.include/mc-i18n.m4
@@ -0,0 +1,33 @@
+dnl @synopsis mc_I18N
+dnl
+dnl Check if environment is ready for get translations of docs from transifex
+dnl
+dnl @author Slava Zanko <slavazanko@gmail.com>
+dnl @version 2011-02-10
+dnl @license GPL
+dnl @copyright Free Software Foundation, Inc.
+
+AC_DEFUN([mc_I18N],[
+ dnl User visible support for charset conversion.
+ AC_ARG_ENABLE([charset],
+ AS_HELP_STRING([--enable-charset], [Support for charset selection and conversion @<:@yes@:>@]))
+ have_charset=
+ charset_msg="no"
+ if test "x$enable_charset" != "xno"; then
+ AC_DEFINE(HAVE_CHARSET, 1, [Define to enable charset selection and conversion])
+ have_charset=yes
+ charset_msg="yes"
+
+ dnl Solaris has different name of Windows 1251 encoding
+ case $host_os in
+ solaris*)
+ CP1251="ANSI-1251"
+ ;;
+ *)
+ CP1251="CP1251"
+ ;;
+ esac
+
+ AC_SUBST(CP1251)
+ fi
+])