[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] configure: Automatically select GTK+ 3.0 if GTK
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH] configure: Automatically select GTK+ 3.0 if GTK+ 2.0 is unavailable |
Date: |
Mon, 19 May 2014 08:19:25 +0200 |
Hi,
> +if test "$gtkabi" = ""; then
> + # The GTK ABI was not specified explicitly, so try whether 2.0 is
> available.
> + # Use 3.0 as a fallback if that is available.
> + if $pkg_config --exists "gtk+-2.0 >= 2.18.0"; then
> + gtkabi=2.0
> + elif $pkg_config --exists "gtk+-3.0 >= 3.0.0"; then
> + gtkabi=3.0
> + else
> + gtkabi=2.0
> + fi
> +fi
Shouldn't we probe for gtk3 first?
cheers,
Gerd