Commit 8477f2de authored by Mans Rullgard's avatar Mans Rullgard
Browse files

configure: simplify source_path setup

Signed-off-by: default avatarMans Rullgard <>
parent dc435c4e
......@@ -1684,13 +1684,12 @@ DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)
# find source path
source_path="$(dirname "$0")"
enable source_path_used
if test -f configure; then
disable source_path_used
source_path="$(cd "$source_path"; pwd)"
source_path=$(cd $(dirname "$0"); pwd)
enable source_path_used
echo "$source_path" | grep -q '[[:blank:]]' &&
die "Out of tree builds are impossible with whitespace in source path."
test -e "$source_path/config.h" &&
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment