From 519c2796e52ea933f6de5a490aee1f1ab826ea5e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Jan 2016 22:54:36 +0300 Subject: Add support for custom NLS (without gettext). Add configure flag --enable-customnls Add empty directory in data/translations/manaplus for suctom translations (po files from /po directory) --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e6857f0f7..a27b69c19 100755 --- a/configure.ac +++ b/configure.ac @@ -409,6 +409,17 @@ esac],[checkplugin_enabled=false]) AM_CONDITIONAL(ENABLE_CHECKPLUGIN, test x$checkplugin_enabled = xtrue) +# Enable custom NLS +AC_ARG_ENABLE(customnls, +[ --enable-customnls Turn on build in translation system (NLS)], +[case "${enableval}" in + yes) customnls_enabled=true ;; + no) customnls_enabled=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-customnls) ;; +esac],[customnls_enabled=false]) + +AM_CONDITIONAL(ENABLE_CUSTOMNLS, test x$customnls_enabled = xtrue) + if test "x$naclbuild_enabled" == "xtrue"; then AC_CHECK_SDL() fi -- cgit v1.2.3-70-g09d2