changeset 2421:32df4022fb1d

mad audio support
author arpi
date Tue, 23 Oct 2001 13:59:10 +0000
parents 311676805f20
children a06f9c1df28e
files configure
diffstat 1 files changed, 34 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Oct 23 13:56:44 2001 +0000
+++ b/configure	Tue Oct 23 13:59:10 2001 +0000
@@ -6,6 +6,9 @@
 #
 # Changes in reversed order:
 #
+# 2001/10/22 by Jeroen Dobbelaere
+# - added selection of libmad
+#
 # 2001/08/27 by Johannes Feigl
 # - added manual selection of language
 #
@@ -194,6 +197,7 @@
   --enable-termcap       use termcap database for key codes
   --enable-xmmp          use XMMP audio drivers
   --enable-lirc          enable LIRC (remote control) support
+  --enable-mad           enable mad audio support
 
   --disable-iconv        do not use iconv(3) function [autodetect]
   --disable-ossaudio     disable OSS sound support [autodetect]
@@ -228,6 +232,8 @@
                          (only needed if autodetection fails)
   --with-extraincdir=DIR extra headers (png, SDL) are in DIR
                          (only needed if autodetection fails)
+  --with-madlibdir=DIR   libmad library files are in DIR
+  --with-madincdir=DIR   libmad header is in DIR
   --size-x=SIZE          default screen width
   --size-y=SIZE          default screen height
 EOF
@@ -285,6 +291,12 @@
   --with-extraincdir=*)
         _extraincdir=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'`
         ;;
+ --with-madlibdir=*)
+        _madlibdir=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
+        ;;
+ --with-madincdir=*)
+        _madincdir=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'`
+        ;;
  esac
 done
 
@@ -1292,6 +1304,12 @@
   --enable-divx4)
   	_divx4linux=yes
 	;;
+  --enable-mad)
+	_madlibrary=yes
+	;;
+  --disable-mad)
+	_madlibrary=no
+	;;
   --disable-css)
 	_css=no
 	;;
@@ -1624,6 +1642,7 @@
 echo "Checking for DeCSS support ... $_css"
 echo "Checking for DVDread support ... $_dvdread"
 echo "Checking for PNG support ... $_png"
+echo "Checking for mad support ... $_madlibrary"
 echo "Checking for OggVorbis support ... $_vorbis"
 echo "Checking for Win32 DLL support ... $_win32dll"
 echo "Checking for DirectShow ... $_dshow"
@@ -1908,6 +1927,10 @@
    _libpng='-lpng -lz'
 fi
 
+if test "$_madlibrary" = yes ; then
+    _libmad='-lmad'
+fi
+
 if test "$_vorbis" = yes ; then
    _vorbis='#define HAVE_OGGVORBIS'
    _libvorbis='-lvorbis -lm'
@@ -2086,6 +2109,11 @@
    _png='#undef HAVE_PNG'
 fi
 
+if test "$_madlibrary" = yes ; then
+ _madlibrary='#define USE_LIBMAD'
+else
+ _madlibrary='#undef USE_LIBMAD'
+fi
 
 if test "$_mlib" = yes ; then
  _mlibdef='#define HAVE_MLIB'
@@ -2264,7 +2292,7 @@
 
 X11_INC=$_x11incdir
 X11DIR=$_x11libdir
-X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis $_xineramalib
+X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis $_xineramalib $_libmad
 
 TERMCAP_LIB=$_libtermcap
 XMM_LIBS = $_xmmplibs
@@ -2287,6 +2315,8 @@
 DIVX4LINUX=$_divx4linux
 MLIB_INC = $_mlibinc
 MLIB_LIB = $_mliblib
+MADLIB_INC = $_madincdir
+MADLIB_LIB = $_madlibdir
 
 # --- Some stuff for autoconfigure ----
 $_target_arch
@@ -2476,6 +2506,9 @@
 /* enable PNG support */
 $_png
 
+/* libmad support */
+$_madlibrary
+
 /* enable OggVorbis support */
 $_vorbis