1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Fix webp test for Android

* configure.ac (HAVE_WEBP): Disable WebPGetInfo check when
REALLY_ANDROID.
This commit is contained in:
Po Lu 2023-03-09 14:57:45 +08:00
parent c99354042a
commit 745890de52

View File

@ -3455,12 +3455,13 @@ if test "${with_webp}" != "no"; then
CFLAGS="$CFLAGS $WEBP_CFLAGS" CFLAGS="$CFLAGS $WEBP_CFLAGS"
LIBS="$LIBS $WEBP_LIBS" LIBS="$LIBS $WEBP_LIBS"
AC_CHECK_FUNC([WebPGetInfo], [], AS_IF([test "$REALLY_ANDROID" != "yes"], [
[WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED" AC_CHECK_FUNC([WebPGetInfo], [],
HAVE_WEBP=no [WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED"
AS_UNSET([WEBP_LIBS]) HAVE_WEBP=no
AS_UNSET([WEBP_CFLAGS]) AS_UNSET([WEBP_LIBS])
EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])]) AS_UNSET([WEBP_CFLAGS])
EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])])])
CFLAGS=$OLD_CFLAGS CFLAGS=$OLD_CFLAGS
LIBS=$OLD_LIBS LIBS=$OLD_LIBS