dsp.h: respect --disable-sse2/sse4.1/neon

previously this would be overridden if the instruction set was enabled
via -msse4.1, __aarch64__, etc.

Change-Id: I51e87a7da7589c6093d260b848ab41d89ec7b990
This commit is contained in:
James Zern
2021-07-16 19:27:32 -07:00
parent a89a3230c9
commit ece18e5520
2 changed files with 10 additions and 5 deletions

View File

@ -259,6 +259,9 @@ AS_IF([test "x$enable_neon" != "xno"], [
*android*) AC_CHECK_HEADERS([cpu-features.h]) ;;
esac
;;
aarch64*|arm64*)
AC_DEFINE(WEBP_HAVE_NEON, [1], [Set to 1 if NEON is supported])
;;
esac
AC_SUBST([NEON_FLAGS])])