summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-24 22:51:55 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-24 22:51:55 +0000
commit8e847e4b33555769b0fa5e5ec11442d7cc7977d4 (patch)
treeab6937e5c0d86a0108ffce7bb2ad469bb7fdc5b4 /configure
parent11827491448cffc84519ec24e1d95f250a855698 (diff)
downloadmpv-8e847e4b33555769b0fa5e5ec11442d7cc7977d4.tar.bz2
mpv-8e847e4b33555769b0fa5e5ec11442d7cc7977d4.tar.xz
DShow support selection is now by ./configure --disable-dshow
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@628 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 24 insertions, 0 deletions
diff --git a/configure b/configure
index f57ef7091e..b344bbe845 100755
--- a/configure
+++ b/configure
@@ -101,6 +101,10 @@ params:
--disable-select disable audio select() support ( for example required this
option ALSA or Vortex2 driver )
+ --disable-dshow disable DirectShow support (if you don't have
+ C++ compiler&libs, or you've found dshow codecs
+ slower than old VfW ones)
+
--with-x11libdir=DIR X library files are in DIR
--with-win32libdir=DIR windows codec files
--with-csslibdir=DIR directory contains libcss.so shared library
@@ -207,6 +211,7 @@ _svga=no
_fbdev=yes
_lirc=no
_css=no
+_dshow=yes
_x=1
_y=1
@@ -604,6 +609,9 @@ do
--disable-select)
_select='#undef HAVE_AUDIO_SELECT'
;;
+ --disable-dshow)
+ _dshow=no
+ ;;
--with-win32libdir=*)
_win32libdir=`echo $ac_option | cut -d '=' -f 2`
_win32libdirnotify=no
@@ -660,6 +668,7 @@ echo "Checking for SVGAlib ... $_svga"
echo "Checking for FBDev ... $_fbdev"
echo "Checking for DeCSS support ... $_css"
echo "Checking for PNG support ... $_png"
+echo "Checking for DirectShow ... $_dshow"
# write conf files.
if [ $_gl = yes ]; then
@@ -684,6 +693,16 @@ else
_cssinc=''
fi
+if [ $_dshow = yes ]; then
+ _dshowlib='-Lloader/DirectShow -lDS_Filter -lstdc++'
+ _dshowdep='loader/DirectShow/libDS_Filter.a'
+ _dshow='#define USE_DIRECTSHOW'
+else
+ _dshowlib=''
+ _dshowdep=''
+ _dshow='#undef USE_DIRECTSHOW'
+fi
+
if [ $_x11 = yes ]; then
if [ $_xdpms = yes ]; then
_x11lib='-lX11 -lXext -lXdpms'
@@ -758,6 +777,8 @@ LIRC_LIBS = $_lirclibs
CSS_LIB = $_csslib
CSS_INC = $_cssinc
WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\"
+DS_DEP = $_dshowdep
+DS_LIB = $_dshowlib
EOF
# echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak
@@ -951,6 +972,9 @@ $_css
/* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */
#define MPEG12_POSTPROC
+/* DirectShow support */
+$_dshow
+
/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
/* #define WORDS_BIGENDIAN */