configure: Use check_builtin() where appropriate
authorDiego Biurrun <diego@biurrun.de>
Mon, 4 Mar 2013 22:02:02 +0000 (23:02 +0100)
committerDiego Biurrun <diego@biurrun.de>
Tue, 5 Mar 2013 10:04:37 +0000 (11:04 +0100)
configure

index f4c04a3..7525e22 100755 (executable)
--- a/configure
+++ b/configure
@@ -3317,9 +3317,8 @@ elif enabled sparc; then
 
 elif enabled x86; then
 
-    check_code ld intrin.h "__rdtsc()" && enable rdtsc
-
-    check_code ld mmintrin.h "_mm_empty()" && enable mm_empty
+    check_builtin rdtsc    intrin.h   "__rdtsc()"
+    check_builtin mm_empty mmintrin.h "_mm_empty()"
 
     enable local_aligned_8 local_aligned_16