Mercurial > emacs
comparison config.guess @ 3622:62c03085c0d9
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Thu, 10 Jun 1993 20:28:32 +0000 |
parents | d57fe7ef5a9f |
children | 60904bb9d0d8 |
comparison
equal
deleted
inserted
replaced
3621:0576930165ed | 3622:62c03085c0d9 |
---|---|
15 # You should have received a copy of the GNU General Public License | 15 # You should have received a copy of the GNU General Public License |
16 # along with this program; if not, write to the Free Software | 16 # along with this program; if not, write to the Free Software |
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | 17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
18 | 18 |
19 # | 19 # |
20 # This script attempts to guess a cononical system name similar to | 20 # This script attempts to guess a canonical system name similar to |
21 # config.sub. If it succeeds, it prints the system name on stdout, and | 21 # config.sub. If it succeeds, it prints the system name on stdout, and |
22 # exits with 0. Otherwise, it prints an error message on stderr, and | 22 # exits with 0. Otherwise, it prints an error message on stderr, and |
23 # exits with 1. | 23 # exits with 1. |
24 # | 24 # |
25 # The plan is that this can be called by configure scripts if you | 25 # The plan is that this can be called by configure scripts if you |
38 | 38 |
39 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | 39 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
40 alpha:OSF1:1.*:*) | 40 alpha:OSF1:1.*:*) |
41 echo alpha-dec-osf${UNAME_RELEASE} | 41 echo alpha-dec-osf${UNAME_RELEASE} |
42 exit 0 ;; | 42 exit 0 ;; |
43 sun4*:SunOS:[5-9].*:*) | 43 sun4*:SunOS:5.*:*) |
44 echo sparc-sun-solaris2 | 44 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
45 exit 0 ;; | |
46 sun4*:SunOS:6*:*) | |
47 # According to config.sub, this is the proper way to canonicalize | |
48 # SunOS6. Hard to guess exactly what SunOS6 will be like, but | |
49 # it's likely to be more like Solaris than SunOS4. | |
50 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
45 exit 0 ;; | 51 exit 0 ;; |
46 sun4*:SunOS:*:*) | 52 sun4*:SunOS:*:*) |
47 echo sparc-sun-sunos${UNAME_RELEASE} | 53 echo sparc-sun-sunos${UNAME_RELEASE} |
48 exit 0 ;; | 54 exit 0 ;; |
49 sun3*:SunOS:*:*) | 55 sun3*:SunOS:*:*) |
86 echo hppa1.1-hp-hpux | 92 echo hppa1.1-hp-hpux |
87 exit 0 ;; | 93 exit 0 ;; |
88 9000/8??:HP-UX:*:*) | 94 9000/8??:HP-UX:*:*) |
89 echo hppa1.0-hp-hpux | 95 echo hppa1.0-hp-hpux |
90 exit 0 ;; | 96 exit 0 ;; |
97 9000/8??:4.3bsd:*:* | 9000/8?7:4.3bsd:*:* ) | |
98 echo hppa1.1-hp-bsd | |
99 exit 0 ;; | |
100 9000/8??:4.3bsd:*:*) | |
101 echo hppa1.0-hp-bsd | |
102 exit 0 ;; | |
91 C1*:ConvexOS:*:*) | 103 C1*:ConvexOS:*:*) |
92 echo c1-convex-bsd | 104 echo c1-convex-bsd |
93 exit 0 ;; | 105 exit 0 ;; |
94 C2*:ConvexOS:*:*) | 106 C2*:ConvexOS:*:*) |
95 echo c2-convex-bsd | 107 echo c2-convex-bsd |
105 exit 0 ;; | 117 exit 0 ;; |
106 i[34]86:Linux:*:*) | 118 i[34]86:Linux:*:*) |
107 echo ${UNAME_MACHINE}-unknown-linux | 119 echo ${UNAME_MACHINE}-unknown-linux |
108 exit 0 ;; | 120 exit 0 ;; |
109 i[34]86:UNIX_SV:4.*:*) | 121 i[34]86:UNIX_SV:4.*:*) |
110 echo i486-unknown-sysv4 | 122 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
123 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} | |
124 else | |
125 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE} | |
126 fi | |
111 exit 0 ;; | 127 exit 0 ;; |
112 i[34]86:*:3.2:*) | 128 i[34]86:*:3.2:*) |
113 if /bin/uname -X 2>/dev/null >/dev/null ; then | 129 if /bin/uname -X 2>/dev/null >/dev/null ; then |
114 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` | 130 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` |
115 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 | 131 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 |
120 exit 0 ;; | 136 exit 0 ;; |
121 mini*:CTIX:SYS*5:*) | 137 mini*:CTIX:SYS*5:*) |
122 # "miniframe" | 138 # "miniframe" |
123 echo m68010-convergent-sysv | 139 echo m68010-convergent-sysv |
124 exit 0 ;; | 140 exit 0 ;; |
141 M680[234]0:*:R3V[567]*:*) | |
142 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; | |
125 esac | 143 esac |
126 | 144 |
127 echo '(No uname command or uname output not recognized.)' 1>&2 | 145 echo '(No uname command or uname output not recognized.)' 1>&2 |
128 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | 146 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
129 | 147 |
155 | 173 |
156 #if defined(__386BSD__) || (defined(__bsdi__) && defined(__i386__)) | 174 #if defined(__386BSD__) || (defined(__bsdi__) && defined(__i386__)) |
157 printf("i386-unknown-bsd\n"); exit(0); | 175 printf("i386-unknown-bsd\n"); exit(0); |
158 #endif | 176 #endif |
159 | 177 |
178 #if defined(sequent) | |
179 #if defined(i386) | |
180 printf("i386-sequent-dynix\n"); exit(0); | |
181 #endif | |
182 #if defined (ns32000) | |
183 printf("ns32k-sequent-dynix\n"); exit(0); | |
184 #endif | |
185 #endif | |
186 | |
187 #if defined(_SEQUENT_) | |
188 printf("i386-sequent-ptx\n"); exit(0); | |
189 #endif | |
190 | |
160 exit (1); | 191 exit (1); |
161 } | 192 } |
162 EOF | 193 EOF |
163 | 194 |
164 ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 | 195 ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 |