Subject: gcc check (was: CVS commit: pkgsrc/devel/stlport)
To: Martti Kuparinen <martti@netbsd.org>
From: Bernd Ernesti <netbsd@arresum.inka.de>
List: tech-pkg
Date: 03/03/2002 06:07:16
On Fri, Mar 01, 2002 at 12:56:52PM +0200, Martti Kuparinen wrote:
> 
> Module Name:	pkgsrc
> Committed By:	martti
> Date:		Fri Mar  1 10:56:52 UTC 2002
> 
> Modified Files:
> 	pkgsrc/devel/stlport: Makefile
> 
> Log Message:
> Added some .if ... .endif glue to detect the gcc version. Now systems with
> gcc 2.95.3 in /usr/bin don't need to build lang/gcc (pkg/15620).

Aehm, thats not a good test.

You are checking for ${CC} and asume that this is in /usr/bin.
People could add a 2.95.3 gcc into there path which comes before /usr/bin
and then your test would work, but you would use a gcc in /usr/bin which
could in fact be a old version.

Bernd