diff --git a/configure b/configure
index 138d8269d3e34c1f2714d315b70ebb2ca89e120e..a0605d61671ab8ae965aef5ddcd090c79271786b 100755
--- a/configure
+++ b/configure
@@ -1295,7 +1295,7 @@ DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -MM'
 # find source path
 source_path="$(dirname "$0")"
 enable source_path_used
-if test -z "$source_path" -o "$source_path" = "." ; then
+if test -f configure; then
     source_path="$(pwd)"
     disable source_path_used
 else