atril: Fix missing check with webkit 4.0 API.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2022-02-14 13:40:11 +07:00
parent dc5f74db87
commit 537250ac70
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -72,6 +72,7 @@ else
webkit=`pkg-config --exists webkit2gtk-4.1` webkit=`pkg-config --exists webkit2gtk-4.1`
if [ "$?" -eq 0 ]; then if [ "$?" -eq 0 ]; then
epub="--enable-epub" epub="--enable-epub"
API4.1=yes
else else
epub="--disable-epub" epub="--disable-epub"
fi fi
@ -92,7 +93,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
sed -i "s|webkit2gtk-4.0|webkit2gtk-4.1|g" configure.ac if [ "$API4.1" == "yes" ]; then
sed -i "s|webkit2gtk-4.0|webkit2gtk-4.1|g" configure.ac
fi
autoreconf -fiv autoreconf -fiv
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \