Re: Automake and directories

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

> On 2/17/06, Piotras <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> wrote:
> > Yes, that's why I created conf.d directory and moved example file there.
> > No directory is created.
> 
> Ah, I found the problem. It gets created in NONE/etc/midgard/conf.d!
> This happens because of the MGD_ETC_PATH="$prefix/etc" line in
> configure.in. $prefix is NONE unless the --prefix option has been
> given on the command line.

I am checking another option. Looks like it fails when configure and make is called 
from tarball created by make dist. I added these dirs to dist-hook.
 
> > > Is there a reason why we do not use the standard directory layout?
> >
> > It depends ;)
> > But I preffer /etc instead of /usr/etc.
> > I overwrite sysconfdir for this exception only.
> 
> Wouldn't it be better to allow users to decide for themselves? 

Datagard and  midgard-schema  expects configuration files under $prefix/etc.
Except /usr choosen as prefix.

Piotras