[OpenAFS-devel] configure not honoring 'CC' environment variable

Jeffrey Hutzelman jhutz@cmu.edu
Wed, 16 Mar 2005 19:57:18 -0500


On Monday, March 14, 2005 11:27:08 AM +0100 Harald Barth <haba@pdc.kth.se> 
wrote:

>
>> (e.g. most Solaris versions need the C compiler  from
>> the SUNWspro suite).
>
> I wrote configure 2 tests a long time ago which test if the Solaris or
> the AIX compiler are "good enough". Still waiting for them to be used.
>
> According to my view of things, folks setting CC should know what they
> do and the makefiles should not override it. For folk _not_ setting
> CC the makefiles can do what they figure is best.

Unfortunately, this is pretty hard to get right, because once the 
AC_PROG_CC test has run, there is really no way to tell if the resulting 
value of CC came from the user or from the test.  And it's pretty hard to 
get AC_PROG_CC not to run.

Further, I don't think it's reasonable to assume that folks setting CC on 
configure's command line understand the kernel compiler issue, or that 
people who do understand the issue necessarily want to override the kernel 
compiler whenever they set CC to select a userland compiler.


-- Jeffrey T. Hutzelman (N3NHS) <jhutz+@cmu.edu>
   Sr. Research Systems Programmer
   School of Computer Science - Research Computing Facility
   Carnegie Mellon University - Pittsburgh, PA