comparison configure @ 4864:6434171a8f35

provide unstable code
author nick
date Mon, 25 Feb 2002 15:04:09 +0000
parents e2df1d29d0f7
children e926b7dd1993
comparison
equal deleted inserted replaced
4863:df50da00260a 4864:6434171a8f35
190 --enable-debug[=1-3] compile debugging information into mplayer [disable] 190 --enable-debug[=1-3] compile debugging information into mplayer [disable]
191 --enable-profile compile profiling information into mplayer [disable] 191 --enable-profile compile profiling information into mplayer [disable]
192 192
193 Hazardous options a.k.a. "DO NOT BUGREPORT ANYTHING !" 193 Hazardous options a.k.a. "DO NOT BUGREPORT ANYTHING !"
194 --disable-gcc-checking disable gcc version checking [enable] 194 --disable-gcc-checking disable gcc version checking [enable]
195 --enable-xp enable eXtra Performance [default=no]
195 196
196 Use these options if autodetection fails: 197 Use these options if autodetection fails:
197 --with-extraincdir=DIR extra headers (png, dvb, mad, sdl, css, ...) in DIR 198 --with-extraincdir=DIR extra headers (png, dvb, mad, sdl, css, ...) in DIR
198 --with-extralibdir=DIR extra library files (png, SDL, ...) in DIR 199 --with-extralibdir=DIR extra library files (png, SDL, ...) in DIR
199 --with-x11incdir=DIR X headers in DIR 200 --with-x11incdir=DIR X headers in DIR
216 217
217 # 1st pass checking for vital options 218 # 1st pass checking for vital options
218 _cc=gcc 219 _cc=gcc
219 test "$CC" && _cc="$CC" 220 test "$CC" && _cc="$CC"
220 _as=auto 221 _as=auto
222 _enable_xp=no
221 for ac_option do 223 for ac_option do
222 case "$ac_option" in 224 case "$ac_option" in
223 --target=*) 225 --target=*)
224 _target=`echo $ac_option | cut -d '=' -f 2` 226 _target=`echo $ac_option | cut -d '=' -f 2`
225 ;; 227 ;;
232 --enable-gcc-checking) 234 --enable-gcc-checking)
233 _skip_cc_check=no 235 _skip_cc_check=no
234 ;; 236 ;;
235 --disable-gcc-checking) 237 --disable-gcc-checking)
236 _skip_cc_check=yes 238 _skip_cc_check=yes
239 ;;
240 --enable-xp)
241 _enable_xp=yes
242 ;;
243 --disable-xp)
244 _enable_xp=no
237 ;; 245 ;;
238 --enable-static) 246 --enable-static)
239 _ld_static='-static' 247 _ld_static='-static'
240 ;; 248 ;;
241 --disable-static) 249 --disable-static)
496 printf("%ld-%x\n", ver, ~mask); 504 printf("%ld-%x\n", ver, ~mask);
497 return 0; 505 return 0;
498 } 506 }
499 EOF 507 EOF
500 $_cc -o "$TMPO" "$TMPC" 508 $_cc -o "$TMPO" "$TMPC"
501 case `"$TMPO"` in 509 case "$TMPO" in
502 0-0) proc="ev4" ;; 510 0-0) proc="ev4" ;;
503 1-0) proc="ev5" ;; 511 1-0) proc="ev5" ;;
504 1-1) proc="ev56" ;; 512 1-1) proc="ev56" ;;
505 1-101) proc="pca56" ;; 513 1-101) proc="pca56" ;;
506 2-303) proc="ev6" ;; 514 2-303) proc="ev6" ;;
2975 else 2983 else
2976 _def_lirc='#undef HAVE_LIRC' 2984 _def_lirc='#undef HAVE_LIRC'
2977 fi 2985 fi
2978 echores "$_lirc" 2986 echores "$_lirc"
2979 2987
2980 2988 # checking for extra performance
2989 _def_xp='#undef __ENABLE_XP'
2990 test "$_enable_xp" = yes && _def_xp='#define __ENABLE_XP 1'
2991 echo Checking for xp = bleeding edge ... "$_enable_xp"
2981 2992
2982 ############################################################################# 2993 #############################################################################
2983 echo "Creating config.mak" 2994 echo "Creating config.mak"
2984 cat > config.mak << EOF 2995 cat > config.mak << EOF
2985 # -------- Generated by configure ----------- 2996 # -------- Generated by configure -----------
3071 GTKLIB = $_ld_static $_ld_gtk 3082 GTKLIB = $_ld_static $_ld_gtk
3072 GLIBLIB = $_ld_static $_ld_glib 3083 GLIBLIB = $_ld_static $_ld_glib
3073 GTK_LIBS = $_ld_static $_ld_gui 3084 GTK_LIBS = $_ld_static $_ld_gui
3074 GUI = $_gui 3085 GUI = $_gui
3075 DEBUG = -DDEBUG 3086 DEBUG = -DDEBUG
3087
3088 # --- HAZARDOUS STUFF
3089
3090 ENABLE_XP=$_enable_xp
3076 3091
3077 EOF 3092 EOF
3078 3093
3079 ############################################################################# 3094 #############################################################################
3080 echo "Creating config.h" 3095 echo "Creating config.h"
3369 3384
3370 #if defined(HAVE_GL) || defined(HAVE_X11) || defined(HAVE_XV) 3385 #if defined(HAVE_GL) || defined(HAVE_X11) || defined(HAVE_XV)
3371 #define X11_FULLSCREEN 1 3386 #define X11_FULLSCREEN 1
3372 #endif 3387 #endif
3373 3388
3389 $_def_xp
3390
3391 #ifdef __ENABLE_XP
3392 #define __ENABLE_DEC_AHEAD 1
3393 #endif
3394
3374 EOF 3395 EOF
3375 3396
3376 ############################################################################# 3397 #############################################################################
3377 3398
3378 echo "Creating libvo/config.mak" 3399 echo "Creating libvo/config.mak"