atril: Support both Webkit2gtk API 4.0 and 4.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2022-02-05 23:00:32 +07:00
parent 4fd6192a35
commit 918886cfda
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -63,12 +63,18 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
# check webkitgtk existence # check webkit2gtk 4.0 API existence
webkit=`pkg-config --exists webkit2gtk-4.1` webkit=`pkg-config --exists webkit2gtk-4.0`
if [ "$?" -eq 0 ]; then if [ "$?" -eq 0 ]; then
epub="--enable-epub" epub="--enable-epub"
else else
# check webkit2gtk 4.1 API existence
webkit=`pkg-config --exists webkit2gtk-4.1`
if [ "$?" -eq 0 ]; then
epub="--enable-epub"
else
epub="--disable-epub" epub="--disable-epub"
fi
fi fi
set -e set -e