Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HlmgG-0005tL-Ct for qemu-devel@nongnu.org; Wed, 09 May 2007 09:58:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HlmgE-0005sK-Qd for qemu-devel@nongnu.org; Wed, 09 May 2007 09:58:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HlmgE-0005sH-Ns for qemu-devel@nongnu.org; Wed, 09 May 2007 09:58:10 -0400 Received: from mail7.worldserver.net ([217.13.200.27]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HlmZ1-0005YG-Ia for qemu-devel@nongnu.org; Wed, 09 May 2007 09:50:43 -0400 Subject: Re: [Qemu-devel] [PATCH] configure From: Joachim Henke In-Reply-To: <200705090851.l498pIUN022707@imap.tools.intra> References: <200705090851.l498pIUN022707@imap.tools.intra> Content-Type: text/plain Date: Wed, 09 May 2007 15:50:16 +0200 Message-Id: <1178718616.6235.60.camel@w4skkosy0000147> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: 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 On Wed, 2007-05-09 at 10:51 +0200, Juergen Keil wrote: > Isn't the use of "which" wrong, anyway? > > "which" belongs to csh/tcsh, and tells you about csh's/tcsh's idea > about a command or a csh command alias. > > IMO, for a /bin/sh (or bash) script, using the "type" command would > be a better idea. Yes, 'which' is not reliable. I already posted a patch regarding Mac OS X here: http://lists.gnu.org/archive/html/qemu-devel/2007-04/msg00649.html It fixes gcc detection only, because the other tools, that are detected by which, are installed anyway. This is of course not clean, but worked for the time. -- Joachim Henke http://base91.sourceforge.net/j-o/