Hi Rohnny, * Rohnny Moland wrote on Tue, Mar 15, 2005 at 10:46:13PM CET: > > I am trying to include my own local m4 macros to a project. In the automake > documentation I read that the preferred way to do this would be to add the > following line to the Makefile.am file: > > ACLOCAL_AMFLAGS = -I m4 > > ..where m4 is the directory where I put my macros. Unfortunately when I run > aclocal, the macros in the m4 directory are not added to aclocal.m4. Am I > missing something here?
Are there by any chance lines like this | m4_include([m4/your_macro_file.m4]) at the end of aclocal.m4? Then everything should work fine. Oh, or are you invoking aclocal directly? Then you should do aclocal -I m4 ACLOCAL_AMFLAGS are only respected by the rebuilding rules put in Makefile.in and by autoreconf. > If I add the macros to acinclude.m4 it works fine. > > I am using SuSE 9.2 and automake 1.9.1-4. Regards, Ralf
