aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-06-06 12:56:26 +0100
committerMans Rullgard <mans@mansr.com>2011-06-06 15:16:23 +0100
commit8477f2deefbebe7dab9dce4c9ed5f3bc8030206d (patch)
tree396fceb3600dbb53c91d0e96ed653a1c2890a95a /configure
parentdc435c4e9dfb10c81f177970a14e64a7b232ba54 (diff)
downloadffmpeg-8477f2deefbebe7dab9dce4c9ed5f3bc8030206d.tar.gz
configure: simplify source_path setup
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure b/configure
index d680337dce..34c1ed6d25 100755
--- a/configure
+++ b/configure
@@ -1684,13 +1684,12 @@ DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)
DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -MM'
# find source path
-source_path="$(dirname "$0")"
-enable source_path_used
if test -f configure; then
source_path="$(pwd)"
disable source_path_used
else
- 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" &&