Hi list,

Recently, it was suggested to me (by wpoely86) that I could patch custom 
configure scripts so that they use the CC, CXX, F77 and F90 environment 
variables, in place of naming the compiler executables explicitly.

I have done this, but for some reason the configure script doesn’t pick these 
up, so that I get empty strings being used. This is obviously a problem as it 
breaks the installation.

I see that the configure script is called by means of run_cmd. If I call “env | 
sort” with run_cmd, the environment variables CC and F90 (for instance) are 
also unavailable. Perhaps this is because run_cmd spawns a new shell that just 
reads in from the resource files (.bashrc, etc.). I could presumably force the 
environment variables in with read_environment, but that seems a bit ugly and 
ad hoc. Is there a better way to do this?

Thanks,
Ben

Reply via email to