From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWX5K-0005RO-BC for qemu-devel@nongnu.org; Sat, 15 Sep 2007 08:49:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWX5H-0005RC-LY for qemu-devel@nongnu.org; Sat, 15 Sep 2007 08:49:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWX5H-0005R9-H1 for qemu-devel@nongnu.org; Sat, 15 Sep 2007 08:49:15 -0400 Received: from eastrmmtao106.cox.net ([68.230.240.48]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWX5H-0001ih-4G for qemu-devel@nongnu.org; Sat, 15 Sep 2007 08:49:15 -0400 Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao106.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070915124913.EFAR18594.eastrmmtao106.cox.net@eastrmimpo01.cox.net> for ; Sat, 15 Sep 2007 08:49:13 -0400 Message-ID: <22833083.1189860553344.JavaMail.root@eastrmwml11> Date: Sat, 15 Sep 2007 8:49:13 -0400 From: Ben Taylor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Solaris x86_64 configure patch Reply-To: sol10x86@cox.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org By default, uname -i returns i86pc on i386 or x86_64 system. This patch makes it possible to for Solaris systems to get the right hardware type. --- qemu.ORIG/configure 2007-08-24 21:37:51.000000000 -0400 +++ qemu/configure 2007-09-15 08:53:34.288345000 -0400 @@ -155,6 +155,12 @@ install="ginstall" needs_libsunmath="no" solarisrev=`uname -r | cut -f2 -d.` + # have to select again, because `uname -m` returns i86pc + # even on an x86_64 box. + solariscpu=`isainfo -k` + if test "${solariscpu}" = "amd64" ; then + cpu="x86_64" + fi if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then if test "$solarisrev" -le 9 ; then if test -f /opt/SUNWspro/prod/lib/libsunmath.so.1; then