build: restore out-of-tree support

This commit is contained in:
grischka
2016-10-01 21:06:53 +02:00
parent 0a624782df
commit afdbc5b815
6 changed files with 58 additions and 48 deletions

12
configure vendored
View File

@ -519,11 +519,11 @@ echo "@set VERSION $version" > config.texi
if test "$source_path_used" = "yes" ; then
case $source_path in
/*) echo "SRCTOP=$source_path";;
*) echo "SRCTOP=\$(TOP)/$source_path";;
/*) echo "TOPSRC=$source_path";;
*) echo "TOPSRC=\$(TOP)/$source_path";;
esac >>config.mak
else
echo 'SRCTOP=$(TOP)' >>config.mak
echo 'TOPSRC=$(TOP)' >>config.mak
fi
diff $TMPH config.h >/dev/null 2>&1
@ -553,7 +553,11 @@ fn_makelink()
esac
;;
esac
ln -sfn $tgt $2
if test "$mingw32" = "yes" ; then
cmd //c mklink `echo "$2 $tgt" | sed 's,/,\\\\,g'`
else
ln -sfn $tgt $2
fi
}
if test "$source_path_used" = "yes" ; then