Browse code

configure: improve detection of out-of-tree builds

Originally committed as revision 19456 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2009/07/17 22:10:26
Showing 1 changed files
... ...
@@ -1295,7 +1295,7 @@ DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -MM'
1295 1295
 # find source path
1296 1296
 source_path="$(dirname "$0")"
1297 1297
 enable source_path_used
1298
-if test -z "$source_path" -o "$source_path" = "." ; then
1298
+if test -f configure; then
1299 1299
     source_path="$(pwd)"
1300 1300
     disable source_path_used
1301 1301
 else