[FFmpeg-cvslog] r20350 - trunk/configure

conrad subversion
Thu Oct 22 23:19:13 CEST 2009


Author: conrad
Date: Thu Oct 22 23:19:13 2009
New Revision: 20350

Log:
Add clang to detected compilers

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Thu Oct 22 22:43:55 2009	(r20349)
+++ trunk/configure	Thu Oct 22 23:19:13 2009	(r20350)
@@ -1590,6 +1590,11 @@ elif $cc -version 2>/dev/null | grep -q 
             esac
         done
     }
+elif $cc -v 2>&1 | grep -q clang; then
+    cc_type=clang
+    cc_version=__VERSION__
+    CC_DEPFLAGS='-MMD'
+    AS_DEPFLAGS='-MMD'
 fi
 
 test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
@@ -1615,6 +1620,10 @@ if test -n "$sysroot"; then
             add_cppflags -I"$sysinclude"
             add_ldflags  --sysroot="$sysroot"
         ;;
+        clang)
+            add_cppflags -isysroot="$sysroot"
+            add_ldflags -isysroot="$sysroot"
+        ;;
     esac
 fi
 
@@ -2464,6 +2473,8 @@ elif enabled ccc; then
     add_cflags -msg_disable unreachcode
 elif enabled gcc; then
     check_cflags -fno-tree-vectorize
+elif enabled clang; then
+    check_cflags -Qunused-arguments
 fi
 
 if enabled gprof; then



More information about the ffmpeg-cvslog mailing list