mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
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
This commit is contained in:
parent
7a160bca83
commit
337cee680b
2
configure
vendored
2
configure
vendored
@ -1212,6 +1212,8 @@ else
|
|||||||
source_path="$(cd "$source_path"; pwd)"
|
source_path="$(cd "$source_path"; pwd)"
|
||||||
echo "$source_path" | grep -q '[[:blank:]]' &&
|
echo "$source_path" | grep -q '[[:blank:]]' &&
|
||||||
die "Out of tree builds are impossible with whitespace in source path."
|
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
|
fi
|
||||||
|
|
||||||
FFMPEG_CONFIGURATION="$@"
|
FFMPEG_CONFIGURATION="$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user