aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Bothner1994-08-26 22:21:31 +0000
committerPer Bothner1994-08-26 22:21:31 +0000
commitcb94a3dae371ceef880163a2f7a898359faab2f5 (patch)
tree24878014b48f3aaed0013778973df43748a34fe4
parenta01e985127e40ac3b63e3ef34f72f9f5421f2de9 (diff)
downloademacs-cb94a3dae371ceef880163a2f7a898359faab2f5.tar.gz
emacs-cb94a3dae371ceef880163a2f7a898359faab2f5.zip
Merges from Cygnus version.
-rwxr-xr-xconfig.guess71
1 files changed, 50 insertions, 21 deletions
diff --git a/config.guess b/config.guess
index e3a6761e211..7e25de497a1 100755
--- a/config.guess
+++ b/config.guess
@@ -47,14 +47,14 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
47 *:NetBSD:*:*) 47 *:NetBSD:*:*)
48 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` 48 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
49 exit 0 ;; 49 exit 0 ;;
50 alpha:OSF1:1.*:*) 50 alpha:OSF1:V*:*)
51 # After 1.2, OSF1 uses "V1.3" for uname -r.
52 echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^V//'`
53 exit 0 ;;
54 alpha:OSF1:*:*)
51 # 1.2 uses "1.2" for uname -r. 55 # 1.2 uses "1.2" for uname -r.
52 echo alpha-dec-osf${UNAME_RELEASE} 56 echo alpha-dec-osf${UNAME_RELEASE}
53 exit 0 ;; 57 exit 0 ;;
54 alpha:OSF1:V1.*:* | alpha:OSF1:V[2-9].*:*)
55 # 1.3 and later use "V1.3", etc. for uname -r.
56 echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^V//'`
57 exit 0 ;;
58 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 58 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
59 echo arm-acorn-riscix${UNAME_RELEASE} 59 echo arm-acorn-riscix${UNAME_RELEASE}
60 exit 0;; 60 exit 0;;
@@ -89,6 +89,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
89 mips:*:5*:RISCos) 89 mips:*:5*:RISCos)
90 echo mips-mips-riscos${UNAME_RELEASE} 90 echo mips-mips-riscos${UNAME_RELEASE}
91 exit 0 ;; 91 exit 0 ;;
92 m88k:CX/UX:7*:*)
93 echo m88k-harris-cxux7
94 exit 0 ;;
92 m88k:*:4*:R4*) 95 m88k:*:4*:R4*)
93 echo m88k-motorola-sysv4 96 echo m88k-motorola-sysv4
94 exit 0 ;; 97 exit 0 ;;
@@ -146,7 +149,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
146 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 149 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
147 echo m68k-hp-bsd4.4 150 echo m68k-hp-bsd4.4
148 exit 0 ;; 151 exit 0 ;;
149 9000/[3478]??:HP-UX:*:* | 9000/8?7:HP-UX:*:* ) 152 9000/[3478]??:HP-UX:*:*)
150 case "${UNAME_MACHINE}" in 153 case "${UNAME_MACHINE}" in
151 9000/31? ) HP_ARCH=m68000 ;; 154 9000/31? ) HP_ARCH=m68000 ;;
152 9000/[34]?? ) HP_ARCH=m68k ;; 155 9000/[34]?? ) HP_ARCH=m68k ;;
@@ -155,7 +158,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
155 esac 158 esac
156 case ${UNAME_RELEASE} in 159 case ${UNAME_RELEASE} in
157 *.B7.* ) HPUX_REV=7 ;; 160 *.B7.* ) HPUX_REV=7 ;;
158 *.B8.* | *.08.* ) HPUX_REV=8 ;; 161 *.[B0]8.* ) HPUX_REV=8 ;;
159 *.09.* ) HPUX_REV=9 ;; 162 *.09.* ) HPUX_REV=9 ;;
160 esac 163 esac
161 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 164 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
@@ -167,9 +170,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
167 main () 170 main ()
168 { 171 {
169 long cpu = sysconf (_SC_CPU_VERSION); 172 long cpu = sysconf (_SC_CPU_VERSION);
170 if (CPU_IS_HP_MC68K (cpu)) 173 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
171 puts ("m68k-hitachi-hiuxwe2"); 174 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
172 else if (CPU_IS_PA_RISC (cpu)) 175 results, however. */
176 if (CPU_IS_PA_RISC (cpu))
173 { 177 {
174 switch (cpu) 178 switch (cpu)
175 { 179 {
@@ -179,6 +183,8 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
179 default: puts ("hppa-hitachi-hiuxwe2"); break; 183 default: puts ("hppa-hitachi-hiuxwe2"); break;
180 } 184 }
181 } 185 }
186 else if (CPU_IS_HP_MC68K (cpu))
187 puts ("m68k-hitachi-hiuxwe2");
182 else puts ("unknown-hitachi-hiuxwe2"); 188 else puts ("unknown-hitachi-hiuxwe2");
183 exit (0); 189 exit (0);
184 } 190 }
@@ -193,6 +199,12 @@ EOF
193 9000/8??:4.3bsd:*:*) 199 9000/8??:4.3bsd:*:*)
194 echo hppa1.0-hp-bsd 200 echo hppa1.0-hp-bsd
195 exit 0 ;; 201 exit 0 ;;
202 hp7??:OSF1:*:* | hp8?7:OSF1:*:* )
203 echo hppa1.1-hp-osf
204 exit 0 ;;
205 hp8??:OSF1:*:*)
206 echo hppa1.0-hp-osf
207 exit 0 ;;
196 C1*:ConvexOS:*:* | convex:ConvexOS:C1:*) 208 C1*:ConvexOS:*:* | convex:ConvexOS:C1:*)
197 echo c1-convex-bsd 209 echo c1-convex-bsd
198 exit 0 ;; 210 exit 0 ;;
@@ -208,6 +220,9 @@ EOF
208 CRAY-2:UNICOS:*:*) 220 CRAY-2:UNICOS:*:*)
209 echo cray2-cray-unicos 221 echo cray2-cray-unicos
210 exit 0 ;; 222 exit 0 ;;
223 hp3[0-9][05]:NetBSD:*:*)
224 echo m68k-hp-netbsd${UNAME_RELEASE}
225 exit 0 ;;
211 i[34]86:BSD/386:*:*) 226 i[34]86:BSD/386:*:*)
212 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 227 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
213 exit 0 ;; 228 exit 0 ;;
@@ -236,6 +251,14 @@ EOF
236 echo ${UNAME_MACHINE}-unknown-sysv32 251 echo ${UNAME_MACHINE}-unknown-sysv32
237 fi 252 fi
238 exit 0 ;; 253 exit 0 ;;
254# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
255# are messed up and put the nodename in both sysname and nodename.
256 i[34]86:DYNIX/ptx:4*:*)
257 echo i386-sequent-sysv4
258 exit 0 ;;
259 Intel:Mach:3*:*)
260 echo i386-unknown-mach3
261 exit 0 ;;
239 i860:*:4.*:*) # i860-SVR4 262 i860:*:4.*:*) # i860-SVR4
240 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 263 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
241 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 264 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
@@ -264,6 +287,20 @@ EOF
264 TSUNAMI:LynxOS:2.2*:*) 287 TSUNAMI:LynxOS:2.2*:*)
265 echo sparc-lynx-lynxos${UNAME_RELEASE} 288 echo sparc-lynx-lynxos${UNAME_RELEASE}
266 exit 0 ;; 289 exit 0 ;;
290 rs6000:LynxOS:2.2*:*)
291 echo rs6000-lynx-lynxos${UNAME_RELEASE}
292 exit 0 ;;
293 RM*:SINIX-*:*:*)
294 echo mips-sni-sysv4
295 exit 0 ;;
296 *:SINIX-*:*:*)
297 if uname -p 2>/dev/null >/dev/null ; then
298 UNAME_MACHINE=`(uname -p) 2>/dev/null`
299 echo ${UNAME_MACHINE}-sni-sysv4
300 else
301 echo ns32k-sni-sysv
302 fi
303 exit 0 ;;
267esac 304esac
268 305
269#echo '(No uname command or uname output not recognized.)' 1>&2 306#echo '(No uname command or uname output not recognized.)' 1>&2
@@ -296,16 +333,8 @@ main ()
296#endif 333#endif
297 int version; 334 int version;
298 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 335 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
299 if (version==2) 336 printf ("%s-next-neststep%s\n", __ARCHITECTURE__, version==2 ? "2" : "3");
300 { 337 exit (0);
301 printf ("%s-next-ns2\n", __ARCHITECTURE__);
302 exit (0);
303 }
304 else
305 {
306 printf ("%s-next-ns3\n", __ARCHITECTURE__);
307 exit (0);
308 }
309#endif 338#endif
310 339
311#if defined (MULTIMAX) || defined (n16) 340#if defined (MULTIMAX) || defined (n16)
@@ -320,7 +349,7 @@ main ()
320#endif 349#endif
321#endif 350#endif
322 351
323#if defined (__386BSD__) || (defined (__bsdi__) && defined (__i386__)) 352#if defined (__386BSD__)
324 printf ("i386-unknown-bsd\n"); exit (0); 353 printf ("i386-unknown-bsd\n"); exit (0);
325#endif 354#endif
326 355