Skip to content

Commit

Permalink
Print configure script found toolchain version
Browse files Browse the repository at this point in the history
  • Loading branch information
lht committed Apr 10, 2012
1 parent 1dac883 commit b2ec26c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions configure
Expand Up @@ -71,7 +71,7 @@ putvar() {
then
printf "configure: %-20s := %.35s ...\n" $1 "$T"
else
printf "configure: %-20s := %s\n" $1 "$T"
printf "configure: %-20s := %s %s\n" $1 "$T" "$2"
fi
printf "%-20s := %s\n" $1 "$T" >>config.tmp
}
Expand All @@ -86,13 +86,22 @@ probe() {
T=$(which $P 2>&1)
if [ $? -eq 0 ]
then
VER0=$($P --version 2>/dev/null | head -1 \
| sed -e 's/[^0-9]*\([vV]\?[0-9.]\+[^ ]*\).*/\1/' )
if [ $? -eq 0 -a "x${VER0}" != "x" ]
then
VER="($VER0)"
else
VER=""
fi
break
else
VER=""
T=""
fi
done
eval $V=\$T
putvar $V
putvar $V "$VER"
}

probe_need() {
Expand Down Expand Up @@ -316,6 +325,7 @@ fi

probe CFG_CLANG clang++
probe CFG_GCC gcc
probe CFG_LD ld
probe CFG_LLVM_CONFIG llvm-config
probe CFG_VALGRIND valgrind
probe CFG_PERF perf
Expand Down

0 comments on commit b2ec26c

Please sign in to comment.