blob: 09704c48181cc498b5e3fc37a60528fd94fca1a3 (
plain) (
blame)
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
71
72
|
--- config.orig Sun May 23 18:04:11 1999
+++ config Fri May 28 18:45:26 1999
@@ -122,23 +122,12 @@
echo "${MACHINE}-whatever-bsdi"; exit 0
;;
- FreeBSD:3*:*:*)
- echo "${MACHINE}-whatever-freebsd3"; exit 0
- ;;
-
- FreeBSD:*:*:*386*)
- case `sysctl -n hw.model` in
- Pentium*)
- echo "i586-whatever-freebsd"; exit 0
- ;;
- *)
- echo "i386-whatever-freebsd"; exit 0
- ;;
- esac;
+ FreeBSD:[12]*:*:*)
+ echo "${MACHINE}-whatever-freebsd"; exit 0
;;
FreeBSD:*)
- echo "${MACHINE}-whatever-freebsd"; exit 0
+ echo "${MACHINE}-whatever-freebsd3"; exit 0
;;
NetBSD:*:*:*386*)
@@ -276,23 +265,6 @@
esac
done
-# figure out if gcc is available and if so we use it otherwise
-# we fallback to whatever cc does on the system
-GCCVER=`(gcc -v) 2>&1`
-if [ $? = "0" ]; then
- CC=gcc
-else
- CC=cc
- if [ "$SYSTEM" = "SunOS" ]
- then
- case `cc -V 2>&1` in
- *4*) CC=cc;;
- *5*) CC=cc;;
- *) CC=sc3;;
- esac
- fi
-fi
-
# read the output of the embedded GuessOS
read GUESSOS
@@ -331,18 +303,6 @@
# *-dgux) OUT="dgux" ;;
*) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
esac
-
-# gcc < 2.8 does not support -mcpu=ultrasparc
-if [ "$OUT" = solaris-usparc-gcc ]
-then
- GCCVERMAJOR="`echo $GCCVER | sed 's/.*version \([^.]*\).*/\1/`"
- GCCVERMINOR="`echo $GCCVER | sed 's/.*version[^.]*\.\([^.]*\).*/\1/`"
- echo "gcc version $GCCVERMAJOR.$GCCVERMINOR.x"
- if [ $GCCVERMAJOR$GCCVERMINOR -lt 28 ]
- then
- OUT=solaris-usparc-oldgcc
- fi
-fi
case "$GUESSOS" in
i386-*) options="$options 386" ;;
|