blob: 1ef2fadc58a3b2e45ffbf2b5b25d444f02b25292 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
If ccc (alpha compiler) is installed on the system, the default
configure is broken, fix it to respect CC. This is only
directly broken for ARCH=alpha but would affect anybody with a
ccc binary in their PATH. Bug #41908 (26 Jul 2004 agriffis)
--- a/configure.in
+++ b/configure.in
@@ -915,11 +915,9 @@
alpha*-*-linux*)
################################################################
-#### Check if 'ccc' is in our path
+#### Check if we're using Compaq's C Compiler: 'ccc'
################################################################
-if test "`which ccc 2>/dev/null | grep -c ccc`" != "0" ; then
- # Compaq's C Compiler
- CC=ccc
+if test "`echo $CC | sed 's/.*\///'`" = ccc; then
################################################################
#### set 'OPTIMIZATION = -arch host -tune host'
|