summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2012-01-24 11:26:20 +0000
committerRoy Marples <roy@marples.name>2012-01-24 11:26:20 +0000
commitefaacbbf18d3fc6a7862f2d8c122d39613fb724d (patch)
tree58e12415caa46af4aea513ad7d9e9cfdb59ae587
parent29fe5ed6a4430543b4e7b25b20acc575445eade6 (diff)
downloaddhcpcd-efaacbbf18d3fc6a7862f2d8c122d39613fb724d.tar.xz
Add and prefer clang to the compiler list.
The compiler version is now shown during configure.
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 8a395fef..eaf0cef0 100755
--- a/configure
+++ b/configure
@@ -168,7 +168,7 @@ echo "MANDIR= $MANDIR" >>$CONFIG_MK
if [ -z "$CC" ]; then
printf "Looking for compiler ... "
for b in $TARGET- ""; do
- for cc in gcc pcc icc cc; do
+ for cc in clang gcc pcc icc cc; do
if type $b$cc >/dev/null 2>&1; then
CC=$b$cc
echo "$CC"
@@ -185,6 +185,7 @@ if [ -z "$CC" ]; then
else
echo "Using compiler $CC"
fi
+$CC --version | $SED -e '1!d'
echo "CC= $CC" >>$CONFIG_MK
if [ -n "$CFLAGS" ]; then