Fix build if openjpeg-2 is installed

libopenjp2.so on Debian belongs actually to openjpeg-2.1, while
libopenjpeg.so belongs to openjpeg-1.5.

The function opj_set_default_decoder_parameters exists in both versions.
Thus another unique to openjpeg-1.5 function must be chosen to check,
whether libopenjp2 is a right one.

Fixes https://phab.enlightenment.org/T3064
This commit is contained in:
Andrey Gursky 2016-01-18 01:38:18 +01:00 committed by Stefan Schmidt
parent 6f684f3a6a
commit 0102cf663e
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ AC_CHECK_HEADER([openjpeg.h], [have_dep="yes"])
if test "x${have_dep}" = "xyes" ; then
AC_CHECK_LIB([openjp2],
[opj_set_default_decoder_parameters],
[opj_cio_open],
[
evas_image_loader_[]$1[]_libs="-lopenjp2"
have_dep="yes"