]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #15819: tweak logic in previous commit (e0a2b14a3cf9).
authorTrent Nelson <trent@trent.me>
Tue, 16 Oct 2012 14:52:35 +0000 (10:52 -0400)
committerTrent Nelson <trent@trent.me>
Tue, 16 Oct 2012 14:52:35 +0000 (10:52 -0400)
configure
configure.ac

index f2304f6db70574336c2d4811c43bc19cd5dd41d7..6b4235cbffb4f310d8a80df91cd8007d79986c31 100755 (executable)
--- a/configure
+++ b/configure
@@ -5180,7 +5180,7 @@ fi
 BUILDDIR="`pwd`"
 
 
-if test "$srcdir" != "$BUILDDIR"; then
+if test "$srcdir" != "." -a "$srcdir" != "$BUILDDIR"; then
     # If we're building out-of-tree make sure Include (in the current dir)
     # gets picked up before its $srcdir counterpart in order for Python-ast.h
     # and graminit.h to get picked up from the correct directory.
index 094e5a4b2cd74c30ac098498791799897af368c6..6f8ed747e9f778c0fabf279cdf1bb00f59ab2b2e 100644 (file)
@@ -857,7 +857,7 @@ fi
 BUILDDIR="`pwd`"
 AC_SUBST(BUILDDIR)
 AC_SUBST(BASECPPFLAGS)
-if test "$srcdir" != "$BUILDDIR"; then
+if test "$srcdir" != "." -a "$srcdir" != "$BUILDDIR"; then
     # If we're building out-of-tree make sure Include (in the current dir)
     # gets picked up before its $srcdir counterpart in order for Python-ast.h
     # and graminit.h to get picked up from the correct directory.