From 1e5f37165071977c8338f7125c79846de5d47d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Thu, 20 May 2010 16:49:03 +0200 Subject: [PATCH] vp8: link with -lm -lpthread when testing for vp8 encoder/decoder Fixup for bug #619172. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 92d8c735f8..ae8d34c602 100644 --- a/configure.ac +++ b/configure.ac @@ -1487,6 +1487,9 @@ AG_GST_CHECK_FEATURE(VP8, [VP8 decoder], vp8, [ vpx/vpx_codec.h, [ HAVE_VP8_ENCODER=no HAVE_VP8_DECODER=no + + OLD_LIBS="$LIBS" + LIBS="$LIBS -lm -lpthread" AC_CHECK_LIB(vpx, vpx_codec_vp8_cx_algo, [ HAVE_VP8=yes AC_DEFINE(HAVE_VP8_ENCODER, 1, [Defined if the VP8 encoder is available]) @@ -1497,6 +1500,7 @@ AG_GST_CHECK_FEATURE(VP8, [VP8 decoder], vp8, [ AC_DEFINE(HAVE_VP8_DECODER, 1, [Defined if the VP8 decoder is available]) VPX_LIBS="-lvpx" ]) + LIBS="$OLD_LIBS" ]) AC_SUBST(VPX_LIBS) ])