Re: Automake and directories

Piotras <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> Fri, 17 Feb 2006 16:44:06 +0100
Newsgroups gmane.comp.web.midgard.devel
Message-ID <[email protected]>
Jukka Zitting <[email protected]> wrote:

> > I am not sure I follow you. This should returns constant defined in header.
> > Why function ten?
> 
> It's a difference between compile- and runtime configuration. For
> example if I first install midgard from standard binary packages, but
> would then want to compile a new version of the midgard-core library
> using custom directory paths. Now midgard-core would use the custom
> paths, but the higher level components would continue using the
> standard paths. Using a function guarantees that all components will
> always use the same locations.

OK, I think we are coming back to desktop application vs web based one. 
I think we can follow midgard config object and overwrite its properties 
on application level if needed. So "hardcoded" ( defined in header file ) data 
could be used unless overwitten by application.

Piotras