configure: disable updates of po files if --without-po is given
authorAndreas Oberritter <obi@opendreambox.org>
Mon, 1 Nov 2010 16:23:53 +0000 (17:23 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 16 Nov 2010 16:15:38 +0000 (17:15 +0100)
configure.ac
po/Makefile.am

index c2d8d91..1f83b0f 100644 (file)
@@ -85,6 +85,11 @@ if test "$with_memcheck" = "yes"; then
        AC_DEFINE([MEMLEAK_CHECK],[1],[Define to 1 to enable memory leak checks])
 fi
 
+AC_ARG_WITH(po,
+       AS_HELP_STRING([--without-po],[disable updating of po files]),
+       [with_po="$withval"],[with_po="yes"])
+AM_CONDITIONAL(UPDATE_PO, test "$with_po" = "yes")
+
 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
 CXXFLAGS="$CXXFLAGS $BASE_CFLAGS $PTHREAD_CFLAGS $DEBUG_CFLAGS -fno-rtti -fno-exceptions -Wall"
 
index 53e65ae..e7318f7 100644 (file)
@@ -6,6 +6,7 @@ LANGPO = $(LANGS:=.po)
 
 EXTRA_DIST = $(LANGPO)
 
+if UPDATE_PO
 # the TRANSLATORS: allows putting translation comments before the to-be-translated line.
 enigma2-py.pot: $(top_srcdir)/*.py $(top_srcdir)/lib/python/*/*.py $(top_srcdir)/lib/python/Plugins/*/*/*.py
        $(XGETTEXT) -L Python --from-code=UTF-8 --add-comments="TRANSLATORS:" -d @PACKAGE_NAME@ -s -o $@ $^
@@ -22,6 +23,7 @@ enigma2.pot: enigma2-py.pot enigma2-xml.pot
        else \
                $(MSGINIT) -l $@ -o $@ -i $< --no-translator; \
        fi
+endif
 
 .po.mo:
        $(MSGFMT) -o $@ $<