Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXIPA-0004Ag-Bb for qemu-devel@nongnu.org; Tue, 19 Jan 2010 13:02:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXIP5-0004A6-Ji for qemu-devel@nongnu.org; Tue, 19 Jan 2010 13:02:15 -0500 Received: from [199.232.76.173] (port=50575 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXIP5-00049v-DN for qemu-devel@nongnu.org; Tue, 19 Jan 2010 13:02:11 -0500 Received: from lo.gmane.org ([80.91.229.12]:45429) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXIP4-0001Pv-Sh for qemu-devel@nongnu.org; Tue, 19 Jan 2010 13:02:11 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NXIP0-0007mz-82 for qemu-devel@nongnu.org; Tue, 19 Jan 2010 19:02:06 +0100 Received: from unicorn.mansr.com ([78.86.181.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jan 2010 19:02:06 +0100 Received: from mans by unicorn.mansr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jan 2010 19:02:06 +0100 From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Date: Tue, 19 Jan 2010 18:01:36 +0000 Message-ID: References: <29350830.3036701263897341123.JavaMail.servlet@kundenserver> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: news Subject: [Qemu-devel] Re: Stop using "which" in ./configure List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Laurent Vivier writes: >> Hi >> >> Following the thread on the sdl-config patch, please find attached a >> patch to add a couple of portable shell functions which allow testing >> whehter a command/builtin is available and to find the full pathname of >> an executable in the PATH. This also replaces all uses of "which" in >> ./configure. (This should be applied on top of the sdl-config patch.) >> >> Thanks, > > Why don't you use "type -P" for "path_of" ?" The standard "type" has no options. -- Måns Rullgård mans@mansr.com