Re: at_top_builddir -> at_top_build_prefix / Autotest Versioning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Sat, Jul 02, 2005 at 12:32:54PM -0700, Noah Misch wrote:
> On Mon, Jun 27, 2005 at 11:36:31AM +0200, Stepan Kasal wrote:
> > I wrote a quick patch; please find it attached to this mail.  Is it OK?
> 
> This works for me in both version mismatch directions.

OK, I committed.  The patch is attached again, for the autoconf-patches list.

Stepan
2005-06-27  Stepan Kasal  <kasal@xxxxxx>

	* lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
	at_top_builddir, for compatibility with older autotest.
	* lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
	is not set, use at_top_builddir, for compatibility with older
	versions of autoconf.

Index: lib/autoconf/autotest.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/autotest.m4,v
retrieving revision 1.18
diff -u -r1.18 autotest.m4
--- lib/autoconf/autotest.m4	20 May 2005 08:13:16 -0000	1.18
+++ lib/autoconf/autotest.m4	27 Jun 2005 09:30:48 -0000
@@ -78,6 +78,9 @@
 at_top_build_prefix='$ac_top_build_prefix'
 abs_top_builddir='$ac_abs_top_builddir'
 
+# Backward compatibility with Autotest <= 2.59b:
+at_top_builddir=\$at_top_build_prefix
+
 AUTOTEST_PATH='m4_default([$2], [$1])'
 
 SHELL=\${CONFIG_SHELL-'$SHELL'}
Index: lib/autotest/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autotest/general.m4,v
retrieving revision 1.185
diff -u -r1.185 general.m4
--- lib/autotest/general.m4	21 Jun 2005 16:03:59 -0000	1.185
+++ lib/autotest/general.m4	27 Jun 2005 09:30:49 -0000
@@ -178,6 +178,9 @@
   . ./$at_file || AS_ERROR([invalid content: $at_file])
 done
 
+# Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
+: ${at_top_build_prefix=$at_top_builddir}
+
 # atconfig delivers names relative to the directory the test suite is
 # in, but the groups themselves are run in testsuite-dir/group-dir.
 if test -n "$at_top_srcdir"; then
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux