16 |
API_MINOR="3" |
API_MINOR="3" |
17 |
|
|
18 |
dnl NASM/YASM version requirement |
dnl NASM/YASM version requirement |
19 |
minimum_yasm_minor_version=8 |
minimum_yasm_major_version=1 |
20 |
minimum_nasm_minor_version=0 |
minimum_nasm_minor_version=0 |
21 |
minimum_nasm_major_version=2 |
minimum_nasm_major_version=2 |
22 |
nasm_prog="nasm" |
nasm_prog="nasm" |
355 |
dnl Checking yasm version |
dnl Checking yasm version |
356 |
dnl |
dnl |
357 |
AC_MSG_CHECKING([for yasm version]) |
AC_MSG_CHECKING([for yasm version]) |
358 |
yasm_minor=`$yasm_prog --version | cut -d '.' -f 2 | cut -d ' ' -f 1` |
yasm_major=`$yasm_prog --version | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 2` |
359 |
if test -z $yasm_minor ; then |
if test -z $yasm_major ; then |
360 |
yasm_minor=-1 |
yasm_major=-1 |
361 |
fi |
fi |
362 |
AC_MSG_RESULT([$yasm_minor]) |
AC_MSG_RESULT([$yasm_major]) |
363 |
|
|
364 |
dnl Actually, yasm >= 0.7.99.2161 should be ok |
dnl Actually, yasm >= 0.7.99.2161 should be ok |
365 |
dnl But I'm too lazy to check also the patch version... |
dnl But I'm too lazy to check also the patch version... |
366 |
if test "$yasm_minor" -lt "$minimum_yasm_minor_version" ; then |
if test "$yasm_major" -lt "$minimum_yasm_major_version" ; then |
367 |
AC_MSG_WARN([yasm version is too old]) |
AC_MSG_WARN([yasm version is too old]) |
368 |
else |
else |
369 |
found_nasm_comp_prog="yes" |
found_nasm_comp_prog="yes" |