Re: Automake and directories

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

> > Couldn't we just define these paths in configuration file?
> > You can get midgard config property value then and forget about setting it somehow.
> 
> Definitely. I'was just thinking about the default paths, used when a
> path is not defined in the configuration file. In fact I'd prefer that
> to be the only place where the static paths are used. The higher level
> tools should get the paths they need through the config API instead of
> using a header file or a global midgard_get_sysconfdir() function.

Absolutely. The reason why I didn't do it is some "mess" in header files 
and need to remove old code ( let's hope soon ). So we should be able then 
make cleaner and more readable things like this one.
 
> > Then :
> >         * you write application once
> >         * configure and build without need to define additional parameters
> >         * share among different environments even the same binaries
> 
> Sounds good!

OK, so I need your feedback for my roadmap draft of drafts.
If you can start to use such config  with 1.8 and midgard-java I will  write API 
proposal for OO midgard connection which will be pre1.9 feature and available 
in 1.8 as wrapper for midgard struct.

For those who are not famialir with midgard configuration file yet:
http://www.midgard-project.org/documentation/unified-configuration/

Piotras