[Pkg-isocodes-devel] r779 - trunk/iso-codes
Alastair McKinstry
mckinstry at alioth.debian.org
Tue Jan 23 13:40:03 CET 2007
Author: mckinstry
Date: 2007-01-23 13:40:03 +0100 (Tue, 23 Jan 2007)
New Revision: 779
Modified:
trunk/iso-codes/configure.ac
trunk/iso-codes/rules.make
Log:
Patch from Lazlo (Laca) Peter to set MSGFMT_FLAGS according to OS,
so that iso-codes builds correctly on Solaris.
Modified: trunk/iso-codes/configure.ac
===================================================================
--- trunk/iso-codes/configure.ac 2007-01-20 11:55:18 UTC (rev 778)
+++ trunk/iso-codes/configure.ac 2007-01-23 12:40:03 UTC (rev 779)
@@ -32,8 +32,16 @@
AC_PROG_MAKE_SET
AC_PATH_PROG([MSGFMT],[msgfmt])
+AC_MSG_CHECKING([if $MSGFMT is GNU msgfmt])
+gnu_msgfmt=no
+MSGFMT_FLAGS=
+if $MSGFMT --version 2>&1 | grep GNU > /dev/null; then
+ gnu_msgfmt=yes
+ MSGFMT_FLAGS="--verbose --check"
+fi
+AC_MSG_RESULT($gnu_msgfmt)
+AC_SUBST(MSGFMT_FLAGS)
-
DOMAINS="iso_3166 iso_639 iso_4217 iso_3166_2 iso_639_3"
AC_SUBST([DOMAINS])
Modified: trunk/iso-codes/rules.make
===================================================================
--- trunk/iso-codes/rules.make 2007-01-20 11:55:18 UTC (rev 778)
+++ trunk/iso-codes/rules.make 2007-01-23 12:40:03 UTC (rev 779)
@@ -1,6 +1,6 @@
%.mo: %.po
- $(MSGFMT) --verbose --check $< -o $@
+ $(MSGFMT) $(MSGFMT_FLAGS) -o $@ $<
.PHONY: check-content
check-content:
More information about the Pkg-isocodes-devel
mailing list