]> git.donarmstrong.com Git - lilypond.git/commitdiff
Build: Disallow metapost versions 1.600 <= x < 1.803.
authorJulien Rioux <julien.rioux@gmail.com>
Mon, 9 Sep 2013 17:56:48 +0000 (19:56 +0200)
committerJulien Rioux <julien.rioux@gmail.com>
Wed, 18 Sep 2013 18:08:28 +0000 (14:08 -0400)
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

aclocal.m4

index 87d8474316adf7dced50154d180d117ff572ac0a..c9f0093381604ad131867608ef50e772de949f45 100644 (file)
@@ -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'