sed -i option isn't portable

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:
Sébastien Marie 2015-02-07 08:55:37 +01:00
parent 0b56e9b1cb
commit 04b7976c2f

3
configure vendored
View File

@ -1380,7 +1380,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