summaryrefslogtreecommitdiff
path: root/src/configure.ac
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-07 20:44:40 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-07 20:44:40 +0200
commit62a88f498ac8d996bc976871cd80fcc14466f013 (patch)
treeb85479e576fa4ad685332d718452a9b53dbfc136 /src/configure.ac
parent125370459178b0ca3acc98edca774c390c9b9fa4 (diff)
downloadvim-git-62a88f498ac8d996bc976871cd80fcc14466f013.tar.gz
patch 8.1.1487: older msgfmt cannot generate proper .desktop filev8.1.1487
Problem: Older msgfmt cannot generate proper .desktop file. Solution: Add a configure check to not use this msgfmt version. (Ken Takata)
Diffstat (limited to 'src/configure.ac')
-rw-r--r--src/configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/configure.ac b/src/configure.ac
index 946c10d36..773844a0d 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -4302,8 +4302,14 @@ if test "$enable_nls" = "yes"; then
AC_MSG_CHECKING([if msgfmt supports --desktop])
MSGFMT_DESKTOP=
if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then
- AC_MSG_RESULT([yes])
- MSGFMT_DESKTOP="gvim.desktop vim.desktop"
+ if "$MSGFMT" --version | grep '0.19.[[3-7]]$' >/dev/null; then
+ dnl GNU gettext 0.19.7's --desktop is broken. We assume back to
+ dnl 0.19.3 is also broken.
+ AC_MSG_RESULT([broken])
+ else
+ AC_MSG_RESULT([yes])
+ MSGFMT_DESKTOP="gvim.desktop vim.desktop"
+ fi
else
AC_MSG_RESULT([no])
fi