summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-22 21:54:01 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-22 21:54:01 +0000
commit166b8cd4aea2cdf2aa6c2162bc7acdb3c48ac4d4 (patch)
tree7aadce0032d7ebba4f620dbf6c82dedcef30ab70 /configure
parent889eedb39ec4d697000f25b940aa170f16d3b209 (diff)
downloadmpv-166b8cd4aea2cdf2aa6c2162bc7acdb3c48ac4d4.tar.bz2
mpv-166b8cd4aea2cdf2aa6c2162bc7acdb3c48ac4d4.tar.xz
Add support for shared libavutil.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18211 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure b/configure
index 207e94441e..3c12a6a649 100755
--- a/configure
+++ b/configure
@@ -242,6 +242,7 @@ Codecs:
--disable-libavcodec disable libavcodec [autodetect]
--disable-libavformat disable libavformat [autodetect]
--disable-libpostproc disable libpostproc [autodetect]
+ --disable-libavutil_so disable shared libavutil [autodetect]
--disable-libavcodec_so disable shared libavcodec [autodetect]
--disable-libavformat_so disable shared libavformat [autodetect]
--disable-libpostproc_so disable shared libpostproc [autodetect]
@@ -1465,6 +1466,7 @@ _prefix="/usr/local"
# and have - unless stated otherwise - at least 2 states : yes no
# If autodetection is available then the third state is: auto
_libavutil=auto
+_libavutil_so=auto
_libavcodec=auto
_amr_nb=auto
_amr_nb_fixed=auto
@@ -1814,6 +1816,8 @@ for ac_option do
--disable-opendivx) _opendivx=no ;;
--enable-libavutil) _libavutil=yes ;;
--disable-libavutil) _libavutil=no ;;
+ --enable-libavutil_so) _libavutil_so=yes ;;
+ --disable-libavutil_so) _libavutil_so=no ;;
--enable-libavcodec) _libavcodec=yes ;;
--disable-libavcodec) _libavcodec=no ;;
--enable-libavcodec_so) _libavcodec_so=yes ;;
@@ -6044,6 +6048,28 @@ fi
echores "$_libpostproc"
+if test "$_libavutil" != yes ; then
+echocheck "FFmpeg libavutil (dynamic)"
+if test "$_libavutil_so" = auto ; then
+ _libavutil_so=no
+ cat > $TMPC << EOF
+#include <ffmpeg/common.h>
+int main(void) { ff_gcd(1,1); return 0; }
+EOF
+ if pkg-config --exists libavutil ; then
+ _inc_libavutil=`pkg-config --cflags libavutil`
+ _ld_libavutil=`pkg-config --libs libavutil`
+ cc_check $_inc_libavutil $_ld_libavutil && _libavutil_so=yes
+ elif cc_check -lavutil $_ld_lm ; then
+ _libavutil_so=yes
+ fi
+ if test "$_libavutil_so" == yes ; then
+ _res_comment="using libavutil.so, but static libavutil is recommended"
+ fi
+fi
+echores "$_libavutil_so"
+fi
+
if test "$_libavcodec" != yes ; then
echocheck "FFmpeg libavcodec (dynamic)"
if test "$_libavcodec_so" = auto ; then
@@ -7308,6 +7334,7 @@ DS_LIB = $_ld_dshow
AV_DEP = $_dep_libavcodec $_dep_libavformat $_dep_libavutil $_dep_libpostproc
AV_LIB = $_ld_libavcodec $_ld_libavformat $_ld_libavutil $_ld_libpostproc
CONFIG_LIBAVUTIL = $_libavutil
+CONFIG_LIBAVUTIL_SO = $_libavutil_so
CONFIG_LIBAVCODEC = $_libavcodec
CONFIG_LIBAVCODEC_SO = $_libavcodec_so
CONFIG_LIBAVFORMAT = $_libavformat