mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 14:34:33 +02:00
configure: set WEBP_HAVE_AVX2 when available
this is used to set WEBP_USE_AVX2 in files where the build flag won't be used, i.e., dsp/enc.c, which enables VP8EncDspInitAVX2() to be called Change-Id: I362f4ba39ca40d3e07a081292d5f743c649d9d7f
This commit is contained in:
@ -60,6 +60,11 @@ TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wvla])
|
||||
AC_SUBST([AM_CFLAGS])
|
||||
|
||||
TEST_AND_ADD_CFLAGS([AVX2_FLAGS], [-mavx2])
|
||||
# Assume the presence of any flag is enough. This could be made more robust
|
||||
# with a header and/or compile check if needed.
|
||||
AS_IF([test -n "$AVX2_FLAGS"], [
|
||||
AC_DEFINE(WEBP_HAVE_AVX2, [1],
|
||||
[Set to 1 if AVX2 is supported])])
|
||||
AC_SUBST([AVX2_FLAGS])
|
||||
|
||||
dnl === CLEAR_LIBVARS([var_pfx])
|
||||
|
Reference in New Issue
Block a user