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.
39 # Please send patches to <config-patches@gnu.org>. Submit a context
40 # diff and a properly formatted ChangeLog entry.
42 # Configuration subroutine to validate and canonicalize a configuration type.
43 # Supply the specified configuration type as an argument.
44 # If it is invalid, we print an error message on stderr and exit with code 1.
45 # Otherwise, we print the canonical config type on stdout and succeed.
47 # This file is supposed to be the same for all GNU packages
48 # and recognize all the CPU types, system types and aliases
49 # that are meaningful with *any* GNU software.
50 # Each package is responsible for reporting which valid configurations
51 # it does not support. The user should be able to distinguish
52 # a failure to support a valid configuration from a meaningless
55 # The goal of this file is to map all the various variations of a given
56 # machine specification into a single specification in the form:
57 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
58 # or in some cases, the newer four-part form:
59 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
60 # It is wrong to echo any other type of specification.
62 me=`echo "$0" | sed -e 's,.*/,,'`
65 Usage: $0 [OPTION] CPU-MFR-OPSYS
68 Canonicalize a configuration name.
71 -h, --help print this help, then exit
72 -t, --time-stamp print date of last modification, then exit
73 -v, --version print version number, then exit
75 Report bugs and patches to <config-patches@gnu.org>."
78 GNU config.sub ($timestamp)
80 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
81 Free Software Foundation, Inc.
83 This is free software; see the source for copying conditions. There is NO
84 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
87 Try \`$me --help' for more information."
90 while test $# -gt 0 ; do
92 --time-stamp | --time* | -t )
93 echo "$timestamp" ; exit 0 ;;
95 echo "$version" ; exit 0 ;;
97 echo "$usage"; exit 0 ;;
98 -- ) # Stop option processing
100 - ) # Use stdin as input.
103 echo "$me: invalid option $1$help"
107 # First pass through any local machine types.
117 0) echo "$me: missing argument$help" >&2
120 *) echo "$me: too many arguments$help" >&2
124 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
125 # Here we must recognize all the valid KERNEL-OS combinations.
126 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
128 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
130 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
133 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
134 if [ $basic_machine != $1 ]
135 then os=`echo $1 | sed 's/.*-/-/'`
140 ### Let's recognize common machines as not being operating systems so
141 ### that things like config.sub decstation-3100 work. We also
142 ### recognize some manufacturers as not being operating systems, so we
143 ### can provide default operating systems below.
146 # Prevent following clause from handling this invalid input.
148 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
149 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
150 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
151 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
152 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
153 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
158 -sim | -cisco | -oki | -wec | -winbond)
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
192 # Don't forget version if it is 3.2v4 or newer.
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
200 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207 basic_machine=clipper-intergraph
210 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
216 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
219 os=`echo $os | sed -e 's/windowsnt/winnt/'`
225 basic_machine=m68k-atari
230 # Decode aliases for certain CPU-COMPANY combinations.
231 case $basic_machine in
232 # Recognize the basic CPU types without company name.
233 # Some are omitted here because they have special meanings below.
236 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
237 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
238 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
240 | d10v | d30v | dsp16xx \
242 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
243 | i370 | i860 | i960 | ia64 \
244 | m32r | m68000 | m68k | m88k | mcore \
245 | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
246 | mips64vr4100 | mips64vr4100el | mips64vr4300 \
247 | mips64vr4300el | mips64vr5000 | mips64vr5000el \
248 | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
250 | mn10200 | mn10300 \
253 | pdp10 | pdp11 | pj | pjl \
254 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
256 | sh | sh[34] | sh[34]eb | shbe | shle | sh64 \
257 | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
259 | tahoe | thumb | tic80 | tron \
262 | x86 | xscale | xstormy16 | xtensa \
264 basic_machine=$basic_machine-unknown
266 m6811 | m68hc11 | m6812 | m68hc12)
267 # Motorola 68HC11/12.
268 basic_machine=$basic_machine-unknown
271 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
274 # We use `pc' rather than `unknown'
275 # because (1) that's what they normally are, and
276 # (2) the word "unknown" tends to confuse beginning users.
278 basic_machine=$basic_machine-pc
280 # Object if more than one company name word.
282 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
285 # Recognize the basic CPU types with company name.
288 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
289 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
290 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
291 | arm-* | armbe-* | armle-* | armv*-* \
294 | c[123]* | c30-* | [cjt]90-* | c54x-* \
295 | clipper-* | cray2-* | cydra-* \
298 | f30[01]-* | f700-* | fr30-* | fx80-* \
299 | h8300-* | h8500-* \
300 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
301 | i*86-* | i860-* | i960-* | ia64-* \
303 | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
304 | m88110-* | m88k-* | mcore-* \
305 | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
306 | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
307 | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
308 | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
309 | none-* | np1-* | ns16k-* | ns32k-* \
311 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
312 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
314 | romp-* | rs6000-* \
315 | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \
316 | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
317 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
318 | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
319 | v850-* | v850e-* | vax-* \
321 | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \
326 # Recognize the various machine names and aliases which stand
327 # for a CPU type and a company and sometimes even an OS.
329 basic_machine=i386-unknown
332 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
333 basic_machine=m68000-att
336 basic_machine=we32k-att
339 basic_machine=a29k-amd
343 basic_machine=m68010-adobe
347 basic_machine=fx80-alliant
350 basic_machine=m68k-altos
353 basic_machine=a29k-none
357 basic_machine=580-amdahl
361 basic_machine=m68k-unknown
364 basic_machine=m68k-unknown
368 basic_machine=m68k-unknown
372 basic_machine=m68k-apollo
376 basic_machine=m68k-apollo
380 basic_machine=m68k-apple
384 basic_machine=ns32k-sequent
388 basic_machine=c1-convex
392 basic_machine=c2-convex
396 basic_machine=c32-convex
400 basic_machine=c34-convex
404 basic_machine=c38-convex
408 basic_machine=ymp-cray
412 basic_machine=cray2-cray
416 basic_machine=${basic_machine}-cray
420 basic_machine=m68k-crds
422 cris | cris-* | etrax*)
423 basic_machine=cris-axis
426 basic_machine=m68k-da30
428 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
429 basic_machine=mips-dec
431 decsystem10* | dec10*)
432 basic_machine=pdp10-dec
435 decsystem20* | dec20*)
436 basic_machine=pdp10-dec
439 delta | 3300 | motorola-3300 | motorola-delta \
440 | 3300-motorola | delta-motorola)
441 basic_machine=m68k-motorola
444 basic_machine=m88k-motorola
448 basic_machine=rs6000-bull
452 basic_machine=m68k-bull
456 basic_machine=a29k-amd
460 basic_machine=elxsi-elxsi
463 encore | umax | mmax)
464 basic_machine=ns32k-encore
466 es1800 | OSE68k | ose68k | ose | OSE)
467 basic_machine=m68k-ericsson
471 basic_machine=i860-alliant
474 basic_machine=ns32k-ns
477 basic_machine=tron-gmicro
481 basic_machine=i386-pc
485 basic_machine=hppa1.1-hitachi
489 basic_machine=h8300-hitachi
493 basic_machine=h8300-hitachi
497 basic_machine=h8500-hitachi
501 basic_machine=m88k-harris
505 basic_machine=m68k-hp
508 basic_machine=m68k-hp
512 basic_machine=m68k-hp
515 hp3k9[0-9][0-9] | hp9[0-9][0-9])
516 basic_machine=hppa1.0-hp
518 hp9k2[0-9][0-9] | hp9k31[0-9])
519 basic_machine=m68000-hp
522 basic_machine=m68k-hp
524 hp9k6[0-9][0-9] | hp6[0-9][0-9])
525 basic_machine=hppa1.0-hp
527 hp9k7[0-79][0-9] | hp7[0-79][0-9])
528 basic_machine=hppa1.1-hp
530 hp9k78[0-9] | hp78[0-9])
531 # FIXME: really hppa2.0-hp
532 basic_machine=hppa1.1-hp
534 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
535 # FIXME: really hppa2.0-hp
536 basic_machine=hppa1.1-hp
538 hp9k8[0-9][13679] | hp8[0-9][13679])
539 basic_machine=hppa1.1-hp
541 hp9k8[0-9][0-9] | hp8[0-9][0-9])
542 basic_machine=hppa1.0-hp
548 basic_machine=hppa1.1-hp
552 basic_machine=hppa1.1-hp
556 basic_machine=i370-ibm
558 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
560 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
564 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
568 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
572 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
576 basic_machine=i386-mach
580 basic_machine=i386-unknown
584 basic_machine=mips-sgi
594 basic_machine=m68k-isi
598 basic_machine=m88k-omron
601 basic_machine=mips-mips
605 basic_machine=ns32k-utek
609 basic_machine=i386-pc
613 basic_machine=m68000-convergent
615 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
616 basic_machine=m68k-atari
620 basic_machine=mipsel-unknown
624 basic_machine=mips-unknown
628 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
631 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
634 basic_machine=mmix-knuth
638 basic_machine=m68k-rom68k
642 basic_machine=powerpc-unknown
646 basic_machine=i386-pc
650 basic_machine=i370-ibm
654 basic_machine=i486-ncr
658 basic_machine=i386-unknown
662 basic_machine=armv4l-rebel
665 news | news700 | news800 | news900)
666 basic_machine=m68k-sony
670 basic_machine=m68030-sony
673 news-3600 | risc-news)
674 basic_machine=mips-sony
678 basic_machine=v70-nec
682 basic_machine=m68k-next
695 basic_machine=m68k-harris
699 basic_machine=m88k-harris
703 basic_machine=i960-intel
707 basic_machine=i960-intel
711 basic_machine=mips-compaq
715 basic_machine=np1-gould
718 basic_machine=nsr-tandem
721 basic_machine=hppa1.1-oki
725 basic_machine=or32-unknown
729 basic_machine=m68000-ericsson
733 basic_machine=m68k-none
737 basic_machine=hppa1.1-hitachi
741 basic_machine=i860-intel
745 basic_machine=sparc-tti
748 basic_machine=m68k-tti
751 basic_machine=ns32k-pc532
753 pentium | p5 | k5 | k6 | nexgen | viac3)
754 basic_machine=i586-pc
756 pentiumpro | p6 | 6x86 | athlon)
757 basic_machine=i686-pc
759 pentiumii | pentium2)
760 basic_machine=i686-pc
762 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
763 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
765 pentiumpro-* | p6-* | 6x86-* | athlon-*)
766 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
768 pentiumii-* | pentium2-*)
769 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
772 basic_machine=pn-gould
774 power) basic_machine=power-ibm
776 ppc) basic_machine=powerpc-unknown
778 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
780 ppcle | powerpclittle | ppc-le | powerpc-little)
781 basic_machine=powerpcle-unknown
783 ppcle-* | powerpclittle-*)
784 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
786 ppc64) basic_machine=powerpc64-unknown
788 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
790 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
791 basic_machine=powerpc64le-unknown
793 ppc64le-* | powerpc64little-*)
794 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
797 basic_machine=i386-ibm
800 basic_machine=i586-unknown
804 basic_machine=m68k-rom68k
808 basic_machine=mips-siemens
811 basic_machine=romp-ibm
814 basic_machine=s390-ibm
817 basic_machine=s390x-ibm
820 basic_machine=a29k-amd
824 basic_machine=i386-sequent
827 basic_machine=sh-hitachi
830 sparclite-wrs | simso-wrs)
831 basic_machine=sparclite-wrs
835 basic_machine=m68k-bull
839 basic_machine=spur-unknown
842 basic_machine=m68k-tandem
845 basic_machine=i860-stratus
849 basic_machine=m68000-sun
852 basic_machine=m68000-sun
856 basic_machine=m68000-sun
860 basic_machine=m68k-sun
864 basic_machine=m68k-sun
868 basic_machine=sparc-sun
872 basic_machine=sparc-sun
876 basic_machine=sparc-sun
880 basic_machine=m68k-sun
883 basic_machine=sparc-sun
885 sun386 | sun386i | roadrunner)
886 basic_machine=i386-sun
889 basic_machine=sv1-cray
893 basic_machine=i386-sequent
897 basic_machine=t3e-cray
901 basic_machine=tic54x-unknown
905 basic_machine=mipstx39-unknown
908 basic_machine=mipstx39el-unknown
911 basic_machine=pdp10-xkl
915 basic_machine=m68k-ncr
918 basic_machine=a29k-amd
922 basic_machine=a29k-nyu
926 basic_machine=v810-nec
930 basic_machine=vax-dec
934 basic_machine=vax-dec
938 basic_machine=f301-fujitsu
941 basic_machine=i960-wrs
945 basic_machine=m68k-wrs
949 basic_machine=a29k-wrs
953 basic_machine=w65-wdc
957 basic_machine=hppa1.1-winbond
961 basic_machine=i386-pc
965 basic_machine=xmp-cray
969 basic_machine=xps100-honeywell
972 basic_machine=z8k-unknown
976 basic_machine=none-none
980 # Here we handle the default manufacturer of certain CPU types. It is in
981 # some cases the only manufacturer, in others, it is the most popular.
983 basic_machine=hppa1.1-winbond
986 basic_machine=hppa1.1-oki
989 basic_machine=hppa1.1-oki
992 if [ x$os = x-linux-gnu ]; then
993 basic_machine=mips-unknown
995 basic_machine=mips-mips
999 basic_machine=romp-ibm
1002 basic_machine=rs6000-ibm
1005 basic_machine=vax-dec
1008 # there are many clones, so DEC is not a safe bet
1009 basic_machine=pdp10-unknown
1012 basic_machine=pdp11-dec
1015 basic_machine=we32k-att
1017 sh3 | sh4 | sh3eb | sh4eb)
1018 basic_machine=sh-unknown
1021 basic_machine=sh64-unknown
1023 sparc | sparcv9 | sparcv9b)
1024 basic_machine=sparc-sun
1027 basic_machine=cydra-cydrome
1030 basic_machine=orion-highlevel
1033 basic_machine=clipper-highlevel
1035 mac | mpw | mac-mpw)
1036 basic_machine=m68k-apple
1039 basic_machine=powerpc-apple
1042 basic_machine=c4x-none
1046 # Make sure to match an already-canonicalized machine name.
1049 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1054 # Here we canonicalize certain aliases for manufacturers.
1055 case $basic_machine in
1057 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1060 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1066 # Decode manufacturer-specific aliases for certain operating systems.
1068 if [ x"$os" != x"" ]
1071 # First match some system type aliases
1072 # that might get confused with valid system types.
1073 # -solaris* is a basic system type, with this one exception.
1074 -solaris1 | -solaris1.*)
1075 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1087 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1089 # First accept the basic system types.
1090 # The portable systems comes first.
1091 # Each alternative MUST END IN A *, to match a version number.
1092 # -sysv* is not here because it comes later, after sysvr4.
1093 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1094 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1095 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1096 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1098 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1099 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1100 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1101 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1102 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1103 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1104 | -chorusos* | -chorusrdb* \
1105 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1106 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1107 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1108 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1109 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1110 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* | -morphos*)
1111 # Remember, each alternative MUST END IN *, to match a version number.
1114 case $basic_machine in
1125 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1126 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1127 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1130 os=`echo $os | sed -e 's|mac|macos|'`
1133 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1136 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1139 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1177 # Preserve the version number of sinix5.
1179 os=`echo $os | sed -e 's|sinix|sysv|'`
1199 # This must come after -sysvr4.
1211 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1217 # Get rid of the `-' at the beginning of $os.
1218 os=`echo $os | sed 's/[^-]*-//'`
1219 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1225 # Here we handle the default operating systems that come with various machines.
1226 # The value should be what the vendor currently ships out the door with their
1227 # machine or put another way, the most popular os provided with the machine.
1229 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1230 # "-sun"), then you have to tell the case statement up towards the top
1231 # that MANUFACTURER isn't an operating system. Otherwise, code above
1232 # will signal an error saying that MANUFACTURER isn't an operating
1233 # system, and we'll never get to this point.
1235 case $basic_machine in
1245 # This must come before the *-dec entry.
1263 # This also exists in the configure program, but was not the
1279 *-tti) # must be before sparc entry or we get the wrong os.
1306 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1360 f30[01]-fujitsu | f700-fujitsu)
1381 # Here we handle the case where we know the os, and the CPU type, but not the
1382 # manufacturer. We pick the logical manufacturer.
1384 case $basic_machine in
1426 -vxsim* | -vxworks*)
1438 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1445 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1449 echo $basic_machine$os
1453 # eval: (add-hook 'write-file-hooks 'time-stamp)
1454 # time-stamp-start: "timestamp='"
1455 # time-stamp-format: "%:y-%02m-%02d"
1456 # time-stamp-end: "'"