1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
*** config.orig Thu Sep 21 04:23:14 2000
--- config Sat Apr 7 12:38:53 2001
***************
*** 167,176 ****
echo "${MACH}-${ARCH}-freebsd${VERS}"; exit 0
;;
! NetBSD:*:*:*386*)
! echo "`/usr/sbin/sysctl -n hw.model | sed 's,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0
;;
!
NetBSD:*)
echo "${MACHINE}-whatever-netbsd"; exit 0
;;
--- 167,180 ----
echo "${MACH}-${ARCH}-freebsd${VERS}"; exit 0
;;
! NetBSD:*:*:i386)
! if echo __ELF__ | cc -E - | grep -q __ELF__; then
! echo "i386-whatever-netbsd"; exit 0
! else
! echo "i386elf-whatever-netbsd"; exit 0
! fi
;;
!
NetBSD:*)
echo "${MACHINE}-whatever-netbsd"; exit 0
;;
***************
*** 330,335 ****
--- 334,340 ----
CC=cc
fi
+ if false; then
if [ "$SYSTEM" = "SunOS" ]; then
# check for WorkShop C, expected output is "cc: blah-blah C x.x"
CCVER=`(cc -V 2>&1) 2>/dev/null | \
***************
*** 347,352 ****
--- 352,358 ----
CC=sc3
fi
fi
+ fi
if [ "${SYSTEM}-${MACHINE}" = "Linux-alpha" ]; then
# check for Compaq C, expected output is "blah-blah C Vx.x"
***************
*** 454,462 ****
alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;;
*-freebsd[3-9]*) OUT="FreeBSD-elf" ;;
*-freebsd[1-2]*) OUT="FreeBSD" ;;
! *86*-*-netbsd) OUT="NetBSD-x86" ;;
! sun3*-*-netbsd) OUT="NetBSD-m68" ;;
! *-*-netbsd) OUT="NetBSD-sparc" ;;
*86*-*-openbsd) OUT="OpenBSD-x86" ;;
alpha*-*-openbsd) OUT="OpenBSD-alpha" ;;
pmax*-*-openbsd) OUT="OpenBSD-mips" ;;
--- 460,468 ----
alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;;
*-freebsd[3-9]*) OUT="FreeBSD-elf" ;;
*-freebsd[1-2]*) OUT="FreeBSD" ;;
! *86elf*-*-netbsd) OUT="NetBSD-i386elf" ;;
! *86-*-netbsd) OUT="NetBSD-i386" ;;
! *-netbsd) OUT="NetBSD-`sysctl -n hw.machine_arch`" ;;
*86*-*-openbsd) OUT="OpenBSD-x86" ;;
alpha*-*-openbsd) OUT="OpenBSD-alpha" ;;
pmax*-*-openbsd) OUT="OpenBSD-mips" ;;
|