better compat with older libheif
We were looking for "yes" from the builtin_h265_decoder variable to enable heifload, but this variable was only added in libheif 1.3, so we failed to turn on heifload correctly. We now look for not "no", ie. default on. See https://github.com/libvips/build-win64/pull/26#issuecomment-490854408
This commit is contained in:
parent
3e60e816ed
commit
b2ad9f9df8
@ -930,12 +930,14 @@ if test x"$with_heif" != x"no"; then
|
||||
PKG_CHECK_MODULES(HEIF, libheif,
|
||||
[with_heif=yes
|
||||
have_h265_decoder=`$PKG_CONFIG libheif --variable builtin_h265_decoder`
|
||||
if test x"$have_h265_decoder" = x"yes"; then
|
||||
# test for !=no so that we work for older libheif which does not have
|
||||
# this variable
|
||||
if test x"$have_h265_decoder" != x"no"; then
|
||||
AC_DEFINE(HAVE_HEIF_DECODER,1,
|
||||
[define if your libheif has decode support.])
|
||||
fi
|
||||
have_h265_encoder=`$PKG_CONFIG libheif --variable builtin_h265_encoder`
|
||||
if test x"$have_h265_encoder" = x"yes"; then
|
||||
if test x"$have_h265_encoder" != x"no"; then
|
||||
AC_DEFINE(HAVE_HEIF_ENCODER,1,
|
||||
[define if your libheif has encode support.])
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user