8301267: Update of config.guess broke build on WSL

Reviewed-by: tbell, jvernee, djelinski
This commit is contained in:
Erik Joelsson 2023-01-30 20:18:59 +00:00
parent a128a5d07c
commit b84f4c40fd

View File

@ -68,11 +68,11 @@ if test $? = 0; then
fi
# Test and fix wsl
echo $OUT | grep unknown-linux-gnu > /dev/null 2> /dev/null
echo $OUT | grep '\(unknown\|pc\)-linux-gnu' > /dev/null 2> /dev/null
if test $? = 0; then
uname -r | grep -i microsoft > /dev/null 2> /dev/null
if test $? = 0; then
OUT=`echo $OUT | sed -e 's/unknown-linux-gnu/pc-wsl/'`
OUT=`echo $OUT | sed -e 's/\(unknown\|pc\)-linux-gnu/pc-wsl/'`
fi
fi