mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
configure: simplify source_path setup
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
dc435c4e9d
commit
8477f2deef
5
configure
vendored
5
configure
vendored
@ -1684,13 +1684,12 @@ DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)
|
|||||||
DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -MM'
|
DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -MM'
|
||||||
|
|
||||||
# find source path
|
# find source path
|
||||||
source_path="$(dirname "$0")"
|
|
||||||
enable source_path_used
|
|
||||||
if test -f configure; then
|
if test -f configure; then
|
||||||
source_path="$(pwd)"
|
source_path="$(pwd)"
|
||||||
disable source_path_used
|
disable source_path_used
|
||||||
else
|
else
|
||||||
source_path="$(cd "$source_path"; pwd)"
|
source_path=$(cd $(dirname "$0"); pwd)
|
||||||
|
enable source_path_used
|
||||||
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" &&
|
test -e "$source_path/config.h" &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user