comparison configure @ 5110:d038b64b6b31

runtime cpudetection
author alex
date Fri, 15 Mar 2002 22:16:02 +0000
parents c1eeb9416fd1
children a2aecc3bff4e
comparison
equal deleted inserted replaced
5109:0ac187a189a8 5110:d038b64b6b31
139 (support for: http/mms/rtp) [enable] 139 (support for: http/mms/rtp) [enable]
140 --disable-vidix disable VIDIX stuff [enable] 140 --disable-vidix disable VIDIX stuff [enable]
141 --disable-new-input disable new input system [enable] 141 --disable-new-input disable new input system [enable]
142 --enable-joystick enable joystick support in new input [disable] 142 --enable-joystick enable joystick support in new input [disable]
143 --enable-i18n GNU internationalisation [disable] 143 --enable-i18n GNU internationalisation [disable]
144 --enable-runtime-cpudetection
145 enable runtime CPU detection code [disable]
144 Video: 146 Video:
145 --enable-gl build with OpenGL render support [autodetect] 147 --enable-gl build with OpenGL render support [autodetect]
146 --enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect] 148 --enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect]
147 --enable-vesa build with VESA support [autodetect] 149 --enable-vesa build with VESA support [autodetect]
148 --enable-svga build with SVGAlib support [autodetect] 150 --enable-svga build with SVGAlib support [autodetect]
792 _vo2=no 794 _vo2=no
793 _language=en 795 _language=en
794 _shm=auto 796 _shm=auto
795 _linux_devfs=no 797 _linux_devfs=no
796 _i18n=no 798 _i18n=no
799 _runtime_cpudetection=no
797 800
798 for ac_option do 801 for ac_option do
799 case "$ac_option" in 802 case "$ac_option" in
800 # Skip 1st pass 803 # Skip 1st pass
801 --target=*) ;; 804 --target=*) ;;
812 # Real 2nd pass 815 # Real 2nd pass
813 --enable-mencoder) _mencoder=yes ;; 816 --enable-mencoder) _mencoder=yes ;;
814 --disable-mencoder) _mencoder=no ;; 817 --disable-mencoder) _mencoder=no ;;
815 --enable-i18n) _i18n=yes ;; 818 --enable-i18n) _i18n=yes ;;
816 --disable-i18n) _i18n=no ;; 819 --disable-i18n) _i18n=no ;;
820 --enable-runtime-cpudetection) _runtime_cpudetection=yes ;;
821 --disable-runtime-cpudetection) _runtime_cpudetection=no ;;
817 --enable-x11) _x11=yes ;; 822 --enable-x11) _x11=yes ;;
818 --disable-x11) _x11=no ;; 823 --disable-x11) _x11=no ;;
819 --enable-xv) _xv=yes ;; 824 --enable-xv) _xv=yes ;;
820 --disable-xv) _xv=no ;; 825 --disable-xv) _xv=no ;;
821 --enable-sdl) _sdl=yes ;; 826 --enable-sdl) _sdl=yes ;;
1187 fi 1192 fi
1188 _mp_help="help_mp-${LINGUAS}.h" 1193 _mp_help="help_mp-${LINGUAS}.h"
1189 test -f help_mp-${LINGUAS}.h || die "help_mp-${LINGUAS}.h not found" 1194 test -f help_mp-${LINGUAS}.h || die "help_mp-${LINGUAS}.h not found"
1190 1195
1191 1196
1197 echocheck "runtime cpudetection"
1198 if test "$_runtime_cpudetection" = yes ; then
1199 _def_runtime_cpudetection='#define RUNTIME_CPUDETECT 1'
1200 else
1201 _def_runtime_cpudetection='#undef RUNTIME_CPUDETECT'
1202 fi
1203 echores "$_runtime_cpudetection"
1204
1205
1192 echocheck "kstat" 1206 echocheck "kstat"
1193 cat > $TMPC << EOF 1207 cat > $TMPC << EOF
1194 #include <kstat.h> 1208 #include <kstat.h>
1195 int main(void) { (void) kstat_open(); (void) kstat_close(0); return 0; } 1209 int main(void) { (void) kstat_open(); (void) kstat_close(0); return 0; }
1196 EOF 1210 EOF
2551 echocheck "XAnim DLL" 2565 echocheck "XAnim DLL"
2552 if test "$_xanim" = auto ; then 2566 if test "$_xanim" = auto ; then
2553 _xanim=no 2567 _xanim=no
2554 if test "$_dl" = yes ; then 2568 if test "$_dl" = yes ; then
2555 if test -z "$_xanimlibdir" ; then 2569 if test -z "$_xanimlibdir" ; then
2556 for I in /usr/local/lib/xanim/mods /usr/lib/xanim/mods /usr/lib/xanim ; do 2570 for I in /usr/local/lib/xanim/mods /usr/lib/xanim/mods /usr/lib/xanim $XANIM_MOD_DIR ; do
2557 if test -d "$I" ; then 2571 if test -d "$I" ; then
2558 _xanimlibdir="$I" 2572 _xanimlibdir="$I"
2559 break; 2573 break;
2560 fi; 2574 fi;
2561 done 2575 done
3269 Note: Any changes in it will be lost when you run configure again. */ 3283 Note: Any changes in it will be lost when you run configure again. */
3270 3284
3271 /* use GNU internationalisation */ 3285 /* use GNU internationalisation */
3272 $_def_i18n 3286 $_def_i18n
3273 3287
3288 /* Runtime Cpudetection */
3289 $_def_runtime_cpudetection
3290
3274 #define USR_PREFIX "$_prefix" 3291 #define USR_PREFIX "$_prefix"
3275 3292
3276 /* define this to use simple idct with patched libavcodec */ 3293 /* define this to use simple idct with patched libavcodec */
3277 #define SIMPLE_IDCT 1 3294 #define SIMPLE_IDCT 1
3278 3295