summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Rioux <julien.rioux@gmail.com>2013-09-09 19:56:48 +0200
committerJulien Rioux <julien.rioux@gmail.com>2013-09-18 14:08:28 -0400
commit29b05c33ce2a1b0ee671afb52d23a40e5fb26a39 (patch)
treed8f321275b1d699e16e19826cbdc15e1fa1f0a88
parent92b74608ea370b869bacb82d293decddfe4f8565 (diff)
Build: Disallow metapost versions 1.600 <= x < 1.803.
Add a check in ./configure to avoid buggy versions of metapost starting with the rewrite that occured in the 1.600 series and finally fixed in version 1.803 and later. Fixes issue 3539: Configure should forbid mpost 1.802 from TexLive 2013 http://code.google.com/p/lilypond/issues/detail?id=3539
-rw-r--r--aclocal.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 87d8474316..c9f0093381 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1167,6 +1167,14 @@ AC_DEFUN(STEPMAKE_TEXMF_DIRS, [
AC_DEFUN(STEPMAKE_TEXMF, [
STEPMAKE_PROGS(METAFONT, mf-nowin mf mfw mfont, $1)
STEPMAKE_PROGS(METAPOST, mpost, $1)
+ if test "$METAPOST" != ""; then
+ ver=`STEPMAKE_GET_VERSION($METAPOST)`
+ num=`STEPMAKE_NUMERIC_VERSION($ver)`
+ # Avoid buggy metapost versions: 1.600 <= x < 1.803
+ if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
+ STEPMAKE_ADD_ENTRY($1, ["mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"])
+ fi
+ fi
AC_MSG_CHECKING(for working metafont mode)
modelist='ljfour lj4 lj3 lj2 ljet laserjet'