>Alas, it wouldn't... If some Pike C module runs aclocal it could pull in
>both the pike's aclocal.m4 and other files with, possibly, macros that are
>already defined in the pike's aclocal.m4 file. I doubt autoconf is smart
>enough to cope with it ;)
I think you're confusing several things here. Autoconf, automake, the
aclocal program (more or less a part of automake), and the aclocal.m4
file are not all used together and are not using the same conventions.
aclocal.m4 existed long before automake, and it plays the same role
that acinclude.m4 plays in automakeified projects. It's a
*handwritten* file included by autoconf, specific to the project being
built.
The aclocal proram is a later invention that constructs an aclocal.m4
file from various fragments stored somewhere under share.
Pike uses autoconf, and uses aclocal.m4 the the way it was intended
when autoconf was first written. It does *not* use automake, and it
does *not* use the aclocal program. It's aclocal.m4 is *not* intended
to ever be picked up by the aclocal program.
So the main poitn here is that any debian policy that has to do with
automake and the aclocal program is totally irrelevant to pike.
(The only excuse for automake and the aclocal program to start to use
the good old aclocal.m4 file in a new way is that autoconf was
unmaintained for so many years).
/Niels
/ Niels Möller (vässar rödpennan)
Previous text:
>2004-01-26 21:27:
>Subject: Re: Pike @ Debian
>--------------------------------------------------------------------
>On Mon, Jan 26, 2004 at 08:55:02PM +0100, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum scribbled:
>> >dynamic_module_makefile+specs, aclocal.m4, precompile* and the headers must
>> >_all_ go in separate directories. It doesn't seem there is a simple hack to
>> >work around it. aclocal.m4 (as Martin already said) would have to be a)
>> >cleaned up from the non-pike cruft, b) put in /usr/share/misc -
>>
>> Would it help it it was called something other than "aclocal.m4"?
>> It's an internal file to the pike build system, so it's frankly only
>> Pikes business what it contains.
>Alas, it wouldn't... If some Pike C module runs aclocal it could pull in
>both the pike's aclocal.m4 and other files with, possibly, macros that are
>already defined in the pike's aclocal.m4 file. I doubt autoconf is smart
>enough to cope with it ;)
>
>> > autoconf would find it there.
>>
>> autoconf is not _supposed_ to find it, except when pointed to it by
>> the build system. The rules are internal and not useful in a
>> stand-alone configure script.
>Then putting it in a system-wide location is not justified. And its sole
>existence outside the pike interpreter build process seems to be
>questionable in that light...
>
>> Can you give some kind of motivation at to what benefit your "rules"
>> bring to the user? They seem pretty pointless and anal to me.
>First of all, they aren't mine. Second of all, they serve the purpose of
>keeping the stuff where it belongs and where anyone can find it knowing only
>the type of the resource they're looking for (e.g. autoconf macros ->
>/usr/share/aclocal, C header files -> /usr/include/*, application specific
>shareable stuff -> /usr/share/applicationname/*). It's in the Unix
>spirit, according to LSB and done that way to faciliate sharing
>architecture-independent stuff between machines on the LAN or WAN. All the
>architecture-independent stuff goes in /usr/share which can be shared via
>NFS accross the machines on your LAN. Anything that is not
>architecture-independent must NOT go in /usr/share, obviously (so the Pike
>.o files can't, for instance).
>
>> >No, the system is nowhere near flexible. It would be so much easier to
>> >simply provide a pike.m4 file...
>>
>> I'd say Debian is much less flexible than the build system is.
>Why didn't I expect a different conclusion?
>
>marek
>
>
>
> / Brevbäraren
>