From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYP1f-0002t9-DG for qemu-devel@nongnu.org; Wed, 07 Dec 2011 16:27:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYP1e-0006IV-0L for qemu-devel@nongnu.org; Wed, 07 Dec 2011 16:27:39 -0500 Received: from mout.web.de ([212.227.15.4]:58836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYP1d-0006IR-Kk for qemu-devel@nongnu.org; Wed, 07 Dec 2011 16:27:37 -0500 Message-ID: <4EDFDA0C.1020507@web.de> Date: Wed, 07 Dec 2011 22:26:36 +0100 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1323244048-6021-1-git-send-email-balrogg@gmail.com> <1323244048-6021-2-git-send-email-balrogg@gmail.com> In-Reply-To: <1323244048-6021-2-git-send-email-balrogg@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] configure: don't check for Cocoa when detecting SDL. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrzej Zaborowski Cc: qemu-devel@nongnu.org Am 07.12.2011 08:47, schrieb Andrzej Zaborowski: > The SDL check is supposed to set $sdl to "yes" or "no", but with that > check it leaves $sdl unset on darwin, unless --enable-cocoa was > specified (which is not needed to enable cocoa anyway). > > Signed-off-by: Andrzej Zaborowski > --- > configure | 4 +--- > 1 files changed, 1 insertions(+), 3 deletions(-) > > diff --git a/configure b/configure > index 678b982..fb15bc6 100755 > --- a/configure > +++ b/configure > @@ -1492,9 +1492,7 @@ EOF > if test "$_sdlversion" -lt 121 ; then > sdl_too_old=yes > else > - if test "$cocoa" = "no" ; then > - sdl=yes > - fi > + sdl=yes With no further explanation in the commit description I have doubts if this is really "safe". Cocoa actually masquerades as SDL in vl.c and has no display type of its own, so there may well be a real need to suppress SDL in the --enable-cocoa case. The #ifdef'fery may need to be sanitized first, at least fully reviewed. Also please cc me on Cocoa patches. Thanks, Andreas > fi > > # static link with sdl ? (note: sdl.pc's --static --libs is broken)