mirror of
https://github.com/mpv-player/mpv
synced 2024-10-22 08:51:57 +02:00
runtime cpudetection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5111 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7177f5d416
commit
0f44a966b9
19
configure
vendored
19
configure
vendored
@ -141,6 +141,8 @@ Optional features:
|
|||||||
--disable-new-input disable new input system [enable]
|
--disable-new-input disable new input system [enable]
|
||||||
--enable-joystick enable joystick support in new input [disable]
|
--enable-joystick enable joystick support in new input [disable]
|
||||||
--enable-i18n GNU internationalisation [disable]
|
--enable-i18n GNU internationalisation [disable]
|
||||||
|
--enable-runtime-cpudetection
|
||||||
|
enable runtime CPU detection code [disable]
|
||||||
Video:
|
Video:
|
||||||
--enable-gl build with OpenGL render support [autodetect]
|
--enable-gl build with OpenGL render support [autodetect]
|
||||||
--enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect]
|
--enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect]
|
||||||
@ -794,6 +796,7 @@ _language=en
|
|||||||
_shm=auto
|
_shm=auto
|
||||||
_linux_devfs=no
|
_linux_devfs=no
|
||||||
_i18n=no
|
_i18n=no
|
||||||
|
_runtime_cpudetection=no
|
||||||
|
|
||||||
for ac_option do
|
for ac_option do
|
||||||
case "$ac_option" in
|
case "$ac_option" in
|
||||||
@ -814,6 +817,8 @@ for ac_option do
|
|||||||
--disable-mencoder) _mencoder=no ;;
|
--disable-mencoder) _mencoder=no ;;
|
||||||
--enable-i18n) _i18n=yes ;;
|
--enable-i18n) _i18n=yes ;;
|
||||||
--disable-i18n) _i18n=no ;;
|
--disable-i18n) _i18n=no ;;
|
||||||
|
--enable-runtime-cpudetection) _runtime_cpudetection=yes ;;
|
||||||
|
--disable-runtime-cpudetection) _runtime_cpudetection=no ;;
|
||||||
--enable-x11) _x11=yes ;;
|
--enable-x11) _x11=yes ;;
|
||||||
--disable-x11) _x11=no ;;
|
--disable-x11) _x11=no ;;
|
||||||
--enable-xv) _xv=yes ;;
|
--enable-xv) _xv=yes ;;
|
||||||
@ -1189,6 +1194,15 @@ _mp_help="help_mp-${LINGUAS}.h"
|
|||||||
test -f help_mp-${LINGUAS}.h || die "help_mp-${LINGUAS}.h not found"
|
test -f help_mp-${LINGUAS}.h || die "help_mp-${LINGUAS}.h not found"
|
||||||
|
|
||||||
|
|
||||||
|
echocheck "runtime cpudetection"
|
||||||
|
if test "$_runtime_cpudetection" = yes ; then
|
||||||
|
_def_runtime_cpudetection='#define RUNTIME_CPUDETECT 1'
|
||||||
|
else
|
||||||
|
_def_runtime_cpudetection='#undef RUNTIME_CPUDETECT'
|
||||||
|
fi
|
||||||
|
echores "$_runtime_cpudetection"
|
||||||
|
|
||||||
|
|
||||||
echocheck "kstat"
|
echocheck "kstat"
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <kstat.h>
|
#include <kstat.h>
|
||||||
@ -2553,7 +2567,7 @@ if test "$_xanim" = auto ; then
|
|||||||
_xanim=no
|
_xanim=no
|
||||||
if test "$_dl" = yes ; then
|
if test "$_dl" = yes ; then
|
||||||
if test -z "$_xanimlibdir" ; then
|
if test -z "$_xanimlibdir" ; then
|
||||||
for I in /usr/local/lib/xanim/mods /usr/lib/xanim/mods /usr/lib/xanim ; do
|
for I in /usr/local/lib/xanim/mods /usr/lib/xanim/mods /usr/lib/xanim $XANIM_MOD_DIR ; do
|
||||||
if test -d "$I" ; then
|
if test -d "$I" ; then
|
||||||
_xanimlibdir="$I"
|
_xanimlibdir="$I"
|
||||||
break;
|
break;
|
||||||
@ -3271,6 +3285,9 @@ cat > config.h << EOF
|
|||||||
/* use GNU internationalisation */
|
/* use GNU internationalisation */
|
||||||
$_def_i18n
|
$_def_i18n
|
||||||
|
|
||||||
|
/* Runtime Cpudetection */
|
||||||
|
$_def_runtime_cpudetection
|
||||||
|
|
||||||
#define USR_PREFIX "$_prefix"
|
#define USR_PREFIX "$_prefix"
|
||||||
|
|
||||||
/* define this to use simple idct with patched libavcodec */
|
/* define this to use simple idct with patched libavcodec */
|
||||||
|
Loading…
Reference in New Issue
Block a user