OSDN Git Service

configure: improve detection of out-of-tree builds
authorMåns Rullgård <mans@mansr.com>
Fri, 17 Jul 2009 13:10:26 +0000 (13:10 +0000)
committerMåns Rullgård <mans@mansr.com>
Fri, 17 Jul 2009 13:10:26 +0000 (13:10 +0000)
Originally committed as revision 19456 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 138d826..a0605d6 100755 (executable)
--- 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