changeset 8153:37f5531d8894

added DYNAMIC_PLUGINS support (dlopen)
author alex
date Mon, 11 Nov 2002 18:25:02 +0000
parents 4b02f73cb4b9
children 3dd948f5d012
files configure
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Nov 11 17:28:41 2002 +0000
+++ b/configure	Mon Nov 11 18:25:02 2002 +0000
@@ -233,6 +233,7 @@
   --enable-profile       compile profiling information into mplayer [disable]
   --disable-sighandler   disable sighandler for crashes [enable]
   --enable-i18n          _experimental_ gnu gettext() support [autodetect]
+  --enable-dynamic-plugins  Enable support for dynamic a/v plugins [disable]
 
 Hazardous options a.k.a. "DO NOT REPORT ANY BUGS!"
   --disable-gcc-checking   disable gcc version checking [enable]
@@ -1004,6 +1005,7 @@
 _shm=auto
 _linux_devfs=no
 _i18n=auto
+_dynamic_plugins=no
 _setlocale=auto
 _sighandler=yes
 _libdv=auto
@@ -1032,6 +1034,8 @@
   --disable-mencoder)	_mencoder=no	;;
   --enable-i18n)	_i18n=yes	;;
   --disable-i18n)	_i18n=no	;;
+  --enable-dynamic-plugins) _dynamic_plugins=yes ;;
+  --disable-dynamic-plugins) _dynamic_plugins=no ;;
   --enable-setlocale)   _setlocale=yes  ;;
   --disable-setlocale)  _setlocale=no   ;;
   --enable-x11)		_x11=yes	;;
@@ -1540,6 +1544,7 @@
 fi
 echores "$_runtime_cpudetection"
 
+
 echocheck "restrict keyword"
 for restrict_keyword in restrict __restrict __restrict__ ; do
   echo "void foo(char * $restrict_keyword p); int main(){}" > $TMPC
@@ -1554,6 +1559,7 @@
   echores "none"
 fi
 
+
 echocheck "kstat"
 cat > $TMPC << EOF
 #include <kstat.h>
@@ -1680,6 +1686,7 @@
   _def_use_aton='#define USE_ATON 1'
 fi
 
+
 echocheck "inttypes.h (required)"
 cat > $TMPC << EOF
 #include <inttypes.h>
@@ -1695,6 +1702,7 @@
 fi
 echores "$_inttypes"
 
+
 echocheck "word size"
 _mp_wordsize="#undef MP_WORDSIZE"
 cat > $TMPC << EOF
@@ -1705,6 +1713,7 @@
 cc_check && _wordsize=`$TMPO` && _mp_wordsize="#define MP_WORDSIZE $_wordsize"
 echores "$_wordsize"
 
+
 echocheck "stddef.h"
 cat > $TMPC << EOF
 #include <stddef.h>
@@ -1804,6 +1813,18 @@
 echores "$_dl"
 
 
+echocheck "dynamic a/v plugins support"
+if test "$_dl" = no ; then
+  _dynamic_plugins = no
+fi
+if test "$_dynamic_plugins" = yes ; then
+  _def_dynamic_plugins='#define DYNAMIC_PLUGINS 1'
+else
+  _def_dynamic_plugins='#undef DYNAMIC_PLUGINS'
+fi
+echores "$_dynamic_plugins"
+
+
 #echocheck "dynamic linking"
 # FIXME !! make this dynamic detection work and modify at the end (search _ld_dl_dynamic)
 # also gcc flags are different, but ld flags aren't (-Bdynamic/-Bstatic/-Bsymbolic)
@@ -1889,6 +1910,7 @@
   _def_soundcard='#undef HAVE_SOUNDCARD_H'
 fi
 
+
 echocheck "sys/dvdio.h"
 cat > $TMPC << EOF
 #include <unistd.h>
@@ -4596,6 +4618,9 @@
 /* Runtime CPU detection */
 $_def_runtime_cpudetection
 
+/* Dynamic a/v plugins */
+$_def_dynamic_plugins
+
 /* "restrict" keyword */
 #define restrict $_def_restrict_keyword