Issue #15819: tweak logic in previous commit (617591e7d708).
diff --git a/configure b/configure
index 8ba3dec..b90c661 100755
--- a/configure
+++ b/configure
@@ -5210,7 +5210,7 @@
 BUILDDIR="`pwd`"
 
 
-if test "$srcdir" != "$BUILDDIR"; then
+if test "$srcdir" != "." -a "$srcdir" != "$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