summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-23 02:09:52 +0000
committerivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-23 02:09:52 +0000
commit3d4852d8e029c37902dfd83c8c7c46ba0c16cb37 (patch)
treee0284cf1d93f99a386c95ee6fadbe9891f3697b7 /configure
parent7cdcc45e705bd2173c6ee74bd03eb001247a5638 (diff)
downloadmpv-3d4852d8e029c37902dfd83c8c7c46ba0c16cb37.tar.bz2
mpv-3d4852d8e029c37902dfd83c8c7c46ba0c16cb37.tar.xz
Adds support for LADSPA (Linux Audio Developer's Simple Plugin API) plugins.
Compilation is optional and can be controled by configure. You need to have the LADSPA SDK installed in order to have it autodetected by configure. Manual page is updated. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14218 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure44
1 files changed, 44 insertions, 0 deletions
diff --git a/configure b/configure
index d2f7f0423f..0cb5ac0cec 100755
--- a/configure
+++ b/configure
@@ -211,6 +211,7 @@ Codecs:
--disable-internal-matroska disable internal Matroska support [enabled]
--enable-external-faad build with external FAAD2 (AAC) support [autodetect]
--disable-internal-faad disable internal FAAD2 (AAC) support [autodetect]
+ --disable-ladspa disable LADSPA plugin support [autodetect]
--disable-libdv disable libdv 0.9.5 en/decoding support [autodetect]
--disable-mad disable libmad (MPEG audio) support [autodetect]
--disable-toolame disable Toolame (MPEG layer 2 audio) support in mencoder [autodetect]
@@ -1317,6 +1318,7 @@ _matroska_internal=yes
_tremor=no
_faad_internal=auto
_faad_external=auto
+_ladspa=auto
_xmms=no
# dvdnav disabled, it does not work
#_dvdnav=no
@@ -1509,6 +1511,8 @@ for ac_option do
--disable-internal-faad) _faad_internal=no ;;
--enable-external-faad) _faad_external=yes _faad_internal=no ;;
--disable-external-faad) _faad_external=no ;;
+ --enable-ladspa) _ladspa=yes ;;
+ --disable-ladspa) _ladspa=no ;;
--enable-xmms) _xmms=yes ;;
--disable-xmms) _xmms=no ;;
--enable-dvdread) _dvdread=yes ;;
@@ -5305,6 +5309,31 @@ else
_ld_faad=
fi
+
+echocheck "LADSPA plugin support"
+if test "$_ladspa" = auto ; then
+ cat > $TMPC <<EOF
+#include <stdio.h>
+#include <ladspa.h>
+int main(void) {
+const LADSPA_Descriptor *ld = NULL;
+return 0;
+}
+EOF
+ _ladspa=no
+ cc_check && _ladspa=yes
+fi
+if test "$_ladspa" = yes; then
+ _def_ladspa="#define HAVE_LADSPA"
+ _afsrc="$_afsrc af_ladspa.c"
+ _afmodules="ladspa $_afmodules"
+else
+ _def_ladspa="#undef HAVE_LADSPA"
+ _noafmodules="ladspa $_noafmodules"
+fi
+echores "$_ladspa"
+
+
if test "$_win32" = auto ; then
if x86 ; then
qnx && _win32=no
@@ -7175,6 +7204,9 @@ $_def_faad
$_def_faad_internal
$_def_faad_version
+/* enable LADSPA plugin support */
+$_def_ladspa
+
/* enable network */
$_def_network
@@ -7307,6 +7339,16 @@ EOF
#############################################################################
+echo "Creating libaf/config.mak"
+_afobj=`echo $_afsrc | sed -e 's/\.c/\.o/g'`
+cat > libaf/config.mak << EOF
+include ../config.mak
+OPTIONAL_SRCS = $_afsrc
+OPTIONAL_OBJS = $_afobj
+EOF
+
+#############################################################################
+
cat << EOF
Config files successfully generated by ./configure !
@@ -7333,11 +7375,13 @@ cat << EOF
Codecs: $_codecmodules
Audio output: $_aomodules
Video output: $_vomodules
+ Audio filters: $_afmodules
Disabled optional drivers:
Input: $_noinputmodules
Codecs: $_nocodecmodules
Audio output: $_noaomodules
Video output: $_novomodules
+ Audio filters: $_noafmodules
'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer