From 8daad02cf03b9cef0bc47c068cf216d5971c543b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 14 Dec 2004 09:43:38 +0000 Subject: [PATCH] check in configure if xgettext supports lisp SVN-Revision: 2254 --- TRANSLATORS | 3 ++- configure.ac | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/TRANSLATORS b/TRANSLATORS index 998d235e7..20ffb7c92 100644 --- a/TRANSLATORS +++ b/TRANSLATORS @@ -4,7 +4,8 @@ * Install gettext * get a cvs snapshot of supertux and do the usual autogen.sh, configure. Make sure configure can find the xgettext application. - (ie. "checking for xgettext... xgettext") + (ie. "checking for xgettext... xgettext" + and "checking if xgettext supports Lisp... yes") * Run 'jam' and let it compile supertux and create all the messages.po files * Go into data/locale and data/levels/*/ and in each dir do: - In case you want to create a new translation do diff --git a/configure.ac b/configure.ac index 65568c034..699bf968d 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,16 @@ AC_PROG_CXX AC_PROG_INSTALL AC_CHECK_PROGS(XGETTEXT, xgettext) +if test -n "$XGETTEXT" ; then + AC_MSG_CHECKING([if xgettext supports lisp]) + if echo '(gettext "test")' | xgettext -o - -L Lisp - >& /dev/null; then + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + AC_MSG_WARN([It seems your gettext installation is too old, try updating it]) + XGETTEXT="" + fi +fi dnl Checks for header files. AC_HEADER_DIRENT -- 2.11.0