summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-13 00:14:28 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-13 00:14:28 +0000
commitd32c4241daeee74d40f97738bf65a605847a46d9 (patch)
tree945dc9a4c6d14311d21790520fd8ddfaccacbb6e /configure
parentfd0c3b7c62b11d7c4218b131b8db78bc17380e75 (diff)
downloadmpv-d32c4241daeee74d40f97738bf65a605847a46d9.tar.bz2
mpv-d32c4241daeee74d40f97738bf65a605847a46d9.tar.xz
Implement Nilmoni's and Bernd Ernesti's patches for:
Better real codec dir detection and NetBSD real support. Fix Nilmonis code, so it's working like expected. Move a debug printf to mp_msg and some fixes in demux_real.c. Some cosmetics :) -> RealPlayer 8 to RealPlayer, as RealOne (aka RealPlayer 9 works, too) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6405 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure35
1 files changed, 30 insertions, 5 deletions
diff --git a/configure b/configure
index 38b2e35358..cde5d548f9 100755
--- a/configure
+++ b/configure
@@ -140,7 +140,7 @@ Optional features:
--disable-win32 disable Win32 DLL support [autodetect]
--disable-dshow disable DirectShow support [autodetect]
--disable-xanim disable XAnim DLL support [autodetect]
- --disable-real disable RealPlayer8 DLL support [autodetect]
+ --disable-real disable RealPlayer DLL support [autodetect]
--disable-xvid disable XviD codec [autodetect]
--disable-divx4linux disable DivX4linux codec [autodetect]
--enable-opendivx enable _old_ OpenDivx codec [disable]
@@ -235,6 +235,7 @@ Use these options if autodetection fails:
--with-libdvdnav=DIR libdvdnav in DIR
--with-win32libdir=DIR W*ndows DLL files in DIR
--with-xanimlibdir=DIR XAnim DLL files in DIR
+ --with-reallibdir=DIR RealPlayer DLL files in DIR
--with-xvidcore=PATH path to XviD libcore.a (e.g: /opt/lib/libcore.a)
--with-sdl-config=PATH path to sdl*-config (e.g.: /opt/bin/sdl-config)
--with-gtk-config=PATH path to gtk*-config (e.g.: /opt/bin/gtk-config)
@@ -1084,6 +1085,10 @@ for ac_option do
_xanimlibdir=`echo $ac_option | cut -d '=' -f 2`
_xanim=yes
;;
+ --with-reallibdir=*)
+ _reallibdir=`echo $ac_option | cut -d '=' -f 2`
+ _real=yes
+ ;;
--with-csslibdir=*)
_csslibdir=`echo $ac_option | cut -d '=' -f 2`
_css=yes
@@ -3252,18 +3257,34 @@ else
_nocodecmodules="xanim $_nocodecmodules"
fi
-echocheck "RealPlayer8 DLL"
+echocheck "RealPlayer DLL"
if test "$_real" = auto ; then
_real=no
if test "$_dl" = yes ; then
if linux ; then
_real=yes
- echores "yes"
elif freebsd ; then
_real=yes
- echores "yes"
+ elif netbsd ; then
+ _real=yes
+ else
+ echores "no (tested only on Linux/FreeBSD/NetBSD)"
+ fi
+ if test "$_real" = yes ; then
+ if test -z "$_reallibdir" ; then
+ for I in /usr/lib/real /usr/lib/RealPlayer*/Codecs ; do
+ if test -d "$I" ; then
+ _reallibdir="$I"
+ break;
+ fi;
+ done
+ fi
+ fi
+ test "$_reallibdir" || _real=no
+ if test "$_real" = yes ; then
+ echores "yes (using $_reallibdir)"
else
- echores "no (tested only on Linux and FreeBSD arch)"
+ echores "no (no suitable directory found - see DOCS/codecs.html)"
fi
else
echores "no (dynamic loader support needed)"
@@ -3273,9 +3294,11 @@ else
fi
if test "$_real" = yes ; then
_def_real='#define USE_REALCODECS 1'
+ _def_real_path="#define REALCODEC_PATH \"$_reallibdir\""
_codecmodules="real $_codecmodules"
else
_def_real='#undef USE_REALCODECS'
+ _def_real_path="#undef REALCODEC_PATH"
_nocodecmodules="real $_nocodecmodules"
fi
@@ -4218,6 +4241,8 @@ $_def_xanim_path
/* RealPlayer DLL support */
$_def_real
+/* Default search path */
+$_def_real_path
/* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/
$_def_fastmemcpy