[XviD-devel] Yasm 1.0.x version

Takashi Mochizuki mochi at da2.so-net.ne.jp
Sun Jun 6 03:45:11 CEST 2010


Chris,

> This doesn't work anymore, since yasm has finally reached version 1.0.1, and 0 
> < 8. Therefore yasm is not used anymore,

I have tried to patch using yasm 1.0.0.2319 using tiny patch.
It seems to function well; x86 asm and ppc asm are compiled as is.

Build env: MacOS X 10.6.3

--- configure.in.org	2009-10-05 18:55:46.000000000 +0900
+++ configure.in	2010-06-06 10:15:52.000000000 +0900
@@ -16,7 +16,7 @@
 API_MINOR="3"
 
 dnl NASM/YASM version requirement
-minimum_yasm_minor_version=8
+minimum_yasm_major_version=1
 minimum_nasm_minor_version=0
 minimum_nasm_major_version=2
 nasm_prog="nasm"
@@ -355,15 +355,15 @@
        dnl Checking yasm version
        dnl
        AC_MSG_CHECKING([for yasm version])
-       yasm_minor=`$yasm_prog --version | cut -d '.' -f 2 | cut -d ' ' -f 1`
-       if test -z $yasm_minor ; then
-          yasm_minor=-1
+       yasm_major=`$yasm_prog --version | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 2`
+       if test -z $yasm_major ; then
+          yasm_major=-1
        fi
-       AC_MSG_RESULT([$yasm_minor])
+       AC_MSG_RESULT([$yasm_major])
 
        dnl Actually, yasm >= 0.7.99.2161 should be ok
        dnl But I'm too lazy to check also the patch version...
-       if test "$yasm_minor" -lt "$minimum_yasm_minor_version" ; then
+       if test "$yasm_major" -lt "$minimum_yasm_major_version" ; then
          AC_MSG_WARN([yasm version is too old])
        else
          found_nasm_comp_prog="yes"



More information about the Xvid-devel mailing list