From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fcs1I-0007Rg-Uh for qemu-devel@nongnu.org; Sun, 07 May 2006 18:46:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fcs1H-0007R9-4O for qemu-devel@nongnu.org; Sun, 07 May 2006 18:46:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fcs1G-0007R6-Uq for qemu-devel@nongnu.org; Sun, 07 May 2006 18:46:30 -0400 Received: from [212.20.112.165] (helo=pavel.int.rudna.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fcs1y-0000OU-Ck for qemu-devel@nongnu.org; Sun, 07 May 2006 18:47:14 -0400 From: Pavel@Janik.cz (Pavel =?iso-8859-2?Q?Jan=EDk?=) Subject: Re: [Qemu-devel] -cc checking wrong In-Reply-To: <87aca2qjj9.fsf@Janik.cz> (Pavel =?iso-8859-2?Q?Jan=EDk's?= message of "Mon, 01 May 2006 09:41:14 +0200") Date: Mon, 08 May 2006 00:46:24 +0200 Message-ID: <87d5eppicn.fsf@Janik.cz> References: <87aca2qjj9.fsf@Janik.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable 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 From: Pavel@Janik.cz (Pavel Jan=EDk) Date: Mon, 01 May 2006 09:41:14 +0200 > pavel@paveljanik:/tmp/QEMU/qemu-cvs> ./configure --cc=3D"ccache gcc" > Compiler ccache gcc could not be found > pavel@paveljanik:/tmp/QEMU/qemu-cvs>=20 This comes from revision 1.93 date: 2006-04-23 16:35:23 +0200; author: bellard; state: Exp; lines: += 5 -0 check if specified compiler exists configure contains: if [ ! -x "`which $cc`" ] ; then echo "Compiler $cc could not be found" exit fi You should check if the command compiles, not if it exists and is executa= ble. --=20 Pavel Jan=EDk Two wrongs do not make a right. -- Linus Torvalds in linux-kernel