A compile-only test could succeed with an implicit function declaration.
Also move the check to the x86 section; rdtsc is x86-only.
---
configure | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 0b0d532..3c82eaa 100755
--- a/configure
+++ b/configure
@@ -2646,8 +2646,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
@@ -2746,6 +2744,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
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel