2 # Configuration validation subroutine script.
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4 # 2000, 2001, 2002 Free Software Foundation, Inc.
5 # Portions Copyright 1998-2002 OpenLDAP Foundation.
9 # This file is (in principle) common to ALL GNU software.
10 # The presence of a machine in this file suggests that SOME GNU software
11 # can handle that machine. It does not imply ALL GNU software can.
13 # This file is free software; you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation; either version 2 of the License, or
16 # (at your option) any later version.
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
23 # You should have received a copy of the GNU General Public License
24 # along with this program; if not, write to the Free Software
25 # Foundation, Inc., 59 Temple Place - Suite 330,
26 # Boston, MA 02111-1307, USA.
28 # As a special exception to the GNU General Public License, if you
29 # distribute this file as part of a program that contains a
30 # configuration script generated by Autoconf, you may include it under
31 # the same distribution terms that you use for the rest of that program.
33 # This file is distributed with OpenLDAP Software, which contains a
34 # configuration script generated by autoconf and is distributable
35 # under the same distributions terms as OpenLDAP inself.
36 # See the OpenLDAP COPYRIGHT and LICENSE file for details.
38 # Please send patches to <config-patches@gnu.org>. Submit a context
39 # diff and a properly formatted ChangeLog entry.
41 # Configuration subroutine to validate and canonicalize a configuration type.
42 # Supply the specified configuration type as an argument.
43 # If it is invalid, we print an error message on stderr and exit with code 1.
44 # Otherwise, we print the canonical config type on stdout and succeed.
46 # This file is supposed to be the same for all GNU packages
47 # and recognize all the CPU types, system types and aliases
48 # that are meaningful with *any* GNU software.
49 # Each package is responsible for reporting which valid configurations
50 # it does not support. The user should be able to distinguish
51 # a failure to support a valid configuration from a meaningless
54 # The goal of this file is to map all the various variations of a given
55 # machine specification into a single specification in the form:
56 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
57 # or in some cases, the newer four-part form:
58 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
59 # It is wrong to echo any other type of specification.
61 me=`echo "$0" | sed -e 's,.*/,,'`
64 Usage: $0 [OPTION] CPU-MFR-OPSYS
67 Canonicalize a configuration name.
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 (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
80 Free Software Foundation, Inc.
82 This is free software; see the source for copying conditions. There is NO
83 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
86 Try \`$me --help' for more information."
89 while test $# -gt 0 ; do
91 --time-stamp | --time* | -t )
92 echo "$timestamp" ; exit 0 ;;
94 echo "$version" ; exit 0 ;;
96 echo "$usage"; exit 0 ;;
97 -- ) # Stop option processing
99 - ) # Use stdin as input.
102 echo "$me: invalid option $1$help"
106 # First pass through any local machine types.
116 0) echo "$me: missing argument$help" >&2
119 *) echo "$me: too many arguments$help" >&2
123 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
124 # Here we must recognize all the valid KERNEL-OS combinations.
125 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
127 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
129 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
132 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
133 if [ $basic_machine != $1 ]
134 then os=`echo $1 | sed 's/.*-/-/'`
139 ### Let's recognize common machines as not being operating systems so
140 ### that things like config.sub decstation-3100 work. We also
141 ### recognize some manufacturers as not being operating systems, so we
142 ### can provide default operating systems below.
145 # Prevent following clause from handling this invalid input.
147 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
148 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
149 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
150 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
151 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
152 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
157 -sim | -cisco | -oki | -wec | -winbond)
180 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
184 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191 # Don't forget version if it is 3.2v4 or newer.
192 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
196 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206 basic_machine=clipper-intergraph
209 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
215 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
218 os=`echo $os | sed -e 's/windowsnt/winnt/'`
224 basic_machine=m68k-atari
229 # Decode aliases for certain CPU-COMPANY combinations.
230 case $basic_machine in
231 # Recognize the basic CPU types without company name.
232 # Some are omitted here because they have special meanings below.
235 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
236 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
237 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
239 | d10v | d30v | dsp16xx \
241 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
242 | i370 | i860 | i960 | ia64 \
243 | m32r | m68000 | m68k | m88k | mcore \
244 | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
245 | mips64vr4100 | mips64vr4100el | mips64vr4300 \
246 | mips64vr4300el | mips64vr5000 | mips64vr5000el \
247 | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
249 | mn10200 | mn10300 \
252 | pdp10 | pdp11 | pj | pjl \
253 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
255 | sh | sh[34] | sh[34]eb | shbe | shle | sh64 \
256 | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
258 | tahoe | thumb | tic80 | tron \
261 | x86 | xscale | xstormy16 | xtensa \
263 basic_machine=$basic_machine-unknown
265 m6811 | m68hc11 | m6812 | m68hc12)
266 # Motorola 68HC11/12.
267 basic_machine=$basic_machine-unknown
270 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
273 # We use `pc' rather than `unknown'
274 # because (1) that's what they normally are, and
275 # (2) the word "unknown" tends to confuse beginning users.
277 basic_machine=$basic_machine-pc
279 # Object if more than one company name word.
281 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
284 # Recognize the basic CPU types with company name.
287 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
288 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
289 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
290 | arm-* | armbe-* | armle-* | armv*-* \
293 | c[123]* | c30-* | [cjt]90-* | c54x-* \
294 | clipper-* | cray2-* | cydra-* \
297 | f30[01]-* | f700-* | fr30-* | fx80-* \
298 | h8300-* | h8500-* \
299 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
300 | i*86-* | i860-* | i960-* | ia64-* \
302 | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
303 | m88110-* | m88k-* | mcore-* \
304 | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
305 | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
306 | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
307 | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
308 | none-* | np1-* | ns16k-* | ns32k-* \
310 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
311 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
313 | romp-* | rs6000-* \
314 | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \
315 | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
316 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
317 | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
318 | v850-* | v850e-* | vax-* \
320 | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \
325 # Recognize the various machine names and aliases which stand
326 # for a CPU type and a company and sometimes even an OS.
328 basic_machine=i386-unknown
331 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
332 basic_machine=m68000-att
335 basic_machine=we32k-att
338 basic_machine=a29k-amd
342 basic_machine=m68010-adobe
346 basic_machine=fx80-alliant
349 basic_machine=m68k-altos
352 basic_machine=a29k-none
356 basic_machine=580-amdahl
360 basic_machine=m68k-unknown
363 basic_machine=m68k-unknown
367 basic_machine=m68k-unknown
371 basic_machine=m68k-apollo
375 basic_machine=m68k-apollo
379 basic_machine=m68k-apple
383 basic_machine=ns32k-sequent
387 basic_machine=c1-convex
391 basic_machine=c2-convex
395 basic_machine=c32-convex
399 basic_machine=c34-convex
403 basic_machine=c38-convex
407 basic_machine=ymp-cray
411 basic_machine=cray2-cray
415 basic_machine=${basic_machine}-cray
419 basic_machine=m68k-crds
421 cris | cris-* | etrax*)
422 basic_machine=cris-axis
425 basic_machine=m68k-da30
427 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
428 basic_machine=mips-dec
430 decsystem10* | dec10*)
431 basic_machine=pdp10-dec
434 decsystem20* | dec20*)
435 basic_machine=pdp10-dec
438 delta | 3300 | motorola-3300 | motorola-delta \
439 | 3300-motorola | delta-motorola)
440 basic_machine=m68k-motorola
443 basic_machine=m88k-motorola
447 basic_machine=rs6000-bull
451 basic_machine=m68k-bull
455 basic_machine=a29k-amd
459 basic_machine=elxsi-elxsi
462 encore | umax | mmax)
463 basic_machine=ns32k-encore
465 es1800 | OSE68k | ose68k | ose | OSE)
466 basic_machine=m68k-ericsson
470 basic_machine=i860-alliant
473 basic_machine=ns32k-ns
476 basic_machine=tron-gmicro
480 basic_machine=i386-pc
484 basic_machine=hppa1.1-hitachi
488 basic_machine=h8300-hitachi
492 basic_machine=h8300-hitachi
496 basic_machine=h8500-hitachi
500 basic_machine=m88k-harris
504 basic_machine=m68k-hp
507 basic_machine=m68k-hp
511 basic_machine=m68k-hp
514 hp3k9[0-9][0-9] | hp9[0-9][0-9])
515 basic_machine=hppa1.0-hp
517 hp9k2[0-9][0-9] | hp9k31[0-9])
518 basic_machine=m68000-hp
521 basic_machine=m68k-hp
523 hp9k6[0-9][0-9] | hp6[0-9][0-9])
524 basic_machine=hppa1.0-hp
526 hp9k7[0-79][0-9] | hp7[0-79][0-9])
527 basic_machine=hppa1.1-hp
529 hp9k78[0-9] | hp78[0-9])
530 # FIXME: really hppa2.0-hp
531 basic_machine=hppa1.1-hp
533 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
534 # FIXME: really hppa2.0-hp
535 basic_machine=hppa1.1-hp
537 hp9k8[0-9][13679] | hp8[0-9][13679])
538 basic_machine=hppa1.1-hp
540 hp9k8[0-9][0-9] | hp8[0-9][0-9])
541 basic_machine=hppa1.0-hp
547 basic_machine=hppa1.1-hp
551 basic_machine=hppa1.1-hp
555 basic_machine=i370-ibm
557 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
559 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
563 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
567 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
571 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
575 basic_machine=i386-mach
579 basic_machine=i386-unknown
583 basic_machine=mips-sgi
593 basic_machine=m68k-isi
597 basic_machine=m88k-omron
600 basic_machine=mips-mips
604 basic_machine=ns32k-utek
608 basic_machine=i386-pc
612 basic_machine=m68000-convergent
614 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
615 basic_machine=m68k-atari
619 basic_machine=mipsel-unknown
623 basic_machine=mips-unknown
627 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
630 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
633 basic_machine=mmix-knuth
637 basic_machine=m68k-rom68k
641 basic_machine=powerpc-unknown
645 basic_machine=i386-pc
649 basic_machine=i370-ibm
653 basic_machine=i486-ncr
657 basic_machine=i386-unknown
661 basic_machine=armv4l-rebel
664 news | news700 | news800 | news900)
665 basic_machine=m68k-sony
669 basic_machine=m68030-sony
672 news-3600 | risc-news)
673 basic_machine=mips-sony
677 basic_machine=v70-nec
681 basic_machine=m68k-next
694 basic_machine=m68k-harris
698 basic_machine=m88k-harris
702 basic_machine=i960-intel
706 basic_machine=i960-intel
710 basic_machine=mips-compaq
714 basic_machine=np1-gould
717 basic_machine=nsr-tandem
720 basic_machine=hppa1.1-oki
724 basic_machine=or32-unknown
728 basic_machine=m68000-ericsson
732 basic_machine=m68k-none
736 basic_machine=hppa1.1-hitachi
740 basic_machine=i860-intel
744 basic_machine=sparc-tti
747 basic_machine=m68k-tti
750 basic_machine=ns32k-pc532
752 pentium | p5 | k5 | k6 | nexgen | viac3)
753 basic_machine=i586-pc
755 pentiumpro | p6 | 6x86 | athlon)
756 basic_machine=i686-pc
758 pentiumii | pentium2)
759 basic_machine=i686-pc
761 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
762 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
764 pentiumpro-* | p6-* | 6x86-* | athlon-*)
765 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
767 pentiumii-* | pentium2-*)
768 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
771 basic_machine=pn-gould
773 power) basic_machine=power-ibm
775 ppc) basic_machine=powerpc-unknown
777 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
779 ppcle | powerpclittle | ppc-le | powerpc-little)
780 basic_machine=powerpcle-unknown
782 ppcle-* | powerpclittle-*)
783 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
785 ppc64) basic_machine=powerpc64-unknown
787 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
789 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
790 basic_machine=powerpc64le-unknown
792 ppc64le-* | powerpc64little-*)
793 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
796 basic_machine=i386-ibm
799 basic_machine=i586-unknown
803 basic_machine=m68k-rom68k
807 basic_machine=mips-siemens
810 basic_machine=romp-ibm
813 basic_machine=s390-ibm
816 basic_machine=s390x-ibm
819 basic_machine=a29k-amd
823 basic_machine=i386-sequent
826 basic_machine=sh-hitachi
829 sparclite-wrs | simso-wrs)
830 basic_machine=sparclite-wrs
834 basic_machine=m68k-bull
838 basic_machine=spur-unknown
841 basic_machine=m68k-tandem
844 basic_machine=i860-stratus
848 basic_machine=m68000-sun
851 basic_machine=m68000-sun
855 basic_machine=m68000-sun
859 basic_machine=m68k-sun
863 basic_machine=m68k-sun
867 basic_machine=sparc-sun
871 basic_machine=sparc-sun
875 basic_machine=sparc-sun
879 basic_machine=m68k-sun
882 basic_machine=sparc-sun
884 sun386 | sun386i | roadrunner)
885 basic_machine=i386-sun
888 basic_machine=sv1-cray
892 basic_machine=i386-sequent
896 basic_machine=t3e-cray
900 basic_machine=tic54x-unknown
904 basic_machine=mipstx39-unknown
907 basic_machine=mipstx39el-unknown
910 basic_machine=pdp10-xkl
914 basic_machine=m68k-ncr
917 basic_machine=a29k-amd
921 basic_machine=a29k-nyu
925 basic_machine=v810-nec
929 basic_machine=vax-dec
933 basic_machine=vax-dec
937 basic_machine=f301-fujitsu
940 basic_machine=i960-wrs
944 basic_machine=m68k-wrs
948 basic_machine=a29k-wrs
952 basic_machine=w65-wdc
956 basic_machine=hppa1.1-winbond
960 basic_machine=i386-pc
964 basic_machine=xmp-cray
968 basic_machine=xps100-honeywell
971 basic_machine=z8k-unknown
975 basic_machine=none-none
979 # Here we handle the default manufacturer of certain CPU types. It is in
980 # some cases the only manufacturer, in others, it is the most popular.
982 basic_machine=hppa1.1-winbond
985 basic_machine=hppa1.1-oki
988 basic_machine=hppa1.1-oki
991 if [ x$os = x-linux-gnu ]; then
992 basic_machine=mips-unknown
994 basic_machine=mips-mips
998 basic_machine=romp-ibm
1001 basic_machine=rs6000-ibm
1004 basic_machine=vax-dec
1007 # there are many clones, so DEC is not a safe bet
1008 basic_machine=pdp10-unknown
1011 basic_machine=pdp11-dec
1014 basic_machine=we32k-att
1016 sh3 | sh4 | sh3eb | sh4eb)
1017 basic_machine=sh-unknown
1020 basic_machine=sh64-unknown
1022 sparc | sparcv9 | sparcv9b)
1023 basic_machine=sparc-sun
1026 basic_machine=cydra-cydrome
1029 basic_machine=orion-highlevel
1032 basic_machine=clipper-highlevel
1034 mac | mpw | mac-mpw)
1035 basic_machine=m68k-apple
1038 basic_machine=powerpc-apple
1041 basic_machine=c4x-none
1045 # Make sure to match an already-canonicalized machine name.
1048 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1053 # Here we canonicalize certain aliases for manufacturers.
1054 case $basic_machine in
1056 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1059 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1065 # Decode manufacturer-specific aliases for certain operating systems.
1067 if [ x"$os" != x"" ]
1070 # First match some system type aliases
1071 # that might get confused with valid system types.
1072 # -solaris* is a basic system type, with this one exception.
1073 -solaris1 | -solaris1.*)
1074 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1086 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1088 # First accept the basic system types.
1089 # The portable systems comes first.
1090 # Each alternative MUST END IN A *, to match a version number.
1091 # -sysv* is not here because it comes later, after sysvr4.
1092 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1093 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1094 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1095 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1097 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1098 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1099 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1100 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1101 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1102 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1103 | -chorusos* | -chorusrdb* \
1104 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1105 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1106 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1107 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1108 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1109 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* | -morphos*)
1110 # Remember, each alternative MUST END IN *, to match a version number.
1113 case $basic_machine in
1124 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1125 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1126 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1129 os=`echo $os | sed -e 's|mac|macos|'`
1132 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1135 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1138 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1176 # Preserve the version number of sinix5.
1178 os=`echo $os | sed -e 's|sinix|sysv|'`
1198 # This must come after -sysvr4.
1210 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1216 # Get rid of the `-' at the beginning of $os.
1217 os=`echo $os | sed 's/[^-]*-//'`
1218 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1224 # Here we handle the default operating systems that come with various machines.
1225 # The value should be what the vendor currently ships out the door with their
1226 # machine or put another way, the most popular os provided with the machine.
1228 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1229 # "-sun"), then you have to tell the case statement up towards the top
1230 # that MANUFACTURER isn't an operating system. Otherwise, code above
1231 # will signal an error saying that MANUFACTURER isn't an operating
1232 # system, and we'll never get to this point.
1234 case $basic_machine in
1244 # This must come before the *-dec entry.
1262 # This also exists in the configure program, but was not the
1278 *-tti) # must be before sparc entry or we get the wrong os.
1305 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1359 f30[01]-fujitsu | f700-fujitsu)
1380 # Here we handle the case where we know the os, and the CPU type, but not the
1381 # manufacturer. We pick the logical manufacturer.
1383 case $basic_machine in
1425 -vxsim* | -vxworks*)
1437 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1444 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1448 echo $basic_machine$os
1452 # eval: (add-hook 'write-file-hooks 'time-stamp)
1453 # time-stamp-start: "timestamp='"
1454 # time-stamp-format: "%:y-%02m-%02d"
1455 # time-stamp-end: "'"