17 |
|
|
18 |
dnl NASM version requirement |
dnl NASM version requirement |
19 |
minimum_nasm_patch_version=34 |
minimum_nasm_patch_version=34 |
20 |
|
minimum_nasm_minor_version=99 |
21 |
|
minimum_nasm_major_version=2 |
22 |
nasm_prog="nasm" |
nasm_prog="nasm" |
23 |
yasm_prog="yasm" |
yasm_prog="yasm" |
24 |
|
|
358 |
fi |
fi |
359 |
|
|
360 |
dnl if yasm hasn't been found, then check for nasm (not buggy version) |
dnl if yasm hasn't been found, then check for nasm (not buggy version) |
361 |
if test "$found_nasm_comp_prog" = "no" -a "$ARCHITECTURE" != "X86_64" ; then |
if test "$found_nasm_comp_prog" = "no" ; then |
362 |
AC_CHECK_PROG([ac_nasm], [$nasm_prog], [yes], [no], , [yes]) |
AC_CHECK_PROG([ac_nasm], [$nasm_prog], [yes], [no], , [yes]) |
363 |
if test "$ac_nasm" = "yes" ; then |
if test "$ac_nasm" = "yes" ; then |
364 |
dnl |
dnl |
366 |
dnl |
dnl |
367 |
AC_MSG_CHECKING([for nasm patch version]) |
AC_MSG_CHECKING([for nasm patch version]) |
368 |
nasm_patch=`$nasm_prog -r | cut -d '.' -f 3 | cut -d ' ' -f 1` |
nasm_patch=`$nasm_prog -r | cut -d '.' -f 3 | cut -d ' ' -f 1` |
369 |
|
nasm_minor=`$nasm_prog -v | cut -d '.' -f 2 | cut -d ' ' -f 1` |
370 |
|
nasm_major=`$nasm_prog -v | cut -d '.' -f 1 | cut -d ' ' -f 3` |
371 |
if test -z $nasm_patch ; then |
if test -z $nasm_patch ; then |
372 |
nasm_patch=-1 |
nasm_patch=-1 |
373 |
fi |
fi |
374 |
|
if test -z $nasm_minor ; then |
375 |
|
nasm_minor=-1 |
376 |
|
fi |
377 |
|
if test -z $nasm_major ; then |
378 |
|
nasm_major=-1 |
379 |
|
fi |
380 |
AC_MSG_RESULT([$nasm_patch]) |
AC_MSG_RESULT([$nasm_patch]) |
381 |
|
|
382 |
|
dnl need nasm 2.x for SSE3/4 and X86_64 |
383 |
if test "$nasm_patch" -lt "$minimum_nasm_patch_version" ; then |
if test "$nasm_major" -lt "$minimum_nasm_major_version" ; then |
384 |
AC_MSG_WARN([nasm patch version is too old]) |
AC_MSG_WARN([nasm version is too old]) |
385 |
else |
else |
386 |
found_nasm_comp_prog="yes" |
found_nasm_comp_prog="yes" |
387 |
chosen_asm_prog="$nasm_prog" |
chosen_asm_prog="$nasm_prog" |