changeset 1443:024fca5abc79

better divx4 detection, --disable-divx4
author arpi
date Mon, 06 Aug 2001 00:07:53 +0000
parents 50dc44570cd4
children 67af15b5f1a2
files configure
diffstat 1 files changed, 18 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Aug 05 19:11:58 2001 +0000
+++ b/configure	Mon Aug 06 00:07:53 2001 +0000
@@ -850,6 +850,17 @@
 
 fi
 
+cat > $TMPC << EOF
+#include <decore.h>
+int main( void ) { return 0; }
+EOF
+$_cc $_x11incdir $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 || \
+ { _gl=no; echo "GL includes not found!";}
+
+$_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -ldivxdecore > /dev/null 2>&1 || \
+ { _divx4linux=no; echo "DivX4Linux includes (decore.h) not found!";}
+
+
 rm -f $TMPC $TMPO
 
 
@@ -1164,6 +1175,12 @@
   --disable-sunaudio)
   	_sun_audio=no
 	;;
+  --disable-divx4)
+  	_divx4linux=no
+	;;
+  --enable-divx4)
+  	_divx4linux=yes
+	;;
   --with-win32libdir=*)
         _win32libdir=`echo $ac_option | cut -d '=' -f 2`
 	_win32libdirnotify=no
@@ -1772,10 +1789,8 @@
 else
  _divx4def='#undef NEW_DECORE'
  _decorelibs='-Lopendivx -ldecore'
-# _postproc='#undef MPEG12_POSTPROC'
 fi
 
- _postproc='#define MPEG12_POSTPROC'
 
 echo
 echo "Creating $MCONF"
@@ -1904,7 +1919,7 @@
 $_css
 
 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */
-$_postproc
+#define MPEG12_POSTPROC
 
 /* DirectShow support */
 $_dshow