diff --git a/configure.ac b/configure.ac index 5b363fb..9529572 100644 --- a/configure.ac +++ b/configure.ac @@ -1733,19 +1733,23 @@ AC_SUBST(CCAS) # If the user provided its Yasm, check it seems functional MPIR_AS="" -if test -z "$with_yasm"; then - echo "Looking for a system-wide yasm..." - MPIR_AS=`which yasm` - if test $? -ne 0; then - AC_MSG_ERROR([no system-wide yasm found]) - fi -else - MPIR_AS="$with_yasm" -fi -echo "Checking yasm..." -if ! test -f "$MPIR_AS" || ! test -x "$MPIR_AS"; then - AC_MSG_ERROR([$MPIR_AS does not seem functional]) -fi +case $host in + X86_PATTERN | X86_64_PATTERN) + if test -z "$with_yasm"; then + echo "Looking for a system-wide yasm..." + MPIR_AS=`which yasm` + if test $? -ne 0; then + AC_MSG_ERROR([no system-wide yasm found]) + fi + else + MPIR_AS="$with_yasm" + fi + echo "Checking yasm..." + if ! test -f "$MPIR_AS" || ! test -x "$MPIR_AS"; then + AC_MSG_ERROR([$MPIR_AS does not seem functional]) + fi + ;; +esac AC_SUBST(MPIR_AS) # The C++ compiler, if desired.