Laurent Duflot <duflot@xxxxxxxxxxxx> writes:
> Not being an expert of autoconf, I wonder if you can differentiate
> between machine type and compiler. I am trying to get a port to
> Linux with another compiler (KAI C++ or KCC) and I had to unfold the
> "Linux IS gcc" in the makefiles.
This is one of the major reasons you want to do Autoconf-based
configuration and build for projects which are supposed to be easily
portable among UNIX- or UNIX-like systems. Your particular case would
be trivial, you'd do:
$ mysrcpath/configure CXX=KCC
$ make install
..and voila. No editing of files in the distribution necessary.
> Note also that things that could be thought of as machine depend
> like ar are in fact compiler dependent: KCC should be used instead
> of ar (I guess an archive tool must know of the mangling scheme of
> the compiler).
Autoconf handles this automatically for all known systems.
Regards,
Morten
|