ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/config.sub
(Generate patch)

Comparing hopm/trunk/config.sub (file contents):
Revision 8849 by michael, Sat Sep 22 20:56:15 2018 UTC vs.
Revision 8850 by michael, Sat Feb 9 18:34:12 2019 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Configuration validation subroutine script.
3 < #   Copyright 1992-2017 Free Software Foundation, Inc.
3 > #   Copyright 1992-2018 Free Software Foundation, Inc.
4  
5 < timestamp='2017-04-02'
5 > timestamp='2018-03-08'
6  
7   # This file is free software; you can redistribute it and/or modify it
8   # under the terms of the GNU General Public License as published by
# Line 15 | Line 15 | timestamp='2017-04-02'
15   # General Public License for more details.
16   #
17   # You should have received a copy of the GNU General Public License
18 < # along with this program; if not, see <http://www.gnu.org/licenses/>.
18 > # along with this program; if not, see <https://www.gnu.org/licenses/>.
19   #
20   # As a special exception to the GNU General Public License, if you
21   # distribute this file as part of a program that contains a
# Line 33 | Line 33 | timestamp='2017-04-02'
33   # Otherwise, we print the canonical config type on stdout and succeed.
34  
35   # You can get the latest version of this script from:
36 < # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
36 > # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
37  
38   # This file is supposed to be the same for all GNU packages
39   # and recognize all the CPU types, system types and aliases
# Line 57 | Line 57 | Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIA
57  
58   Canonicalize a configuration name.
59  
60 < Operation modes:
60 > Options:
61    -h, --help         print this help, then exit
62    -t, --time-stamp   print date of last modification, then exit
63    -v, --version      print version number, then exit
# Line 67 | Line 67 | Report bugs and patches to <config-patch
67   version="\
68   GNU config.sub ($timestamp)
69  
70 < Copyright 1992-2017 Free Software Foundation, Inc.
70 > Copyright 1992-2018 Free Software Foundation, Inc.
71  
72   This is free software; see the source for copying conditions.  There is NO
73   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
# Line 94 | Line 94 | while test $# -gt 0 ; do
94  
95      *local*)
96         # First pass through any local machine types.
97 <       echo $1
97 >       echo "$1"
98         exit ;;
99  
100      * )
# Line 112 | Line 112 | esac
112  
113   # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114   # Here we must recognize all the valid KERNEL-OS combinations.
115 < maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
115 > maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116   case $maybe_os in
117    nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118    linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
# Line 120 | Line 120 | case $maybe_os in
120    kopensolaris*-gnu* | cloudabi*-eabi* | \
121    storm-chaos* | os2-emx* | rtmk-nova*)
122      os=-$maybe_os
123 <    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 >    basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124      ;;
125    android-linux)
126      os=-linux-android
127 <    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
127 >    basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128      ;;
129    *)
130 <    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 <    if [ $basic_machine != $1 ]
132 <    then os=`echo $1 | sed 's/.*-/-/'`
130 >    basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
131 >    if [ "$basic_machine" != "$1" ]
132 >    then os=`echo "$1" | sed 's/.*-/-/'`
133      else os=; fi
134      ;;
135   esac
# Line 178 | Line 178 | case $os in
178                  ;;
179          -sco6)
180                  os=-sco5v6
181 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
181 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
182                  ;;
183          -sco5)
184                  os=-sco3.2v5
185 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
186                  ;;
187          -sco4)
188                  os=-sco3.2v4
189 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
190                  ;;
191          -sco3.2.[4-9]*)
192                  os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
193 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
193 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
194                  ;;
195          -sco3.2v[4-9]*)
196                  # Don't forget version if it is 3.2v4 or newer.
197 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
197 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
198                  ;;
199          -sco5v6*)
200                  # Don't forget version if it is 3.2v4 or newer.
201 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
201 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
202                  ;;
203          -sco*)
204                  os=-sco3.2v2
205 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
206                  ;;
207          -udk*)
208 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
208 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
209                  ;;
210          -isc)
211                  os=-isc2.2
212 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
212 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
213                  ;;
214          -clix*)
215                  basic_machine=clipper-intergraph
216                  ;;
217          -isc*)
218 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
218 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
219                  ;;
220          -lynx*178)
221                  os=-lynxos178
# Line 227 | Line 227 | case $os in
227                  os=-lynxos
228                  ;;
229          -ptx*)
230 <                basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
231 <                ;;
232 <        -windowsnt*)
233 <                os=`echo $os | sed -e 's/windowsnt/winnt/'`
230 >                basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
231                  ;;
232          -psos*)
233                  os=-psos
# Line 299 | Line 296 | case $basic_machine in
296          | nios | nios2 | nios2eb | nios2el \
297          | ns16k | ns32k \
298          | open8 | or1k | or1knd | or32 \
299 <        | pdp10 | pdp11 | pj | pjl \
299 >        | pdp10 | pj | pjl \
300          | powerpc | powerpc64 | powerpc64le | powerpcle \
301          | pru \
302          | pyramid \
# Line 316 | Line 313 | case $basic_machine in
313          | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
314          | visium \
315          | wasm32 \
319        | we32k \
316          | x86 | xc16x | xstormy16 | xtensa \
317          | z8k | z80)
318                  basic_machine=$basic_machine-unknown
# Line 337 | Line 333 | case $basic_machine in
333                  basic_machine=$basic_machine-unknown
334                  os=-none
335                  ;;
336 <        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
336 >        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
337                  ;;
338          ms1)
339                  basic_machine=mt-unknown
# Line 366 | Line 362 | case $basic_machine in
362            ;;
363          # Object if more than one company name word.
364          *-*-*)
365 <                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
365 >                echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
366                  exit 1
367                  ;;
368          # Recognize the basic CPU types with company name.
# Line 461 | Line 457 | case $basic_machine in
457          # Recognize the various machine names and aliases which stand
458          # for a CPU type and a company and sometimes even an OS.
459          386bsd)
460 <                basic_machine=i386-unknown
460 >                basic_machine=i386-pc
461                  os=-bsd
462                  ;;
463          3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
# Line 495 | Line 491 | case $basic_machine in
491                  basic_machine=x86_64-pc
492                  ;;
493          amd64-*)
494 <                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
494 >                basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
495                  ;;
496          amdahl)
497                  basic_machine=580-amdahl
# Line 540 | Line 536 | case $basic_machine in
536                  os=-linux
537                  ;;
538          blackfin-*)
539 <                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
539 >                basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
540                  os=-linux
541                  ;;
542          bluegene*)
# Line 548 | Line 544 | case $basic_machine in
544                  os=-cnk
545                  ;;
546          c54x-*)
547 <                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
547 >                basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
548                  ;;
549          c55x-*)
550 <                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
550 >                basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
551                  ;;
552          c6x-*)
553 <                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
553 >                basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
554                  ;;
555          c90)
556                  basic_machine=c90-cray
# Line 643 | Line 639 | case $basic_machine in
639                  basic_machine=rs6000-bull
640                  os=-bosx
641                  ;;
642 <        dpx2* | dpx2*-bull)
642 >        dpx2*)
643                  basic_machine=m68k-bull
644                  os=-sysv3
645                  ;;
# Line 652 | Line 648 | case $basic_machine in
648                  os=$os"spe"
649                  ;;
650          e500v[12]-*)
651 <                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
651 >                basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
652                  os=$os"spe"
653                  ;;
654          ebmon29k)
# Line 744 | Line 740 | case $basic_machine in
740          hp9k8[0-9][0-9] | hp8[0-9][0-9])
741                  basic_machine=hppa1.0-hp
742                  ;;
747        hppa-next)
748                os=-nextstep3
749                ;;
743          hppaosf)
744                  basic_machine=hppa1.1-hp
745                  os=-osf
# Line 759 | Line 752 | case $basic_machine in
752                  basic_machine=i370-ibm
753                  ;;
754          i*86v32)
755 <                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
755 >                basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
756                  os=-sysv32
757                  ;;
758          i*86v4*)
759 <                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
759 >                basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
760                  os=-sysv4
761                  ;;
762          i*86v)
763 <                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
763 >                basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
764                  os=-sysv
765                  ;;
766          i*86sol2)
767 <                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
767 >                basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
768                  os=-solaris2
769                  ;;
770          i386mach)
771                  basic_machine=i386-mach
772                  os=-mach
773                  ;;
774 <        i386-vsta | vsta)
774 >        vsta)
775                  basic_machine=i386-unknown
776                  os=-vsta
777                  ;;
# Line 797 | Line 790 | case $basic_machine in
790                  os=-sysv
791                  ;;
792          leon-*|leon[3-9]-*)
793 <                basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
793 >                basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
794                  ;;
795          m68knommu)
796                  basic_machine=m68k-unknown
797                  os=-linux
798                  ;;
799          m68knommu-*)
800 <                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
800 >                basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
801                  os=-linux
802                  ;;
810        m88k-omron*)
811                basic_machine=m88k-omron
812                ;;
803          magnum | m3230)
804                  basic_machine=mips-mips
805                  os=-sysv
# Line 841 | Line 831 | case $basic_machine in
831                  os=-mint
832                  ;;
833          mips3*-*)
834 <                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
834 >                basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
835                  ;;
836          mips3*)
837 <                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
837 >                basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
838                  ;;
839          monitor)
840                  basic_machine=m68k-rom68k
# Line 863 | Line 853 | case $basic_machine in
853                  os=-msdos
854                  ;;
855          ms1-*)
856 <                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
856 >                basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
857                  ;;
858          msys)
859                  basic_machine=i686-pc
# Line 905 | Line 895 | case $basic_machine in
895                  basic_machine=v70-nec
896                  os=-sysv
897                  ;;
898 <        next | m*-next )
898 >        next | m*-next)
899                  basic_machine=m68k-next
900                  case $os in
901                      -nextstep* )
# Line 950 | Line 940 | case $basic_machine in
940          nsr-tandem)
941                  basic_machine=nsr-tandem
942                  ;;
943 +        nsv-tandem)
944 +                basic_machine=nsv-tandem
945 +                ;;
946          nsx-tandem)
947                  basic_machine=nsx-tandem
948                  ;;
# Line 985 | Line 978 | case $basic_machine in
978                  os=-linux
979                  ;;
980          parisc-*)
981 <                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
981 >                basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
982                  os=-linux
983                  ;;
984          pbd)
# Line 1001 | Line 994 | case $basic_machine in
994                  basic_machine=i386-pc
995                  ;;
996          pc98-*)
997 <                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
997 >                basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
998                  ;;
999          pentium | p5 | k5 | k6 | nexgen | viac3)
1000                  basic_machine=i586-pc
# Line 1016 | Line 1009 | case $basic_machine in
1009                  basic_machine=i786-pc
1010                  ;;
1011          pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1012 <                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1012 >                basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1013                  ;;
1014          pentiumpro-* | p6-* | 6x86-* | athlon-*)
1015 <                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1015 >                basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1016                  ;;
1017          pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1018 <                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1018 >                basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1019                  ;;
1020          pentium4-*)
1021 <                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1021 >                basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1022                  ;;
1023          pn)
1024                  basic_machine=pn-gould
# Line 1035 | Line 1028 | case $basic_machine in
1028          ppc | ppcbe)    basic_machine=powerpc-unknown
1029                  ;;
1030          ppc-* | ppcbe-*)
1031 <                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1031 >                basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1032                  ;;
1033          ppcle | powerpclittle)
1034                  basic_machine=powerpcle-unknown
1035                  ;;
1036          ppcle-* | powerpclittle-*)
1037 <                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1037 >                basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1038                  ;;
1039          ppc64)  basic_machine=powerpc64-unknown
1040                  ;;
1041 <        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1041 >        ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1042                  ;;
1043          ppc64le | powerpc64little)
1044                  basic_machine=powerpc64le-unknown
1045                  ;;
1046          ppc64le-* | powerpc64little-*)
1047 <                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1047 >                basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1048                  ;;
1049          ps2)
1050                  basic_machine=i386-ibm
# Line 1105 | Line 1098 | case $basic_machine in
1098          sequent)
1099                  basic_machine=i386-sequent
1100                  ;;
1108        sh)
1109                basic_machine=sh-hitachi
1110                os=-hms
1111                ;;
1101          sh5el)
1102                  basic_machine=sh5le-unknown
1103                  ;;
1104 <        sh64)
1116 <                basic_machine=sh64-unknown
1117 <                ;;
1118 <        sparclite-wrs | simso-wrs)
1104 >        simso-wrs)
1105                  basic_machine=sparclite-wrs
1106                  os=-vxworks
1107                  ;;
# Line 1134 | Line 1120 | case $basic_machine in
1120                  os=-sysv4
1121                  ;;
1122          strongarm-* | thumb-*)
1123 <                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1123 >                basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1124                  ;;
1125          sun2)
1126                  basic_machine=m68000-sun
# Line 1248 | Line 1234 | case $basic_machine in
1234                  basic_machine=a29k-wrs
1235                  os=-vxworks
1236                  ;;
1251        wasm32)
1252                basic_machine=wasm32-unknown
1253                ;;
1237          w65*)
1238                  basic_machine=w65-wdc
1239                  os=-none
# Line 1259 | Line 1242 | case $basic_machine in
1242                  basic_machine=hppa1.1-winbond
1243                  os=-proelf
1244                  ;;
1245 +        x64)
1246 +                basic_machine=x86_64-pc
1247 +                ;;
1248          xbox)
1249                  basic_machine=i686-pc
1250                  os=-mingw32
# Line 1267 | Line 1253 | case $basic_machine in
1253                  basic_machine=xps100-honeywell
1254                  ;;
1255          xscale-* | xscalee[bl]-*)
1256 <                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1256 >                basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1257                  ;;
1258          ymp)
1259                  basic_machine=ymp-cray
1260                  os=-unicos
1261                  ;;
1276        z8k-*-coff)
1277                basic_machine=z8k-unknown
1278                os=-sim
1279                ;;
1280        z80-*-coff)
1281                basic_machine=z80-unknown
1282                os=-sim
1283                ;;
1262          none)
1263                  basic_machine=none-none
1264                  os=-none
# Line 1309 | Line 1287 | case $basic_machine in
1287          vax)
1288                  basic_machine=vax-dec
1289                  ;;
1312        pdp10)
1313                # there are many clones, so DEC is not a safe bet
1314                basic_machine=pdp10-unknown
1315                ;;
1290          pdp11)
1291                  basic_machine=pdp11-dec
1292                  ;;
# Line 1322 | Line 1296 | case $basic_machine in
1296          sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1297                  basic_machine=sh-unknown
1298                  ;;
1325        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1326                basic_machine=sparc-sun
1327                ;;
1299          cydra)
1300                  basic_machine=cydra-cydrome
1301                  ;;
# Line 1344 | Line 1315 | case $basic_machine in
1315                  # Make sure to match an already-canonicalized machine name.
1316                  ;;
1317          *)
1318 <                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1318 >                echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1319                  exit 1
1320                  ;;
1321   esac
# Line 1352 | Line 1323 | esac
1323   # Here we canonicalize certain aliases for manufacturers.
1324   case $basic_machine in
1325          *-digital*)
1326 <                basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1326 >                basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1327                  ;;
1328          *-commodore*)
1329 <                basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1329 >                basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1330                  ;;
1331          *)
1332                  ;;
# Line 1366 | Line 1337 | esac
1337   if [ x"$os" != x"" ]
1338   then
1339   case $os in
1340 <        # First match some system type aliases
1341 <        # that might get confused with valid system types.
1340 >        # First match some system type aliases that might get confused
1341 >        # with valid system types.
1342          # -solaris* is a basic system type, with this one exception.
1343          -auroraux)
1344                  os=-auroraux
# Line 1378 | Line 1349 | case $os in
1349          -solaris)
1350                  os=-solaris2
1351                  ;;
1381        -svr4*)
1382                os=-sysv4
1383                ;;
1352          -unixware*)
1353                  os=-sysv4.2uw
1354                  ;;
1355          -gnu/linux*)
1356                  os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1357                  ;;
1358 <        # First accept the basic system types.
1358 >        # es1800 is here to avoid being matched by es* (a different OS)
1359 >        -es1800*)
1360 >                os=-ose
1361 >                ;;
1362 >        # Now accept the basic system types.
1363          # The portable systems comes first.
1364 <        # Each alternative MUST END IN A *, to match a version number.
1364 >        # Each alternative MUST end in a * to match a version number.
1365          # -sysv* is not here because it comes later, after sysvr4.
1366          -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1367                | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
# Line 1399 | Line 1371 | case $os in
1371                | -aos* | -aros* | -cloudabi* | -sortix* \
1372                | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1373                | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1374 <              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1374 >              | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1375                | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1376                | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1377                | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1378                | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1379 <              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1379 >              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \
1380                | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1381                | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1382                | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1383                | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1384                | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1385 <              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1385 >              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
1386                | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1387                | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1388                | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1389 <              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1389 >              | -morphos* | -superux* | -rtmk* | -windiss* \
1390                | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1391                | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1392 <              | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
1392 >              | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1393 >              | -midnightbsd*)
1394          # Remember, each alternative MUST END IN *, to match a version number.
1395                  ;;
1396          -qnx*)
# Line 1434 | Line 1407 | case $os in
1407          -nto*)
1408                  os=`echo $os | sed -e 's|nto|nto-qnx|'`
1409                  ;;
1410 <        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1411 <              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1410 >        -sim | -xray | -os68k* | -v88r* \
1411 >              | -windows* | -osx | -abug | -netware* | -os9* \
1412                | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1413                  ;;
1414          -mac*)
1415 <                os=`echo $os | sed -e 's|mac|macos|'`
1415 >                os=`echo "$os" | sed -e 's|mac|macos|'`
1416                  ;;
1417          -linux-dietlibc)
1418                  os=-linux-dietlibc
# Line 1448 | Line 1421 | case $os in
1421                  os=`echo $os | sed -e 's|linux|linux-gnu|'`
1422                  ;;
1423          -sunos5*)
1424 <                os=`echo $os | sed -e 's|sunos5|solaris2|'`
1424 >                os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1425                  ;;
1426          -sunos6*)
1427 <                os=`echo $os | sed -e 's|sunos6|solaris3|'`
1427 >                os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1428                  ;;
1429          -opened*)
1430                  os=-openedition
# Line 1462 | Line 1435 | case $os in
1435          -wince*)
1436                  os=-wince
1437                  ;;
1465        -osfrose*)
1466                os=-osfrose
1467                ;;
1468        -osf*)
1469                os=-osf
1470                ;;
1438          -utek*)
1439                  os=-bsd
1440                  ;;
# Line 1492 | Line 1459 | case $os in
1459          -nova*)
1460                  os=-rtmk-nova
1461                  ;;
1462 <        -ns2 )
1462 >        -ns2)
1463                  os=-nextstep2
1464                  ;;
1465          -nsk*)
# Line 1514 | Line 1481 | case $os in
1481          -oss*)
1482                  os=-sysv3
1483                  ;;
1484 <        -svr4)
1484 >        -svr4*)
1485                  os=-sysv4
1486                  ;;
1487          -svr3)
# Line 1529 | Line 1496 | case $os in
1496          -ose*)
1497                  os=-ose
1498                  ;;
1532        -es1800*)
1533                os=-ose
1534                ;;
1535        -xenix)
1536                os=-xenix
1537                ;;
1499          -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1500                  os=-mint
1501                  ;;
1541        -aros*)
1542                os=-aros
1543                ;;
1502          -zvmoe)
1503                  os=-zvmoe
1504                  ;;
1505          -dicos*)
1506                  os=-dicos
1507                  ;;
1508 +        -pikeos*)
1509 +                # Until real need of OS specific support for
1510 +                # particular features comes up, bare metal
1511 +                # configurations are quite functional.
1512 +                case $basic_machine in
1513 +                    arm*)
1514 +                        os=-eabi
1515 +                        ;;
1516 +                    *)
1517 +                        os=-elf
1518 +                        ;;
1519 +                esac
1520 +                ;;
1521          -nacl*)
1522                  ;;
1523          -ios)
# Line 1556 | Line 1527 | case $os in
1527          *)
1528                  # Get rid of the `-' at the beginning of $os.
1529                  os=`echo $os | sed 's/[^-]*-//'`
1530 <                echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1530 >                echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1531                  exit 1
1532                  ;;
1533   esac
# Line 1652 | Line 1623 | case $basic_machine in
1623          *-be)
1624                  os=-beos
1625                  ;;
1655        *-haiku)
1656                os=-haiku
1657                ;;
1626          *-ibm)
1627                  os=-aix
1628                  ;;
# Line 1694 | Line 1662 | case $basic_machine in
1662          m88k-omron*)
1663                  os=-luna
1664                  ;;
1665 <        *-next )
1665 >        *-next)
1666                  os=-nextstep
1667                  ;;
1668          *-sequent)
# Line 1709 | Line 1677 | case $basic_machine in
1677          i370-*)
1678                  os=-mvs
1679                  ;;
1712        *-next)
1713                os=-nextstep3
1714                ;;
1680          *-gould)
1681                  os=-sysv
1682                  ;;
# Line 1821 | Line 1786 | case $basic_machine in
1786                                  vendor=stratus
1787                                  ;;
1788                  esac
1789 <                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1789 >                basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
1790                  ;;
1791   esac
1792  
1793 < echo $basic_machine$os
1793 > echo "$basic_machine$os"
1794   exit
1795  
1796   # Local variables:
1797 < # eval: (add-hook 'write-file-hooks 'time-stamp)
1797 > # eval: (add-hook 'before-save-hook 'time-stamp)
1798   # time-stamp-start: "timestamp='"
1799   # time-stamp-format: "%:y-%02m-%02d"
1800   # time-stamp-end: "'"

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)