configure.ac: Use amdgpu component for LLVM 3.2
authorTom Stellard <thomas.stellard@amd.com>
Mon, 1 Oct 2012 21:00:00 +0000 (21:00 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 1 Oct 2012 21:14:10 +0000 (21:14 +0000)
The amdgpu component actually does exist.  I must have been using an
older version of llvm-config by accident when I first made this change.

configure.ac

index 32f412b48e9261e96ee1dc58df0c2f992262c5af..0de506d6060e13aa901c34af6e1e7069026262d6 100644 (file)
@@ -1793,10 +1793,8 @@ radeon_llvm_check() {
                       git://people.freedesktop.org/~tstellar/llvm master
                       and build with --enable-experimental-targets==AMDGPU])
     fi
-    if test "$LLVM_VERSION" = "3.2"; then
-        dnl LLVM 3.2 does not add experimental libraries to llvm-config's
-        dnl library list.
-        LLVM_LIBS="$LLVM_LIBS -lLLVMAMDGPUCodeGen -lLLVMAMDGPUDesc -lLLVMAMDGPUAsmPrinter -lLLVMAMDGPUInfo `$LLVM_CONFIG --libs mc`"
+    if test "x$LLVM_VERSION" = "x3.2"; then
+        LLVM_LIBS="$LLVM_LIBS `$LLVM_CONFIG --libs amdgpu`"
     fi
 }