[Mplayer-cvslog] CVS: main configure,1.735,1.736

Moritz Bunkus CVS mosu at mplayerhq.hu
Fri Jul 11 22:24:22 CEST 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv13477

Modified Files:
	configure 
Log Message:
Necessary changes for the upcoming libebml/libmatroska 0.5.0. Implemented support for RealAudio and RealVideo inside Matroska.

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.735
retrieving revision 1.736
diff -u -r1.735 -r1.736
--- configure	7 Jul 2003 16:26:27 -0000	1.735
+++ configure	11 Jul 2003 20:23:58 -0000	1.736
@@ -4169,35 +4169,40 @@
 echores "$_theora"
 
 
-echocheck "Matroska support"
+echocheck "Matroska support (0.5.0 or later)"
 if test "$_matroska" != no ; then
   _matroska=no
+  _TMPC=$TMPC
+  TMPC=${TMPC}pp
   cat > $TMPC << EOF
-#include <EbmlConfig.h>
+#include <ebml/EbmlVersion.h>
+#include <matroska/KaxVersion.h>
+
+#if LIBEBML_VERSION < 000500
+#error libebml is too old
+#endif
+
+#if LIBMATROSKA_VERSION < 000500
+#error libmatroska is too old
+#endif
+
 int main(void) { return 0; }
 EOF
-  cc_check -lmatroska -lebml && _matroska=yes
+  cc_check -lmatroska -lebml -lstdc++ && _matroska=yes
   if test "$_matroska" = no ; then
     _saved_inc_extra=$_inc_extra
-    _inc_extra="$_inc_extra -I/usr/include/ebml -I/usr/include/matroska"
-    cc_check -lmatroska -lebml && _matroska=yes
+    _inc_extra="$_inc_extra -I/usr/local/include"
+    cc_check -lmatroska -lebml -lstdc++ && _matroska=yes
     if test "$_matroska" = no ; then
-      _inc_extra="$_saved_inc_extra -I/usr/local/include/ebml -I/usr/local/include/matroska"
-      cc_check -lmatroska -lebml && _matroska=yes
-      if test "$_matroska" = no ; then
-        _inc_extra=$_saved_inc_extra
-      fi
+      _inc_extra=$_saved_inc_extra
     fi
   fi
+  TMPC=$_TMPC
 fi
 if test "$_matroska" = yes ; then
   _def_matroska='#define HAVE_MATROSKA 1'
   _inputmodules="matroska $_inputmodules"
   _ld_matroska="-lmatroska -lebml -lstdc++"
-  case $cc_version in
-    2.*) _def_matroska_gcc2="#define LIBEBML_GCC2"     ;;
-    *)   _def_matroska_gcc2="/*#define LIBEBML_GCC2*/" ;;
-  esac
 else
   _def_matroska='#undef HAVE_MATROSKA'
   _noinputmodules="matroska $_noinputmodules"
@@ -5870,7 +5875,6 @@
 
 /* enable Matroska support */
 $_def_matroska
-$_def_matroska_gcc2
 
 /* enable FAAD (AAC) support */
 $_def_faad



More information about the MPlayer-cvslog mailing list