Benjamin Scherrey wrote:
>
> I'm trying to build some software that, as is typical, needs to figure
> out its host environment (like i586-pc-linux-gnu for example). I'm
> running Intel RedHat Linux 6.2 on my little old P100 Dell laptop and I
> believe that it initially did not have any problem with this. The only
> major modification I've made is that I d/l gcc-2.95.2 and built it
> from source then removed the egcs and gcc that came with RedHat.
>
> Now, unfortunately, it doesn't seem to be able to figure out its host
> settings any more from the configure scripts of any source that I try
> to build. What exactly is called to perform this function for the
> automake configure scripts? uname -a, for example, returns correct
> information but I don't know why this stuff's failing now.
On a linux system, some autoconf scripts compile a small C program to
determine the host type. The CC environment variable is used to
determine the name/location of the C compiler. If that variable is not
set, then 'cc' is used as the compiler. On RedHat systems /usr/bin/cc
is a symbolic link to /usr/bin/gcc. Since previous versions of egcs and
gcc where blown away and gcc-2.95.2 was not installed in /usr/bin (I
presume), the scripts were unable to find a compiler and resolve your
host type.
The easiest thing to do is point /usr/bin/cc to the location of your
compiler or set the CC environment variable.
--
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.