configure: improve detection of out-of-tree builds

Originally committed as revision 19456 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2009-07-17 13:10:26 +00:00
parent 980a75c5a5
commit 24524f36a1

2
configure vendored
View File

@ -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