summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-01-26 22:54:01 +0100
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-02-06 15:30:25 +0100
commite740c3fb90c02802bc121e9f5a3cf58615b4cea1 (patch)
tree3788c850003446a364369c57e89abd9600d63246 /configure
parent956fed377b4c53dde5005e1def8e999e24cae70e (diff)
configure: fall back to using full path if src is a directory
Or when building in-tree. Also don't try to remove src on distclean in these cases. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index c415d5ab76..1000cb1766 100755
--- a/configure
+++ b/configure
@@ -4710,7 +4710,7 @@ link_name=$(mktemp -u $TMPDIR/name_XXXXXXXX)
mkdir "$link_dest"
$ln_s "$link_dest" "$link_name"
touch "$link_dest/test_file"
-if [ -e "$link_name/test_file" ]; then
+if [ "$source_path" != "." ] && ([ ! -d src ] || [ -L src ]) && [ -e "$link_name/test_file" ]; then
# create link to source path
[ -e src ] && rm src
$ln_s "$source_path" src