Received: from eggs.gnu.org ([2001:4830:134:3::10]:50653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmIA5-0005rR-D2 for qemu-devel@nongnu.org; Mon, 19 May 2014 03:39:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmI9x-0004Nx-UO for qemu-devel@nongnu.org; Mon, 19 May 2014 03:39:05 -0400 Message-ID: <5379B510.6000907@weilnetz.de> Date: Mon, 19 May 2014 09:38:56 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1400336958-32463-1-git-send-email-sw@weilnetz.de> <1400480365.32155.21.camel@nilsson.home.kraxel.org> In-Reply-To: <1400480365.32155.21.camel@nilsson.home.kraxel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] configure: Automatically select GTK+ 3.0 if GTK+ 2.0 is unavailable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Am 19.05.2014 08:19, schrieb Gerd Hoffmann: > 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 That sounds reasonable, but would result in a non trivial change for all developers who build on a system with both GTK versions. I tried to preserve the current default (2.0) as far as possible. Stefan