diff --git a/configure b/configure
index 22c78e76f80a49a8fd04bbedf86fbd1e7ea9474e..26ea2300d521e9d826ca43226aaa23a5ca2fd97b 100755
--- a/configure
+++ b/configure
@@ -2823,7 +2823,7 @@ probe_cc(){
     elif $_cc --vsn 2>/dev/null | grep -Eq "ARM (C/C\+\+ )?Compiler"; then
         test -d "$sysroot" || die "No valid sysroot specified."
         _type=armcc
-        _ident=$($_cc --vsn | head -n1 | sed 's/.*: //')
+        _ident=$($_cc --vsn | grep -i build | head -n1 | sed 's/.*: //')
         armcc_conf="$PWD/armcc.conf"
         $_cc --arm_linux_configure                 \
              --arm_linux_config_file="$armcc_conf" \