aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2010-07-02 21:04:39 +0000
committerDavid Conrad <lessen42@gmail.com>2010-07-02 21:04:39 +0000
commitb67a8f49a47e632814c2892dae96d7d54aac9530 (patch)
treeb3a2e1482d92951996a0f5388670dcc51b4140d1
parent8ee82f40caf2245c1ffa06481ff91e306c4becd1 (diff)
downloadffmpeg-b67a8f49a47e632814c2892dae96d7d54aac9530.tar.gz
Use __clang_version__ when available
Originally committed as revision 24009 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index f82d7ebe54..482d4f896f 100755
--- a/configure
+++ b/configure
@@ -1761,7 +1761,8 @@ elif $cc -version 2>/dev/null | grep -q TMS470; then
}
elif $cc -v 2>&1 | grep -q clang; then
cc_type=clang
- cc_version=__VERSION__
+ $cc -dM -E $TMPC | grep -q __clang_version__ &&
+ cc_version=__clang_version__ || cc_version=__VERSION__
CC_DEPFLAGS='-MMD'
AS_DEPFLAGS='-MMD'
speed_cflags='-O3'