2 # Configuration validation subroutine script.
3 # Copyright 1998-2004 The OpenLDAP Foundation.
4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5 # 2000, 2001, 2002 Free Software Foundation, Inc.
7 timestamp='2002-09-05 (OpenLDAP)'
10 # This file is (in principle) common to ALL GNU software.
11 # The presence of a machine in this file suggests that SOME GNU software
12 # can handle that machine. It does not imply ALL GNU software can.
14 # This file is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2 of the License, or
17 # (at your option) any later version.
19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
24 # You should have received a copy of the GNU General Public License
25 # along with this program; if not, write to the Free Software
26 # Foundation, Inc., 59 Temple Place - Suite 330,
27 # Boston, MA 02111-1307, USA.
29 # As a special exception to the GNU General Public License, if you
30 # distribute this file as part of a program that contains a
31 # configuration script generated by Autoconf, you may include it under
32 # the same distribution terms that you use for the rest of that program.
34 # This file is distributed with OpenLDAP Software, which contains a
35 # configuration script generated by Autoconf, and is distributable
36 # under the same distributions terms as OpenLDAP inself.
38 ## Copyright 1998-2004 The OpenLDAP Foundation.
39 ## All rights reserved.
41 ## Redistribution and use in source and binary forms, with or without
42 ## modification, are permitted only as authorized by the OpenLDAP
45 ## A copy of this license is available in the file LICENSE in the
46 ## top-level directory of the distribution or, alternatively, at
47 ## <http://www.OpenLDAP.org/license.html>.
49 # Please send patches to <config-patches@gnu.org>. Submit a context
50 # diff and a properly formatted ChangeLog entry.
52 # Configuration subroutine to validate and canonicalize a configuration type.
53 # Supply the specified configuration type as an argument.
54 # If it is invalid, we print an error message on stderr and exit with code 1.
55 # Otherwise, we print the canonical config type on stdout and succeed.
57 # This file is supposed to be the same for all GNU packages
58 # and recognize all the CPU types, system types and aliases
59 # that are meaningful with *any* GNU software.
60 # Each package is responsible for reporting which valid configurations
61 # it does not support. The user should be able to distinguish
62 # a failure to support a valid configuration from a meaningless
65 # The goal of this file is to map all the various variations of a given
66 # machine specification into a single specification in the form:
67 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
68 # or in some cases, the newer four-part form:
69 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
70 # It is wrong to echo any other type of specification.
72 me=`echo "$0" | sed -e 's,.*/,,'`
75 Usage: $0 [OPTION] CPU-MFR-OPSYS
78 Canonicalize a configuration name.
81 -h, --help print this help, then exit
82 -t, --time-stamp print date of last modification, then exit
83 -v, --version print version number, then exit
85 Report bugs and patches to <config-patches@gnu.org>."
88 GNU config.sub ($timestamp)
90 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
91 Free Software Foundation, Inc.
93 This is free software; see the source for copying conditions. There is NO
94 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
97 Try \`$me --help' for more information."
100 while test $# -gt 0 ; do
102 --time-stamp | --time* | -t )
103 echo "$timestamp" ; exit 0 ;;
105 echo "$version" ; exit 0 ;;
107 echo "$usage"; exit 0 ;;
108 -- ) # Stop option processing
110 - ) # Use stdin as input.
113 echo "$me: invalid option $1$help"
117 # First pass through any local machine types.
127 0) echo "$me: missing argument$help" >&2
130 *) echo "$me: too many arguments$help" >&2
134 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
135 # Here we must recognize all the valid KERNEL-OS combinations.
136 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
138 nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
140 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
143 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
144 if [ $basic_machine != $1 ]
145 then os=`echo $1 | sed 's/.*-/-/'`
150 ### Let's recognize common machines as not being operating systems so
151 ### that things like config.sub decstation-3100 work. We also
152 ### recognize some manufacturers as not being operating systems, so we
153 ### can provide default operating systems below.
156 # Prevent following clause from handling this invalid input.
158 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
159 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
160 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
161 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
162 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
163 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
168 -sim | -cisco | -oki | -wec | -winbond)
191 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
199 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 # Don't forget version if it is 3.2v4 or newer.
203 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
210 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
214 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
217 basic_machine=clipper-intergraph
220 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
226 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
229 os=`echo $os | sed -e 's/windowsnt/winnt/'`
235 basic_machine=m68k-atari
240 # Decode aliases for certain CPU-COMPANY combinations.
241 case $basic_machine in
242 # Recognize the basic CPU types without company name.
243 # Some are omitted here because they have special meanings below.
246 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
247 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
248 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
250 | d10v | d30v | dlx | dsp16xx \
252 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
253 | i370 | i860 | i960 | ia64 \
255 | m32r | m68000 | m68k | m88k | mcore \
256 | mips | mipsbe | mipseb | mipsel | mipsle \
258 | mips64 | mips64el \
259 | mips64vr | mips64vrel \
260 | mips64orion | mips64orionel \
261 | mips64vr4100 | mips64vr4100el \
262 | mips64vr4300 | mips64vr4300el \
263 | mips64vr5000 | mips64vr5000el \
264 | mipsisa32 | mipsisa32el \
265 | mipsisa64 | mipsisa64el \
266 | mipsisa64sb1 | mipsisa64sb1el \
267 | mipsisa64sr71k | mipsisa64sr71kel \
268 | mipstx39 | mipstx39el \
269 | mn10200 | mn10300 \
272 | pdp10 | pdp11 | pj | pjl \
273 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
275 | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
277 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
279 | tahoe | thumb | tic80 | tron \
282 | x86 | xscale | xstormy16 | xtensa \
284 basic_machine=$basic_machine-unknown
286 m6811 | m68hc11 | m6812 | m68hc12)
287 # Motorola 68HC11/12.
288 basic_machine=$basic_machine-unknown
291 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
294 # We use `pc' rather than `unknown'
295 # because (1) that's what they normally are, and
296 # (2) the word "unknown" tends to confuse beginning users.
298 basic_machine=$basic_machine-pc
300 # Object if more than one company name word.
302 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
305 # Recognize the basic CPU types with company name.
308 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
309 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
310 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
311 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
314 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
315 | clipper-* | cydra-* \
316 | d10v-* | d30v-* | dlx-* \
318 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
319 | h8300-* | h8500-* \
320 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
321 | i*86-* | i860-* | i960-* | ia64-* \
324 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
325 | m88110-* | m88k-* | mcore-* \
326 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
328 | mips64-* | mips64el-* \
329 | mips64vr-* | mips64vrel-* \
330 | mips64orion-* | mips64orionel-* \
331 | mips64vr4100-* | mips64vr4100el-* \
332 | mips64vr4300-* | mips64vr4300el-* \
333 | mips64vr5000-* | mips64vr5000el-* \
334 | mipsisa32-* | mipsisa32el-* \
335 | mipsisa64-* | mipsisa64el-* \
336 | mipsisa64sb1-* | mipsisa64sb1el-* \
337 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
338 | mipstx39 | mipstx39el \
339 | none-* | np1-* | ns16k-* | ns32k-* \
341 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
342 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
344 | romp-* | rs6000-* \
345 | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
346 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
347 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
348 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
349 | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
350 | v850-* | v850e-* | vax-* \
352 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
357 # Recognize the various machine names and aliases which stand
358 # for a CPU type and a company and sometimes even an OS.
360 basic_machine=i386-unknown
363 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
364 basic_machine=m68000-att
367 basic_machine=we32k-att
370 basic_machine=a29k-amd
374 basic_machine=m68010-adobe
378 basic_machine=fx80-alliant
381 basic_machine=m68k-altos
384 basic_machine=a29k-none
388 basic_machine=580-amdahl
392 basic_machine=m68k-unknown
395 basic_machine=m68k-unknown
399 basic_machine=m68k-unknown
403 basic_machine=m68k-apollo
407 basic_machine=m68k-apollo
411 basic_machine=m68k-apple
415 basic_machine=ns32k-sequent
419 basic_machine=c90-cray
423 basic_machine=c1-convex
427 basic_machine=c2-convex
431 basic_machine=c32-convex
435 basic_machine=c34-convex
439 basic_machine=c38-convex
443 basic_machine=j90-cray
447 basic_machine=m68k-crds
449 cris | cris-* | etrax*)
450 basic_machine=cris-axis
453 basic_machine=m68k-da30
455 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
456 basic_machine=mips-dec
458 decsystem10* | dec10*)
459 basic_machine=pdp10-dec
462 decsystem20* | dec20*)
463 basic_machine=pdp10-dec
466 delta | 3300 | motorola-3300 | motorola-delta \
467 | 3300-motorola | delta-motorola)
468 basic_machine=m68k-motorola
471 basic_machine=m88k-motorola
475 basic_machine=rs6000-bull
479 basic_machine=m68k-bull
483 basic_machine=a29k-amd
487 basic_machine=elxsi-elxsi
490 encore | umax | mmax)
491 basic_machine=ns32k-encore
493 es1800 | OSE68k | ose68k | ose | OSE)
494 basic_machine=m68k-ericsson
498 basic_machine=i860-alliant
501 basic_machine=ns32k-ns
504 basic_machine=tron-gmicro
508 basic_machine=i386-pc
512 basic_machine=hppa1.1-hitachi
516 basic_machine=h8300-hitachi
520 basic_machine=h8300-hitachi
524 basic_machine=h8500-hitachi
528 basic_machine=m88k-harris
532 basic_machine=m68k-hp
535 basic_machine=m68k-hp
539 basic_machine=m68k-hp
542 hp3k9[0-9][0-9] | hp9[0-9][0-9])
543 basic_machine=hppa1.0-hp
545 hp9k2[0-9][0-9] | hp9k31[0-9])
546 basic_machine=m68000-hp
549 basic_machine=m68k-hp
551 hp9k6[0-9][0-9] | hp6[0-9][0-9])
552 basic_machine=hppa1.0-hp
554 hp9k7[0-79][0-9] | hp7[0-79][0-9])
555 basic_machine=hppa1.1-hp
557 hp9k78[0-9] | hp78[0-9])
558 # FIXME: really hppa2.0-hp
559 basic_machine=hppa1.1-hp
561 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
562 # FIXME: really hppa2.0-hp
563 basic_machine=hppa1.1-hp
565 hp9k8[0-9][13679] | hp8[0-9][13679])
566 basic_machine=hppa1.1-hp
568 hp9k8[0-9][0-9] | hp8[0-9][0-9])
569 basic_machine=hppa1.0-hp
575 basic_machine=hppa1.1-hp
579 basic_machine=hppa1.1-hp
583 basic_machine=i370-ibm
585 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
587 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
591 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
595 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
599 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
603 basic_machine=i386-mach
607 basic_machine=i386-unknown
611 basic_machine=mips-sgi
621 basic_machine=m68k-isi
625 basic_machine=m88k-omron
628 basic_machine=mips-mips
632 basic_machine=ns32k-utek
636 basic_machine=i386-pc
640 basic_machine=m68000-convergent
642 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
643 basic_machine=m68k-atari
647 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
650 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
653 basic_machine=mmix-knuth
657 basic_machine=m68k-rom68k
661 basic_machine=powerpc-unknown
665 basic_machine=i386-pc
669 basic_machine=i370-ibm
673 basic_machine=i486-ncr
677 basic_machine=i386-unknown
681 basic_machine=armv4l-rebel
684 news | news700 | news800 | news900)
685 basic_machine=m68k-sony
689 basic_machine=m68030-sony
692 news-3600 | risc-news)
693 basic_machine=mips-sony
697 basic_machine=v70-nec
701 basic_machine=m68k-next
714 basic_machine=m68k-harris
718 basic_machine=m88k-harris
722 basic_machine=i960-intel
726 basic_machine=i960-intel
730 basic_machine=mips-compaq
734 basic_machine=np1-gould
737 basic_machine=nsr-tandem
740 basic_machine=hppa1.1-oki
744 basic_machine=or32-unknown
748 basic_machine=m68000-ericsson
752 basic_machine=m68k-none
756 basic_machine=hppa1.1-hitachi
760 basic_machine=i860-intel
764 basic_machine=sparc-tti
767 basic_machine=m68k-tti
770 basic_machine=ns32k-pc532
772 pentium | p5 | k5 | k6 | nexgen | viac3)
773 basic_machine=i586-pc
775 pentiumpro | p6 | 6x86 | athlon | athlon_*)
776 basic_machine=i686-pc
778 pentiumii | pentium2)
779 basic_machine=i686-pc
781 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
782 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
784 pentiumpro-* | p6-* | 6x86-* | athlon-*)
785 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
787 pentiumii-* | pentium2-*)
788 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
791 basic_machine=pn-gould
793 power) basic_machine=power-ibm
795 ppc) basic_machine=powerpc-unknown
797 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
799 ppcle | powerpclittle | ppc-le | powerpc-little)
800 basic_machine=powerpcle-unknown
802 ppcle-* | powerpclittle-*)
803 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
805 ppc64) basic_machine=powerpc64-unknown
807 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
809 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
810 basic_machine=powerpc64le-unknown
812 ppc64le-* | powerpc64little-*)
813 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
816 basic_machine=i386-ibm
819 basic_machine=i586-unknown
823 basic_machine=m68k-rom68k
827 basic_machine=mips-siemens
830 basic_machine=romp-ibm
833 basic_machine=s390-ibm
836 basic_machine=s390x-ibm
839 basic_machine=a29k-amd
843 basic_machine=mipsisa64sb1-unknown
846 basic_machine=mipsisa64sb1el-unknown
849 basic_machine=i386-sequent
852 basic_machine=sh-hitachi
855 sparclite-wrs | simso-wrs)
856 basic_machine=sparclite-wrs
860 basic_machine=m68k-bull
864 basic_machine=spur-unknown
867 basic_machine=m68k-tandem
870 basic_machine=i860-stratus
874 basic_machine=m68000-sun
877 basic_machine=m68000-sun
881 basic_machine=m68000-sun
885 basic_machine=m68k-sun
889 basic_machine=m68k-sun
893 basic_machine=sparc-sun
897 basic_machine=sparc-sun
901 basic_machine=sparc-sun
905 basic_machine=m68k-sun
908 basic_machine=sparc-sun
910 sun386 | sun386i | roadrunner)
911 basic_machine=i386-sun
914 basic_machine=sv1-cray
918 basic_machine=i386-sequent
922 basic_machine=alpha-cray
926 basic_machine=alphaev5-cray
930 basic_machine=t90-cray
934 basic_machine=tic4x-unknown
938 basic_machine=tic54x-unknown
942 basic_machine=mipstx39-unknown
945 basic_machine=mipstx39el-unknown
948 basic_machine=pdp10-xkl
952 basic_machine=m68k-ncr
955 basic_machine=a29k-amd
959 basic_machine=a29k-nyu
963 basic_machine=v810-nec
967 basic_machine=vax-dec
971 basic_machine=vax-dec
975 basic_machine=f301-fujitsu
978 basic_machine=i960-wrs
982 basic_machine=m68k-wrs
986 basic_machine=a29k-wrs
990 basic_machine=w65-wdc
994 basic_machine=hppa1.1-winbond
998 basic_machine=i386-pc
1002 basic_machine=xps100-honeywell
1005 basic_machine=ymp-cray
1009 basic_machine=z8k-unknown
1013 basic_machine=none-none
1017 # Here we handle the default manufacturer of certain CPU types. It is in
1018 # some cases the only manufacturer, in others, it is the most popular.
1020 basic_machine=hppa1.1-winbond
1023 basic_machine=hppa1.1-oki
1026 basic_machine=hppa1.1-oki
1029 basic_machine=romp-ibm
1032 basic_machine=rs6000-ibm
1035 basic_machine=vax-dec
1038 # there are many clones, so DEC is not a safe bet
1039 basic_machine=pdp10-unknown
1042 basic_machine=pdp11-dec
1045 basic_machine=we32k-att
1047 sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
1048 basic_machine=sh-unknown
1051 basic_machine=sh64-unknown
1053 sparc | sparcv9 | sparcv9b)
1054 basic_machine=sparc-sun
1057 basic_machine=cydra-cydrome
1060 basic_machine=orion-highlevel
1063 basic_machine=clipper-highlevel
1065 mac | mpw | mac-mpw)
1066 basic_machine=m68k-apple
1069 basic_machine=powerpc-apple
1072 # Make sure to match an already-canonicalized machine name.
1075 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1080 # Here we canonicalize certain aliases for manufacturers.
1081 case $basic_machine in
1083 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1086 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1092 # Decode manufacturer-specific aliases for certain operating systems.
1094 if [ x"$os" != x"" ]
1097 # First match some system type aliases
1098 # that might get confused with valid system types.
1099 # -solaris* is a basic system type, with this one exception.
1100 -solaris1 | -solaris1.*)
1101 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1113 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1115 # First accept the basic system types.
1116 # The portable systems comes first.
1117 # Each alternative MUST END IN A *, to match a version number.
1118 # -sysv* is not here because it comes later, after sysvr4.
1119 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1120 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1121 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1122 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1124 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1125 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1126 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1127 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1128 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1129 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1130 | -chorusos* | -chorusrdb* \
1131 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1132 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1133 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1134 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1135 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1136 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1137 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
1138 # Remember, each alternative MUST END IN *, to match a version number.
1141 case $basic_machine in
1152 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1153 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1154 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1157 os=`echo $os | sed -e 's|mac|macos|'`
1160 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1163 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1166 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1207 # Preserve the version number of sinix5.
1209 os=`echo $os | sed -e 's|sinix|sysv|'`
1229 # This must come after -sysvr4.
1241 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1247 # Get rid of the `-' at the beginning of $os.
1248 os=`echo $os | sed 's/[^-]*-//'`
1249 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1255 # Here we handle the default operating systems that come with various machines.
1256 # The value should be what the vendor currently ships out the door with their
1257 # machine or put another way, the most popular os provided with the machine.
1259 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1260 # "-sun"), then you have to tell the case statement up towards the top
1261 # that MANUFACTURER isn't an operating system. Otherwise, code above
1262 # will signal an error saying that MANUFACTURER isn't an operating
1263 # system, and we'll never get to this point.
1265 case $basic_machine in
1275 # This must come before the *-dec entry.
1293 # This also exists in the configure program, but was not the
1309 *-tti) # must be before sparc entry or we get the wrong os.
1336 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1390 f30[01]-fujitsu | f700-fujitsu)
1411 # Here we handle the case where we know the os, and the CPU type, but not the
1412 # manufacturer. We pick the logical manufacturer.
1414 case $basic_machine in
1456 -vxsim* | -vxworks* | -windiss*)
1468 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1475 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1479 echo $basic_machine$os
1483 # eval: (add-hook 'write-file-hooks 'time-stamp)
1484 # time-stamp-start: "timestamp='"
1485 # time-stamp-format: "%:y-%02m-%02d"
1486 # time-stamp-end: "'"