diff configure @ 15359:af245d15f502

added twolame mp2 audio encoder
author nicodvb
date Sat, 07 May 2005 14:50:14 +0000
parents d8ee4d45ec8d
children 9ba8e4851216
line wrap: on
line diff
--- a/configure	Sat May 07 10:09:36 2005 +0000
+++ b/configure	Sat May 07 14:50:14 2005 +0000
@@ -222,6 +222,7 @@
   --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]
+  --disable-twolame      disable Twolame (MPEG layer 2 audio) support in mencoder [autodetect]
   --enable-xmms          build with XMMS inputplugin support [disabled]
   --disable-mp3lib       disable builtin mp3lib [enabled]
   --disable-liba52       disable builtin liba52 [enabled]
@@ -1325,6 +1326,7 @@
 _liblzo=auto
 _mad=auto
 _toolame=auto
+_twolame=auto
 _tremor_internal=yes
 _tremor_low=no
 _vorbis=auto
@@ -1510,6 +1512,7 @@
   --enable-mad)		_mad=yes	;;
   --disable-mad)	_mad=no		;;
   --disable-toolame)	_toolame=no	;;
+  --disable-twolame)	_twolame=no	;;
   --enable-liblzo)	_liblzo=yes	;;
   --disable-liblzo)	_liblzo=no		;;
   --enable-vorbis)	_vorbis=yes	;;
@@ -5184,6 +5187,26 @@
   echores "$_toolame (using $_toolamedir)"
 fi
 
+echocheck "Twolame"
+if test "$_twolame" = auto ; then
+  cat > $TMPC <<EOF
+#include <twolame.h>
+int main(void) { twolame_init(); return 0; }
+EOF
+  _twolame=no
+  _twolame_lib="-ltwolame"
+  cc_check $_twolame_lib $_ld_lm && _twolame=yes
+fi
+if test "$_twolame" = yes ; then
+  _def_twolame='#define HAVE_TWOLAME 1'
+  _codecmodules="$_codecmodules twolame"
+else
+  _def_toolame='#undef HAVE_TWOLAME'
+  _twolame_lib=""
+  _nocodecmodules="twolame $_nocodecmodules"
+fi
+echores "$_twolame"
+
 echocheck "OggVorbis support"
 if test "$_tremor_internal" = yes; then
   _vorbis=yes
@@ -6899,6 +6922,8 @@
 TOOLAME=$_toolame
 TOOLAME_EXTRAFLAGS=$_toolame_extraflags
 TOOLAME_LIB=$_toolame_lib
+TWOLAME=$_twolame
+TWOLAME_LIB=$_twolame_lib
 FAAC=$_faac
 FAAC_LIB=$_ld_faac
 AMR_NB=$_amr_nb
@@ -7551,6 +7576,7 @@
 $_def_caca
 $_def_tga
 $_def_toolame
+$_def_twolame
 
 /* used by GUI: */
 $_def_xshape