Hi,

I use some m4 macros in my configure.ac that produce a file called
aminclude.am in the top build directory.  In my Makefile.am files I try
to include this by putting

include $(top_builddir)/aminclude.am

but instead of it being a automake include, it just remains a make
include (and not portable amongst other problems).

If I put

include aminclude.am

or

include ./aminclude.am

it works great (the Makefile.in contains the automaked contents of both
the Makefile.am and aminclude.am), but VPATH builds break (as . may not
be the top_builddir).

Now I'm guessing it doesn't work when I use $(top_builddir), because
normally the value of variables are not known until later (like when
it's processed with the autoconf generated configure script) and in the
Makefile.in they are just set to @[EMAIL PROTECTED]  $(top_builddir) is an
exception to this as it has is value set correctly in the actual
Makefile.in, rather than just the Makefile.

Is there anyway I can refer to that value besides using $(top_builddir)
so that automake includes the file, rather than leaving it for make to
include?   Or is there anyway I can make it include the file, despite
using $(top_builddir) in the include? I did some %TOPBDIR_P% entries or
similar in some internal automake files, but couldn't find anything that
would get substituted correctly.

Thanks in advance for any help you can provide.

Cheers,

--
Tom Howard

Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x433B299A
begin:vcard
fn:Tom Howard
n:Howard;Tom
email;internet:[EMAIL PROTECTED]
tel;work:+61 2 8218 1500
tel;fax:+61 2 8218 1507
tel;cell:+61 402 756685
note;quoted-printable:Public Key: http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0x433B2=
	99A=0D=0A=
	=0D=0A=
	Microsoft Messenger ID: [EMAIL PROTECTED]
	Yahoo! Messenger ID: bjandtomau
x-mozilla-html:FALSE
version:2.1
end:vcard

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to