[FFmpeg-cvslog] configure: Change the rdtsc check to a linker check

Diego Biurrun git at videolan.org
Mon Jul 9 22:43:09 CEST 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Jul  9 01:24:37 2012 +0200| [8e85ba8d13fef255231d6796dd8856b907b37492] | committer: Diego Biurrun

configure: Change the rdtsc check to a linker check

A compile-only test could succeed with an implicit function declaration.
Also move the check to the x86 section; rdtsc is x86-only.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8e85ba8d13fef255231d6796dd8856b907b37492
---

 configure |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index ec68648..7507f8f 100755
--- a/configure
+++ b/configure
@@ -2643,8 +2643,6 @@ check_cc <<EOF && enable inline_asm
 void foo(void) { __asm__ volatile ("" ::); }
 EOF
 
-check_code cc intrin.h "__rdtsc()" && enable rdtsc
-
 _restrict=
 for restrict_keyword in restrict __restrict__ __restrict; do
     check_cc <<EOF && _restrict=$restrict_keyword && break
@@ -2743,6 +2741,8 @@ elif enabled sparc; then
 
 elif enabled x86; then
 
+    check_code ld intrin.h "__rdtsc()" && enable rdtsc
+
     enable local_aligned_8 local_aligned_16
 
     # check whether EBP is available on x86



More information about the ffmpeg-cvslog mailing list