mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
CPPFLAGS->CFLAGS for detecting sse4.1 in preprocessor
Change-Id: I5ee839881c17c8f856aafad1ad2436179c5675d4
This commit is contained in:
parent
94055503e3
commit
2fc8b658b7
@ -99,13 +99,13 @@ AC_SUBST([AVX2_FLAGS])
|
|||||||
|
|
||||||
TEST_AND_ADD_CFLAGS([SSE41_FLAGS], [-msse4.1])
|
TEST_AND_ADD_CFLAGS([SSE41_FLAGS], [-msse4.1])
|
||||||
AS_IF([test -n "$SSE41_FLAGS"], [
|
AS_IF([test -n "$SSE41_FLAGS"], [
|
||||||
SAVED_CPPFLAGS=$CPPFLAGS
|
SAVED_CFLAGS=$CFLAGS
|
||||||
CPPFLAGS="$CPPFLAGS $SSE41_FLAGS"
|
CFLAGS="$CFLAGS $SSE41_FLAGS"
|
||||||
AC_CHECK_HEADER([smmintrin.h],
|
AC_CHECK_HEADER([smmintrin.h],
|
||||||
[AC_DEFINE(WEBP_HAVE_SSE41, [1],
|
[AC_DEFINE(WEBP_HAVE_SSE41, [1],
|
||||||
[Set to 1 if SSE4.1 is supported])],
|
[Set to 1 if SSE4.1 is supported])],
|
||||||
[SSE41_FLAGS=""])
|
[SSE41_FLAGS=""])
|
||||||
CPPFLAGS=$SAVED_CPPFLAGS])
|
CFLAGS=$SAVED_CFLAGS])
|
||||||
AC_SUBST([SSE41_FLAGS])
|
AC_SUBST([SSE41_FLAGS])
|
||||||
|
|
||||||
TEST_AND_ADD_CFLAGS([SSE2_FLAGS], [-msse2])
|
TEST_AND_ADD_CFLAGS([SSE2_FLAGS], [-msse2])
|
||||||
|
Loading…
Reference in New Issue
Block a user