mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
f30e6ff283
Bundled libintl did not support linking to internal static libraries (libmc in our case): directly specified static libraries are not pulled by libtool and are not usable for dynamic libraries as PIC-related flags are not passed for compilation. This renders bundled libintl library unusable. The change drops libintl bundling support and always relies on external libintl (or falls back to disabled NLS). On a related note gettext-0.20 drops support for bundling or libintl and this change will ease migration to newer version. The change is tested on x86_64-gentoo-linux-musl: mc builds and links all tests successfully. A few tests fail for lack of NLS support. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
34 lines
955 B
Plaintext
34 lines
955 B
Plaintext
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
|
|
])
|