Received: from eggs.gnu.org ([208.118.235.92]:42374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4qjW-0007kb-TK for qemu-devel@nongnu.org; Fri, 24 Aug 2012 06:03:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4qjS-0006Ud-Kz for qemu-devel@nongnu.org; Fri, 24 Aug 2012 06:03:18 -0400 Received: from speedy.comstyle.com ([206.51.28.2]:7524 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4qjS-0006UR-GY for qemu-devel@nongnu.org; Fri, 24 Aug 2012 06:03:14 -0400 Date: Fri, 24 Aug 2012 06:03:09 -0400 From: Brad Smith Message-ID: <20120824100309.GJ29273@rox.home.comstyle.com> References: <20120824094738.GH29273@rox.home.comstyle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] configure: some fixes for OpenBSD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org On Fri, Aug 24, 2012 at 10:55:10AM +0100, Peter Maydell wrote: > On 24 August 2012 10:47, Brad Smith wrote: > > 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. Ah, ok. I thought maybe it could be simplified in favor of using uname more so. That's fine with me. I'll drop it. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.