2016-01-04 21:43:19 +03:00
|
|
|
dnl @synopsis mc_I18N
|
2013-03-27 01:57:29 +04:00
|
|
|
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.
|
|
|
|
|
2016-01-04 21:43:19 +03:00
|
|
|
AC_DEFUN([mc_I18N],[
|
2013-03-27 01:57:29 +04:00
|
|
|
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"
|
2019-07-07 16:27:53 +03:00
|
|
|
|
2024-09-13 11:18:11 +03:00
|
|
|
AC_CHECK_HEADERS([gnu/libc-version.h])
|
|
|
|
|
2019-07-07 16:27:53 +03:00
|
|
|
dnl Solaris has different name of Windows 1251 encoding
|
|
|
|
case $host_os in
|
|
|
|
solaris*)
|
2024-09-13 11:18:11 +03:00
|
|
|
ENCODING_CP1251="ANSI-1251"
|
2019-07-07 16:27:53 +03:00
|
|
|
;;
|
|
|
|
*)
|
2024-09-13 11:18:11 +03:00
|
|
|
ENCODING_CP1251="CP1251"
|
2019-07-07 16:27:53 +03:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2024-09-13 11:18:11 +03:00
|
|
|
if test "x$ac_cv_header_gnu_libc_version_h" != "xno"; then
|
|
|
|
ENCODING_CP866="IBM866"
|
|
|
|
ENCODING_ISO8859="ISO-8859"
|
|
|
|
else
|
|
|
|
ENCODING_CP866="CP866"
|
|
|
|
ENCODING_ISO8859="ISO8859"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(ENCODING_CP1251)
|
|
|
|
AC_SUBST(ENCODING_CP866)
|
2013-03-27 01:57:29 +04:00
|
|
|
fi
|
|
|
|
])
|