Stepan Kasal wrote: > Hello, > > On Mon, May 09, 2005 at 06:02:24PM +0200, Harald Dunkel wrote: > >>I tried to replace $(top_builddir) >>in a Makefile.am by $(abs_top_builddir), but the new >>Makefile did not define this macro. > > > Actually, this is a bug/feature of Automake, that these variables > are not propagated by default. > > A possible workaround is to place > AC_SUBST([abs_top_builddir]) > to your configure.ac. > It was easier to patch header-vars.am. See below. builddir is not set, so I skipped top_builddir, too. Regards Harri ------------------------------------------------------------------- diff -ur ../automake-1.9.5/lib/am/header-vars.am ./lib/am/header-vars.am --- ../automake-1.9.5/lib/am/header-vars.am 2003-06-02 09:08:40.000000000 +0200 +++ ./lib/am/header-vars.am 2005-05-10 10:26:44.000000000 +0200 @@ -18,7 +18,9 @@ ## 02111-1307, USA. srcdir = @srcdir@ +abs_srcdir = @abs_srcdir@ top_srcdir = @top_srcdir@ +abs_top_srcdir = @abs_top_srcdir@ VPATH = @srcdir@ @SET_MAKE@ @@ -38,6 +40,7 @@ ## Location of top build directory relative to this one. top_builddir = %TOPDIR% +abs_top_builddir = @abs_top_builddir@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf