configure: fix detection of POSIX shell to work in a VPATH build
[platform/upstream/automake.git] / configure.ac
index 8d6afc8..7d30762 100644 (file)
@@ -325,7 +325,7 @@ AC_DEFUN([_AM_CHECK_CANDIDATE_SHELL],
 
     _AM_CHECK_SHELL_FEATURE([$1],
       [supports "test -e"],
-      [test -e configure && test -e . && test ! -e nonesuch],
+      [test -e config.log && test -e . && test ! -e nonesuch],
       [], [am_score=1; break])
 
     break