dnl Check for recommended ocaml-gettext tool.
AC_CHECK_PROG(OCAML_GETTEXT,ocaml-gettext,ocaml-gettext)
+dnl Check for msgfmt tool.
+AC_CHECK_PROG(MSGFMT,msgfmt,msgfmt)
+
dnl Check for optional NSIS (for building a Windows installer).
dnl XXX NSIS support is probably broken at the moment XXX
AC_ARG_WITH([nsis],
LINGUAS = $(shell cat LINGUAS)
SOURCES = POTFILES
+MSGFMT = @MSGFMT@
+
OCAML_GETTEXT = @OCAML_GETTEXT@
OCAML_GETTEXT_EXTRACT_OPTIONS =
OCAML_GETTEXT_COMPILE_OPTIONS =
clean:: clean-po
%.mo: %.po
- $(OCAML_GETTEXT) --action compile $(OCAML_GETTEXT_COMPILE_OPTIONS) \
- --compile-output $@ $^
+ $(MSGFMT) -o $@ $^
%.pot: $(SOURCES) $(shell cat $(SOURCES))
$(OCAML_GETTEXT) --action extract $(OCAML_GETTEXT_EXTRACT_OPTIONS) \