]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Disallow out-of-tree builds with config.h in the source tree.
authordiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 15 Mar 2009 21:32:36 +0000 (21:32 +0000)
committerdiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 15 Mar 2009 21:32:36 +0000 (21:32 +0000)
A config.h present in the source tree takes precedence over a config.h
in the build tree, which can possibly result in an incorrect build.
patch by matthieu castet, castet.matthieu free fr

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17994 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

configure

index 3765da450cda286edb09199b6caac2d50c8139ad..306c75f0ac918ecbb0eff54b5b93f4787b60f7d5 100755 (executable)
--- a/configure
+++ b/configure
@@ -1212,6 +1212,8 @@ else
     source_path="$(cd "$source_path"; pwd)"
     echo "$source_path" | grep -q '[[:blank:]]' &&
         die "Out of tree builds are impossible with whitespace in source path."
+    test -e "$source_path/config.h" &&
+        die "Out of tree builds are impossible with config.h in source dir."
 fi
 
 FFMPEG_CONFIGURATION="$@"