From 337cee680bf1db3ac75a1ae1c55c51f21e7d27d0 Mon Sep 17 00:00:00 2001 From: Matthieu Castet Date: Sun, 15 Mar 2009 21:32:36 +0000 Subject: Disallow out-of-tree builds with config.h in the source tree. 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 Originally committed as revision 17994 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 3765da450c..306c75f0ac 100755 --- 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="$@" -- cgit v1.2.3