changeset 31505:5cb114fcfe2e

Simplify clang version extraction.
author reimar
date Sun, 27 Jun 2010 19:19:50 +0000
parents 7ad75a6dc1b4
children c58656034ad2
files configure
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Jun 27 19:10:29 2010 +0000
+++ b/configure	Sun Jun 27 19:19:50 2010 +0000
@@ -1596,7 +1596,7 @@
     if test "$cc_name_tmp" = "clang"; then
       echocheck "$_cc version"
       cc_vendor=clang
-      cc_version=$($_cc -v 2>&1 | head -n 1 | cut -d ' ' -f 3)
+      cc_version=$($_cc -dumpversion 2>&1)
       res_comment="experimental support only"
       echores "clang $cc_version"
       break