Lines Matching +full:x86_64 +full:- +full:linux +full:- +full:gnu

3 #   Copyright 1992-2021 Free Software Foundation, Inc.
7 timestamp='2021-08-14'
10 # under the terms of the GNU General Public License as published by
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, see <https://www.gnu.org/licenses/>.
22 # As a special exception to the GNU General Public License, if you
27 # of the GNU General Public License, version 3 ("GPLv3").
30 # Please send patches to <config-patches@gnu.org>.
38 # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
40 # This file is supposed to be the same for all GNU packages
42 # that are meaningful with *any* GNU software.
50 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
51 # or in some cases, the newer four-part form:
52 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
58 # variety of pre-POSIX systems that do not have POSIX shells at all, and
59 # even some reasonably current systems (Solaris 10 as case-in-point) still
60 # have a pre-POSIX /bin/sh.
62 me=`echo "$0" | sed -e 's,.*/,,'`
65 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
70 -h, --help print this help, then exit
71 -t, --time-stamp print date of last modification, then exit
72 -v, --version print version number, then exit
74 Report bugs and patches to <config-patches@gnu.org>."
77 GNU config.sub ($timestamp)
79 Copyright 1992-2021 Free Software Foundation, Inc.
85 Try \`$me --help' for more information."
88 while test $# -gt 0 ; do
90 --time-stamp | --time* | -t )
92 --version | -v )
94 --help | --h* | -h )
96 -- ) # Stop option processing
98 - ) # Use stdin as input.
100 -* )
125 IFS="-" read field1 field2 field3 field4 <<EOF
132 *-*-*-*-*)
136 *-*-*-*)
137 basic_machine=$field1-$field2
138 basic_os=$field3-$field4
140 *-*-*)
141 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
143 maybe_os=$field2-$field3
145 nto-qnx* | linux-* | uclinux-uclibc* \
146 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
147 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
148 | storm-chaos* | os2-emx* | rtmk-nova*)
152 android-linux)
153 basic_machine=$field1-unknown
154 basic_os=linux-android
157 basic_machine=$field1-$field2
162 *-*)
164 case $field1-$field2 in
165 decstation-3100)
166 basic_machine=mips-dec
169 *-*)
178 basic_machine=$field1-unknown
191 basic_machine=$field1-$field2
203 # Convert single-component short-hands not valid as part of
204 # multi-component configurations.
207 basic_machine=i386-pc
211 basic_machine=a29k-amd
215 basic_machine=m68010-adobe
219 basic_machine=fx80-alliant
223 basic_machine=m68k-altos
227 basic_machine=a29k-none
231 basic_machine=580-amdahl
235 basic_machine=m68k-unknown
239 basic_machine=m68k-unknown
243 basic_machine=m68k-unknown
247 basic_machine=m68k-apollo
251 basic_machine=m68k-apollo
255 basic_machine=i386-pc
259 basic_machine=m68k-apple
263 basic_machine=ns32k-sequent
267 basic_machine=bfin-unknown
268 basic_os=linux
271 basic_machine=arm-unknown
274 convex-c1)
275 basic_machine=c1-convex
278 convex-c2)
279 basic_machine=c2-convex
282 convex-c32)
283 basic_machine=c32-convex
286 convex-c34)
287 basic_machine=c34-convex
290 convex-c38)
291 basic_machine=c38-convex
295 basic_machine=j90-cray
299 basic_machine=m68k-crds
303 basic_machine=m68k-da30
307 basic_machine=mips-dec
311 basic_machine=m88k-motorola
315 basic_machine=i686-pc
319 basic_machine=i586-pc
323 basic_machine=a29k-amd
327 basic_machine=m68k-ericsson
331 basic_machine=tron-gmicro
335 basic_machine=i386-pc
339 basic_machine=h8300-hitachi
343 basic_machine=h8300-hitachi
347 basic_machine=h8500-hitachi
351 basic_machine=m88k-harris
355 basic_machine=m68k-hp
359 basic_machine=m68k-hp
363 basic_machine=hppa1.1-hp
367 basic_machine=hppa1.1-hp
371 basic_machine=i386-mach
375 basic_machine=m68k-isi
379 basic_machine=m68k-unknown
380 basic_os=linux
383 basic_machine=mips-mips
387 basic_machine=ns32k-utek
391 basic_machine=x86_64-pc
395 basic_machine=i686-pc
399 basic_machine=arm-unknown
403 basic_machine=m68k-rom68k
407 basic_machine=powerpc-unknown
411 basic_machine=moxie-unknown
415 basic_machine=i386-pc
419 basic_machine=i686-pc
423 basic_machine=i370-ibm
427 basic_machine=le32-unknown
431 basic_machine=i486-ncr
435 basic_machine=i386-pc
439 basic_machine=armv4l-rebel
440 basic_os=linux
443 basic_machine=m68k-sony
447 basic_machine=m68030-sony
451 basic_machine=v70-nec
455 basic_machine=m68k-harris
459 basic_machine=m88k-harris
463 basic_machine=i960-intel
467 basic_machine=i960-intel
471 basic_machine=mips-compaq
475 basic_machine=powerpc-ibm
479 basic_machine=m68000-ericsson
483 basic_machine=m68k-none
487 basic_machine=i860-intel
491 basic_machine=hppa-unknown
492 basic_os=linux
495 basic_machine=mipsallegrexel-sony
499 basic_machine=i586-unknown
503 basic_machine=x86_64-pc
507 basic_machine=i386-pc
511 basic_machine=m68k-rom68k
515 basic_machine=a29k-amd
519 basic_machine=mips-sei
523 basic_machine=i386-sequent
527 basic_machine=m68k-bull
531 basic_machine=m68k-tandem
535 basic_machine=i860-stratus
539 basic_machine=m68000-sun
543 basic_machine=m68000-sun
547 basic_machine=m68000-sun
551 basic_machine=m68k-sun
555 basic_machine=m68k-sun
559 basic_machine=m68k-sun
563 basic_machine=sparc-sun
567 basic_machine=sparc-sun
571 basic_machine=sparc-sun
575 basic_machine=sparc-sun
579 basic_machine=i386-sun
583 basic_machine=sv1-cray
587 basic_machine=i386-sequent
591 basic_machine=alphaev5-cray
595 basic_machine=t90-cray
599 basic_machine=pdp10-xkl
603 basic_machine=s390x-ibm
607 basic_machine=a29k-amd
611 basic_machine=a29k-nyu
615 basic_machine=v810-nec
619 basic_machine=vax-dec
623 basic_machine=vax-dec
627 basic_machine=i386-pc
631 basic_machine=i960-wrs
635 basic_machine=m68k-wrs
639 basic_machine=a29k-wrs
643 basic_machine=i686-pc
647 basic_machine=ymp-cray
658 # Decode 1-component or ad-hoc basic machines
682 mac | mpw | mac-mpw)
686 pmac | pmac-mpw)
693 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
716 delta | 3300 | motorola-3300 | motorola-delta \
717 | 3300-motorola | delta-motorola)
733 basic_os=${basic_os:-bsd}
748 hp3k9[0-9][0-9] | hp9[0-9][0-9])
752 hp9k2[0-9][0-9] | hp9k31[0-9])
756 hp9k3[2-9][0-9])
760 hp9k6[0-9][0-9] | hp6[0-9][0-9])
764 hp9k7[0-79][0-9] | hp7[0-79][0-9])
768 hp9k78[0-9] | hp78[0-9])
769 # FIXME: really hppa2.0-hp
774 # FIXME: really hppa2.0-hp
778 hp9k8[0-9][13679] | hp8[0-9][13679])
782 hp9k8[0-9][0-9] | hp8[0-9][0-9])
787 cpu=`echo "$1" | sed -e 's/86.*/86/'`
792 cpu=`echo "$1" | sed -e 's/86.*/86/'`
797 cpu=`echo "$1" | sed -e 's/86.*/86/'`
802 cpu=`echo "$1" | sed -e 's/86.*/86/'`
806 j90 | j90-cray)
809 basic_os=${basic_os:-unicos}
826 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
831 news-3600 | risc-news)
836 next | m*-next)
856 op50n-* | op60c-*)
861 pa-hitachi)
894 rtpc | rtpc-*)
901 basic_os=${basic_os:-elf}
903 simso-wrs)
908 tower | tower-32)
912 vpp*|vx|vx-*)
920 w89k-*)
929 leon|leon[3-9])
933 leon-*|leon[3-9]-*)
935 vendor=`echo "$basic_machine" | sed 's/-.*//'`
938 *-*)
941 IFS="-" read cpu vendor <<EOF
949 i*86 | x86_64)
960 cpu=x86_64
970 unset -v basic_machine
972 # Decode basic machines in the full and proper CPU-Company form.
973 case $cpu-$vendor in
976 craynv-unknown)
978 basic_os=${basic_os:-unicosmp}
980 c90-unknown | c90-cray)
982 basic_os=${Basic_os:-unicos}
984 fx80-unknown)
987 romp-unknown)
990 mmix-unknown)
993 microblaze-unknown | microblazeel-unknown)
996 rs6000-unknown)
999 vax-unknown)
1002 pdp11-unknown)
1005 we32k-unknown)
1008 cydra-unknown)
1011 i370-ibm*)
1014 orion-unknown)
1017 xps-unknown | xps100-unknown)
1023 dpx20-unknown | dpx20-bull)
1026 basic_os=${basic_os:-bosx}
1030 amd64-*)
1031 cpu=x86_64
1033 blackfin-*)
1035 basic_os=linux
1037 c54x-*)
1040 c55x-*)
1043 c6x-*)
1046 e500v[12]-*)
1050 mips3*-*)
1053 ms1-*)
1056 m68knommu-*)
1058 basic_os=linux
1060 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1063 openrisc-*)
1066 parisc-*)
1068 basic_os=linux
1070 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1073 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1076 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1079 pentium4-*)
1082 pc98-*)
1085 ppc-* | ppcbe-*)
1088 ppcle-* | powerpclittle-*)
1091 ppc64-*)
1094 ppc64le-* | powerpc64little-*)
1097 sb1-*)
1100 sb1el-*)
1103 sh5e[lb]-*)
1106 spur-*)
1109 strongarm-* | thumb-*)
1112 tx39-*)
1115 tx39el-*)
1118 x64-*)
1119 cpu=x86_64
1121 xscale-* | xscalee[bl]-*)
1124 arm64-*)
1130 cr16-*)
1131 basic_os=${basic_os:-elf}
1133 crisv32-* | etraxfs*-*)
1137 cris-* | etrax*-*)
1141 crx-*)
1142 basic_os=${basic_os:-elf}
1144 neo-tandem)
1148 nse-tandem)
1152 nsr-tandem)
1156 nsv-tandem)
1160 nsx-tandem)
1164 mipsallegrexel-sony)
1168 tile*-*)
1169 basic_os=${basic_os:-linux-gnu}
1180 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1181 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1277 | x86 | x86_64 | xc16x | xgate | xps100 \
1284 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1303 # Decode manufacturer-specific aliases for certain operating systems.
1308 # First recognize some ad-hoc caes, or perhaps split kernel-os, or else just
1311 gnu/linux*)
1312 kernel=linux
1313 os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
1315 os2-emx)
1317 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
1319 nto-qnx*)
1321 os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
1323 *-*)
1326 IFS="-" read kernel os <<EOF
1334 os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1336 linux*)
1337 kernel=linux
1338 os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
1359 os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
1387 sco3.2.[4-9]*)
1388 os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
1417 mac[0-9]*)
1418 os=`echo "$os" | sed -e 's|mac|macos|'`
1427 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1430 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1457 os=rtmk-nova
1464 os=`echo "$os" | sed -e 's|sinix|sysv|'`
1490 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1520 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1521 # "-sun"), then you have to tell the case statement up towards the top
1527 case $cpu-$vendor in
1528 score-*)
1531 spu-*)
1534 *-acorn)
1537 arm*-rebel)
1538 kernel=linux
1539 os=gnu
1541 arm*-semi)
1544 c4x-* | tic4x-*)
1547 c8051-*)
1550 clipper-intergraph)
1553 hexagon-*)
1556 tic54x-*)
1559 tic55x-*)
1562 tic6x-*)
1565 # This must come before the *-dec entry.
1566 pdp10-*)
1569 pdp11-*)
1572 *-dec | vax-*)
1575 m68*-apollo)
1578 i386-sun)
1581 m68000-sun)
1584 m68*-cisco)
1587 mep-*)
1590 mips*-cisco)
1593 mips*-*)
1596 or32-*)
1599 *-tti) # must be before sparc entry or we get the wrong os.
1602 sparc-* | *-sun)
1605 pru-*)
1608 *-be)
1611 *-ibm)
1614 *-knuth)
1617 *-wec)
1620 *-winbond)
1623 *-oki)
1626 *-hp)
1629 *-hitachi)
1632 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1635 *-cbm)
1638 *-dg)
1641 *-dolphin)
1644 m68k-ccur)
1647 m88k-omron*)
1650 *-next)
1653 *-sequent)
1656 *-crds)
1659 *-ns)
1662 i370-*)
1665 *-gould)
1668 *-highlevel)
1671 *-encore)
1674 *-sgi)
1677 *-siemens)
1680 *-masscomp)
1683 f30[01]-fujitsu | f700-fujitsu)
1686 *-rom68k)
1689 *-*bug)
1692 *-apple)
1695 *-atari*)
1698 *-wrs)
1708 # Now, validate our (potentially fixed-up) OS.
1710 # Sometimes we do "kernel-libc", so those need to count as OSes.
1713 # Likewise for "kernel-abi"
1722 gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1745 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1755 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1766 # As a final step for OS-related things, validate the OS-kernel combination
1768 case $kernel-$os in
1769 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
1770 | linux-musl* | linux-relibc* | linux-uclibc* )
1772 uclinux-uclibc* )
1774 -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
1780 kfreebsd*-gnu* | kopensolaris*-gnu*)
1782 vxworks-simlinux | vxworks-simwindows | vxworks-spe)
1784 nto-qnx*)
1786 os2-emx)
1788 *-eabi* | *-gnueabi*)
1790 -*)
1793 *-*)
1803 case $cpu-$os in
1804 *-riscix*)
1807 *-sunos*)
1810 *-cnk* | *-aix*)
1813 *-beos*)
1816 *-hpux*)
1819 *-mpeix*)
1822 *-hiux*)
1825 *-unos*)
1828 *-dgux*)
1831 *-luna*)
1834 *-genix*)
1837 *-clix*)
1840 *-mvs* | *-opened*)
1843 *-os400*)
1846 s390-* | s390x-*)
1849 *-ptx*)
1852 *-tpf*)
1855 *-vxsim* | *-vxworks* | *-windiss*)
1858 *-aux*)
1861 *-hms*)
1864 *-mpw* | *-macos*)
1867 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
1870 *-vos*)
1877 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
1881 # eval: (add-hook 'before-save-hook 'time-stamp)
1882 # time-stamp-start: "timestamp='"
1883 # time-stamp-format: "%:y-%02m-%02d"
1884 # time-stamp-end: "'"