aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-09-25 18:08:59 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-09-25 18:08:59 +0000
commit2b0913ff2ad71fc7411acdc75c1fdac747fcacee (patch)
tree7555db2dc48977b9e95b9e5b3879bf06ae42f717 /acinclude.m4
parentcheck header locale.h (diff)
downloadw3m-2b0913ff2ad71fc7411acdc75c1fdac747fcacee.tar.gz
w3m-2b0913ff2ad71fc7411acdc75c1fdac747fcacee.zip
add posubst, compile-time message l10n
* Makefile.in: @POSUBST@ * acinclude.m4(AC_W3M_M17N): add POSUBST, POLANG --enable-messagel10n * configure.in (W3M_LANG): subst (AM_GET_GNUTEXT): if messagel10n enabled, don't use NLS (AC_OUTOUT): add posubst, chmod +x * menu.c: remove if LANG == JA messages * rc.c: ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--acinclude.m419
1 files changed, 17 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index e8ae6f3..e92d7d8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -141,6 +141,8 @@ AC_SUBST(WCCFLAGS)
AC_SUBST(DISPLAY_CHARSET)
AC_SUBST(SYSTEM_CHARSET)
AC_SUBST(DOCUMENT_CHARSET)
+AC_SUBST(POSUBST)
+AC_SUBST(POLANG)
WCTARGET=""; WCCFLAGS=""; wcinclude=""; wclib=""
AC_MSG_CHECKING(if m17n support is enabled)
AC_ARG_ENABLE(m17n,
@@ -179,10 +181,23 @@ else
fi
AC_DEFINE(USE_UNICODE)
fi
+ AC_MSG_CHECKING(if message l10n)
+ AC_ARG_ENABLE(messagel10n,
+ [ --enable-messagel10n=LL message l10n instead of NLS],,
+ [enable_messagel10n="no"])
+ if test x$enable_messagel10n = xyes; then
+ enable_messagel10n="ja";
+ fi
+ AC_MSG_RESULT($enable_messagel10n)
+ if test x$enable_messagel10n = xno; then
+ :
+ else
+ POSUBST="\$(top_srcdir)/posubst"
+ POLANG="$enable_messagel10n"
+ fi
AC_MSG_CHECKING(if japanese support is enabled)
AC_ARG_ENABLE(japanese,
- [ --enable-japanese=CODE support Japanese message instead of NLS
- CODE=(S|E|J|U)],,
+ [ --enable-japanese=CODE support Japanese CODE=(S|E|J|U)],,
[enable_japanese="no"])
AC_MSG_RESULT($enable_japanese)
if test x"$enable_japanese" = xno; then