ENABLE_GETTEXT was not being defined when --enable-gettext
was specified as a config option, neither the German or
Polish translations were working. Add this define to
builddefs.in
See commit e84ec15d in xfsprogs.
Signed-off-by: Ben Myers <bpm@xxxxxxx>
Index: xfsdump/include/builddefs.in
===================================================================
--- xfsdump.orig/include/builddefs.in
+++ xfsdump/include/builddefs.in
@@ -95,6 +95,10 @@ GCFLAGS = $(OPTIMIZER) $(DEBUG) \
-DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\" \
-DPACKAGE=\"$(PKG_NAME)\" -I$(TOPDIR)/include
+ifeq ($(ENABLE_GETTEXT),yes)
+GCFLAGS += -DENABLE_GETTEXT
+endif
+
# First, Global, Platform, Local CFLAGS
CFLAGS += $(FCFLAGS) $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
|