configure: fix detection of POSIX shell to work in a VPATH build
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 30 Jun 2012 09:28:24 +0000 (11:28 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 30 Jun 2012 10:00:43 +0000 (12:00 +0200)
* configure.ac: When checking whether "test -e" works, use 'config.log',
not 'configure', as the witness file, because the latter does not exist
in the current directory during a VPATH build.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
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