Fix out-of-tree build with relative path to root

Fix path of Makefile symlinks in a out-of-tree build where the root
directory of the source is given as a relative path.
This commit is contained in:
Thomas Preud'homme 2013-01-14 18:18:27 +01:00
parent a4e630c7d9
commit f7b417723e

4
configure vendored
View File

@ -506,8 +506,8 @@ if test "$source_path_used" = "yes" ; then
# counterpart.
case $source_path in
/*) dest=$source_path/$f;;
*) dest=`echo "$source_path/$dir/" | sed 's,/\./,/,g;s,[^/]*/,../,g'`
dest=$dest$f;;
*) dest=`echo "$dir/" | sed 's,^\./,,;s,[^/]*/,../,g'`
dest=$dest$source_path/$f;;
esac
ln -sf $dest $f
done