Re: Automake and directories

Jukka Zitting <[email protected]> Fri, 17 Feb 2006 16:52:07 +0200
Newsgroups gmane.comp.web.midgard.devel
Message-ID <[email protected]>
Hi,

On 2/17/06, Piotras <[email protected]> wrote:
> midgard-schema gets this info from header files, so I should add sysconfdir option soon.
> Or maybe we could replace midgard-config with better header files?
> One doesn't have to compile midgard-apache module against mysql libraries, and
> it doesn't matter if you point to header files or to midgard-config while configuring it.

A better alternative for compiled programs that need to access the
configuration and other hardcoded directories directly would be to use
something like:

    extern const char *midgard_get_sysconfdir(void);

This way there won't be problems when the underlying midgard-core gets
recompiled with different paths.

Scripts like datagard should use midgard-config to get the correct paths.

BR,

Jukka Zitting

--
Yukatan - http://yukatan.fi/ - [email protected]
Software craftmanship, JCR consulting, and Java development