From: "Ronald S. Bultje" <rsbul...@gmail.com>

---
 configure |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index da60e8e..ebc6310 100755
--- a/configure
+++ b/configure
@@ -2943,7 +2943,9 @@ for thread in $THREADS_LIST; do
     fi
 done
 
-check_lib math.h sin -lm && LIBM="-lm"
+if ! check_func_headers math.h sin; then
+    check_lib math.h sin -lm && LIBM="-lm"
+fi
 enabled vaapi && require vaapi va/va.h vaInitialize -lva
 
 check_mathfunc cbrtf
-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to