Mercurial > emacs
comparison config.guess @ 22970:ea0e3bbd3703 gcc-2_8_1-980811
Detect HPPA 2.0 architecture.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 09 Aug 1998 22:42:36 +0000 |
parents | b1418bc30131 |
children | 334beda46c29 |
comparison
equal
deleted
inserted
replaced
22969:1e29148859d4 | 22970:ea0e3bbd3703 |
---|---|
362 exit 0 ;; | 362 exit 0 ;; |
363 9000/[3478]??:HP-UX:*:*) | 363 9000/[3478]??:HP-UX:*:*) |
364 case "${UNAME_MACHINE}" in | 364 case "${UNAME_MACHINE}" in |
365 9000/31? ) HP_ARCH=m68000 ;; | 365 9000/31? ) HP_ARCH=m68000 ;; |
366 9000/[34]?? ) HP_ARCH=m68k ;; | 366 9000/[34]?? ) HP_ARCH=m68k ;; |
367 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;; | 367 9000/7?? | 9000/8?[1679] ) |
368 9000/8?? ) HP_ARCH=hppa1.0 ;; | 368 sed 's/^ //' << EOF >dummy.c |
369 #include <stdlib.h> | |
370 #include <unistd.h> | |
371 | |
372 int main () | |
373 { | |
374 #if defined(_SC_KERNEL_BITS) | |
375 long bits = sysconf(_SC_KERNEL_BITS); | |
376 #endif | |
377 long cpu = sysconf (_SC_CPU_VERSION); | |
378 | |
379 switch (cpu) | |
380 { | |
381 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
382 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
383 case CPU_PA_RISC2_0: | |
384 #if defined(_SC_KERNEL_BITS) | |
385 switch (bits) | |
386 { | |
387 case 64: puts ("hppa2.0w"); break; | |
388 case 32: puts ("hppa2.0n"); break; | |
389 default: puts ("hppa2.0"); break; | |
390 } break; | |
391 #else /* !defined(_SC_KERNEL_BITS) */ | |
392 puts ("hppa2.0"); break; | |
393 #endif | |
394 default: puts ("hppa1.0"); break; | |
395 } | |
396 exit (0); | |
397 } | |
398 EOF | |
399 ${CC-cc} dummy.c -o dummy && HP_ARCH=`./dummy` | |
400 rm -f dummy.c dummy | |
369 esac | 401 esac |
370 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | 402 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
371 echo ${HP_ARCH}-hp-hpux${HPUX_REV} | 403 echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
372 exit 0 ;; | 404 exit 0 ;; |
373 3050*:HI-UX:*:*) | 405 3050*:HI-UX:*:*) |