]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
po: don't install gmo files when --disable-nls is given
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 25 Apr 2018 08:53:09 +0000 (09:53 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 5 Jun 2018 16:36:42 +0000 (17:36 +0100)
With --disable-nls is given we turn off use of gettext in the source
code, but mistakenly still installed the gmo files.

Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
m4/virt-nls.m4
po/Makefile.am

index f9fb27ceb5181fee0f37878433775e9e787a0fa3..be3c53fe4d72e1d19dfb301c1124e3c2786ce18c 100644 (file)
@@ -61,6 +61,7 @@ AC_DEFUN([LIBVIRT_CHECK_NLS],[
     msgfmt_is_gnu=no
   fi
   AC_MSG_RESULT([$msgfmt_is_gnu])
+  AM_CONDITIONAL([ENABLE_NLS], [test "x$enable_nls" = "xyes"])
   AM_CONDITIONAL([HAVE_GNU_GETTEXT_TOOLS],
     [test "x$XGETTEXT" != "xno" && test "x$MSGFMT" != "xno" && \
      test "x$MSGMERGE" != "xno" && test "x$msgfmt_is_gnu" != "xno"])
index 812c6324ac0fe1829a206c3dc439126a08604d50..da117edbd582b1e4e48fe7158acc6e44e9c037b7 100644 (file)
@@ -89,6 +89,8 @@ $(srcdir)/%.gmo: $(srcdir)/%.po
 
 endif HAVE_GNU_GETTEXT_TOOLS
 
+if ENABLE_NLS
+
 # Cannot use 'localedir' since this conflicts with autoconf.
 langinstdir = $(datadir)/locale
 
@@ -105,3 +107,5 @@ uninstall-hook:
          d=$(DESTDIR)$(langinstdir)/$$lang/LC_MESSAGES; \
          rm -f $$d/$(DOMAIN).mo; \
        done
+
+endif ENABLE_NLS