diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-11-11 18:25:02 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-11-11 18:25:02 +0000 |
commit | 8d69f78e0b157a6cdf7ce74f9d0f99457a581b60 (patch) | |
tree | 4840297944c32f6448fa763226816e62de2a0881 /configure | |
parent | 7ea0933b9e76b41e1063cfd702252f209ed7bea1 (diff) | |
download | mpv-8d69f78e0b157a6cdf7ce74f9d0f99457a581b60.tar.bz2 mpv-8d69f78e0b157a6cdf7ce74f9d0f99457a581b60.tar.xz |
added DYNAMIC_PLUGINS support (dlopen)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8154 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -233,6 +233,7 @@ Advanced options: --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 @@ _language=en _shm=auto _linux_devfs=no _i18n=auto +_dynamic_plugins=no _setlocale=auto _sighandler=yes _libdv=auto @@ -1032,6 +1034,8 @@ for ac_option do --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 @@ else 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 @@ else echores "none" fi + echocheck "kstat" cat > $TMPC << EOF #include <kstat.h> @@ -1680,6 +1686,7 @@ if test "$_use_aton" != no; then _def_use_aton='#define USE_ATON 1' fi + echocheck "inttypes.h (required)" cat > $TMPC << EOF #include <inttypes.h> @@ -1695,6 +1702,7 @@ else fi echores "$_inttypes" + echocheck "word size" _mp_wordsize="#undef MP_WORDSIZE" cat > $TMPC << EOF @@ -1705,6 +1713,7 @@ EOF 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 @@ fi 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 @@ else _def_soundcard='#undef HAVE_SOUNDCARD_H' fi + echocheck "sys/dvdio.h" cat > $TMPC << EOF #include <unistd.h> @@ -4596,6 +4618,9 @@ $_def_setlocale /* Runtime CPU detection */ $_def_runtime_cpudetection +/* Dynamic a/v plugins */ +$_def_dynamic_plugins + /* "restrict" keyword */ #define restrict $_def_restrict_keyword |