Subject: bug#61387: 30.0.50; Support webkit2gtk-4.1

From: Po Lu <[email-masked]>
Date: Thu, 09 Feb 2023 20:21:55 +0800

Ulrich Müller <[email-masked]> writes:

> Gentoo is transitioning from webkit2gtk-4.0 to 4.1,
> see downstream bug at <https://bugs.gentoo.org/893668>.
>
> Would it be possible to support webkit2gtk-4.1? IIUC there should be
> no API differences, so updating configure should be enough.
>
> The patch below adds a configure option --with-webkit2gtk=VALUE that
> allows to select version 4.0 or 4.1.
>
> I have tested this with the tip of the master branch (as of today),
> and it seems to build and work just fine with webkit2gtk-4.1.

I think it is ok to support both versions.  However, please make
configure search for both versions instead of making the user pick one
at configure time.

Thanks.