changeset: 79782:b78e97b84f35 branch: 3.3 parent: 79778:66959d419369 parent: 79781:65b3c41052b6 user: Trent Nelson date: Wed Oct 17 04:47:31 2012 -0400 files: Makefile.pre.in configure configure.ac description: Issue #15819: use standard autoconf preset output variables. Reported by: Roumen Petrov diff -r 66959d419369 -r b78e97b84f35 Makefile.pre.in --- a/Makefile.pre.in Wed Oct 17 04:23:50 2012 -0400 +++ b/Makefile.pre.in Wed Oct 17 04:47:31 2012 -0400 @@ -27,7 +27,8 @@ VERSION= @VERSION@ srcdir= @srcdir@ VPATH= @srcdir@ -BUILDDIR= @BUILDDIR@ +abs_srcdir= @abs_srcdir@ +abs_builddir= @abs_builddir@ CC= @CC@ diff -r 66959d419369 -r b78e97b84f35 configure --- a/configure Wed Oct 17 04:23:50 2012 -0400 +++ b/configure Wed Oct 17 04:47:31 2012 -0400 @@ -715,7 +715,6 @@ HGTAG HGVERSION BASECPPFLAGS -BUILDDIR target_alias host_alias build_alias @@ -2721,10 +2720,8 @@ -BUILDDIR="`pwd`" - - -if test "$srcdir" != "." -a "$srcdir" != "$BUILDDIR"; then + +if test "$abs_srcdir" != "$abs_builddir"; then # If we're building out-of-tree, we need to make sure the following # resources get picked up before their $srcdir counterparts. # Objects/ -> typeslots.inc diff -r 66959d419369 -r b78e97b84f35 configure.ac --- a/configure.ac Wed Oct 17 04:23:50 2012 -0400 +++ b/configure.ac Wed Oct 17 04:47:31 2012 -0400 @@ -9,10 +9,8 @@ AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/) -BUILDDIR="`pwd`" -AC_SUBST(BUILDDIR) AC_SUBST(BASECPPFLAGS) -if test "$srcdir" != "." -a "$srcdir" != "$BUILDDIR"; then +if test "$abs_srcdir" != "$abs_builddir"; then # If we're building out-of-tree, we need to make sure the following # resources get picked up before their $srcdir counterparts. # Objects/ -> typeslots.inc