File: compiler

package info (click to toggle)
lmbench 3.0-a9%2Bdebian.1-9
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 3,028 kB
  • sloc: ansic: 12,328; perl: 6,531; sh: 2,784; makefile: 732
file content (16 lines) | stat: -rwxr-xr-x 210 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if [ "X$CC" != "X" ] && echo "$CC" | grep '`' > /dev/null
then
    CC=
fi

if [ X$CC = X ]
then	CC=cc
	for p in `echo $PATH | sed 's/:/ /g'`
	do	if [ -f $p/gcc ]
		then	CC=gcc
		fi
	done
fi
echo $CC