info-inventor-dev
[Top] [All Lists]

Re: Build process

To: Laurent Duflot <duflot@xxxxxxxxxxxx>
Subject: Re: Build process
From: Morten Eriksen <mortene@xxxxxx>
Date: 23 Aug 2000 12:06:24 +0200
Cc: info-inventor-dev@xxxxxxxxxxx
In-reply-to: Laurent Duflot's message of "Wed, 23 Aug 2000 11:51:04 +0200 (MET DST)"
References: <Pine.OSF.4.21.0008231143160.31090-100000@asc>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
User-agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
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

<Prev in Thread] Current Thread [Next in Thread>