Received: from eggs.gnu.org ([208.118.235.92]:50941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4snc-0005Fx-Jv for qemu-devel@nongnu.org; Fri, 24 Aug 2012 08:15:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4snQ-0002ij-CI for qemu-devel@nongnu.org; Fri, 24 Aug 2012 08:15:40 -0400 Received: from speedy.comstyle.com ([206.51.28.2]:31493 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4snQ-0002iV-4Q for qemu-devel@nongnu.org; Fri, 24 Aug 2012 08:15:28 -0400 Date: Fri, 24 Aug 2012 08:15:20 -0400 From: Brad Smith Message-ID: <20120824121516.GR29273@rox.home.comstyle.com> References: <20120824094738.GH29273@rox.home.comstyle.com> <50376BEF.5060206@redhat.com> <20120824120053.GQ29273@rox.home.comstyle.com> <50376D71.7070909@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50376D71.7070909@redhat.com> Subject: Re: [Qemu-devel] [PATCH] configure: some fixes for OpenBSD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , qemu-devel@nongnu.org On Fri, Aug 24, 2012 at 02:02:57PM +0200, Paolo Bonzini wrote: > Il 24/08/2012 14:00, Brad Smith ha scritto: > >>>>> > >> > OpenBSD's uname works as expected with the -s flag so remove the special > >>>>> > >> > handling when determining the target OS. Use arch -s to retrieve the > >>>>> > >> > hardware architecture as uname -m will return the meta architecture > >>>>> > >> > instead of the hardware architecture (.e.g. macppc vs powerpc). > >>> > > I'm afraid I think this patch is moving in the wrong direction. > >>> > > Wherever possible we should be using compiler checks like check_define, > >>> > > not looking at the output of 'uname' and the like. The former will > >>> > > work when cross compiling, and the latter will give the wrong answers. > >>> > > In some places we have that kind of 'look at uname/etc' check but > >>> > > we should be trying to reduce and eliminate it where possible. > >> > > >> > Right, we should support GNU triplets and a --host argument, and replace > >> > uname checks with pattern matching on the triplet. > > That still requires a means of generating that triplet in the first place. > > That's what GNU config.guess is for, but it is only used in the > non-cross-compilation case. QEMU's homegrown configure hardly > distinguishes between native and cross builds. OK well if you're going in that direction that's fine as config.guess knows how to do the right thing. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.