Auto merge of #22041 - semarie:configure-compat, r=alexcrichton

the sed option `--in-place` (or `-i`) is a GNU extension, and it is not
portable to BSD system (openbsd and freebsd checked).

use an alternate construction in order to keep the semantic.
This commit is contained in:
bors 2015-02-14 07:10:52 +00:00
commit 95b228ab95

3
configure vendored
View File

@ -1379,7 +1379,8 @@ do
done
# Munge any paths that appear in config.mk back to posix-y
sed -i.bak -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' config.tmp
cp config.tmp config.tmp.bak
sed -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' <config.tmp.bak >config.tmp
rm -f config.tmp.bak
msg