summaryrefslogtreecommitdiff
path: root/tool/config.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tool/config.sub')
-rwxr-xr-xtool/config.sub15
1 files changed, 14 insertions, 1 deletions
diff --git a/tool/config.sub b/tool/config.sub
index b44485cccf..9da347fe74 100755
--- a/tool/config.sub
+++ b/tool/config.sub
@@ -319,6 +319,9 @@ case $basic_machine in
i*86 | x86_64)
basic_machine=$basic_machine-pc
;;
+ i?86-w64)
+ basic_machine=x86_64-pc
+ ;;
# Object if more than one company name word.
*-*-*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
@@ -1299,7 +1302,7 @@ case $os in
| -chorusos* | -chorusrdb* | -cegcc* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
- | -uxpv* | -beos* | -mpeix* | -udk* | -mingw64* \
+ | -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
@@ -1309,6 +1312,13 @@ case $os in
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
+ -mingw64*)
+ case $basic_machine in
+ x86-* | i*86-*)
+ basic_machine=x86_64-pc
+ ;;
+ esac
+ ;;
-qnx*)
case $basic_machine in
x86-* | i*86-*)
@@ -1696,6 +1706,9 @@ case $basic_machine in
esac
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
;;
+ x86_64*)
+ os=`echo $os | sed 's/32/64/'`
+ ;;
esac
echo $basic_machine$os