comparison configure @ 27377:d58d06eafe83

Change a bunch of X11-specific preprocessor directives. Switch from a HAVE_ prefix to a CONFIG_ prefix.
author diego
date Mon, 04 Aug 2008 06:16:23 +0000
parents 80d93ca55238
children 94b7b2595df1
comparison
equal deleted inserted replaced
27376:d1192f8e7df4 27377:d58d06eafe83
3969 cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" \ 3969 cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" \
3970 && _x11=yes && break 3970 && _x11=yes && break
3971 done 3971 done
3972 fi 3972 fi
3973 if test "$_x11" = yes ; then 3973 if test "$_x11" = yes ; then
3974 _def_x11='#define HAVE_X11 1' 3974 _def_x11='#define CONFIG_X11 1'
3975 _vosrc="$_vosrc x11_common.c vo_x11.c vo_xover.c" 3975 _vosrc="$_vosrc x11_common.c vo_x11.c vo_xover.c"
3976 _vomodules="x11 xover $_vomodules" 3976 _vomodules="x11 xover $_vomodules"
3977 else 3977 else
3978 _x11=no 3978 _x11=no
3979 _def_x11='#undef HAVE_X11' 3979 _def_x11='#undef CONFIG_X11'
3980 _novomodules="x11 $_novomodules" 3980 _novomodules="x11 $_novomodules"
3981 _res_comment="check if the dev(el) packages are installed" 3981 _res_comment="check if the dev(el) packages are installed"
3982 # disable stuff that depends on X 3982 # disable stuff that depends on X
3983 _xv=no ; _xvmc=no ; _xinerama=no ; _vm=no ; _xf86keysym=no 3983 _xv=no ; _xvmc=no ; _xinerama=no ; _vm=no ; _xf86keysym=no
3984 fi 3984 fi
3993 EOF 3993 EOF
3994 _xss=no 3994 _xss=no
3995 cc_check -lXss && _xss=yes 3995 cc_check -lXss && _xss=yes
3996 fi 3996 fi
3997 if test "$_xss" = yes ; then 3997 if test "$_xss" = yes ; then
3998 _def_xss='#define HAVE_XSS 1' 3998 _def_xss='#define CONFIG_XSS 1'
3999 _libs_mplayer="$_libs_mplayer -lXss" 3999 _libs_mplayer="$_libs_mplayer -lXss"
4000 else 4000 else
4001 _def_xss='#undef HAVE_XSS' 4001 _def_xss='#undef CONFIG_XSS'
4002 fi 4002 fi
4003 echores "$_xss" 4003 echores "$_xss"
4004 4004
4005 echocheck "DPMS" 4005 echocheck "DPMS"
4006 _xdpms3=no 4006 _xdpms3=no
4021 int main(void) { (void) DPMSQueryExtension(0, 0, 0); return 0; } 4021 int main(void) { (void) DPMSQueryExtension(0, 0, 0); return 0; }
4022 EOF 4022 EOF
4023 cc_check -lXext && _xdpms4=yes 4023 cc_check -lXext && _xdpms4=yes
4024 fi 4024 fi
4025 if test "$_xdpms4" = yes ; then 4025 if test "$_xdpms4" = yes ; then
4026 _def_xdpms='#define HAVE_XDPMS 1' 4026 _def_xdpms='#define CONFIG_XDPMS 1'
4027 _res_comment="using Xdpms 4" 4027 _res_comment="using Xdpms 4"
4028 echores "yes" 4028 echores "yes"
4029 elif test "$_xdpms3" = yes ; then 4029 elif test "$_xdpms3" = yes ; then
4030 _def_xdpms='#define HAVE_XDPMS 1' 4030 _def_xdpms='#define CONFIG_XDPMS 1'
4031 _libs_mplayer="$_libs_mplayer -lXdpms" 4031 _libs_mplayer="$_libs_mplayer -lXdpms"
4032 _res_comment="using Xdpms 3" 4032 _res_comment="using Xdpms 3"
4033 echores "yes" 4033 echores "yes"
4034 else 4034 else
4035 _def_xdpms='#undef HAVE_XDPMS' 4035 _def_xdpms='#undef CONFIG_XDPMS'
4036 echores "no" 4036 echores "no"
4037 fi 4037 fi
4038 4038
4039 4039
4040 echocheck "Xv" 4040 echocheck "Xv"
4050 _xv=no 4050 _xv=no
4051 cc_check -lXv && _xv=yes 4051 cc_check -lXv && _xv=yes
4052 fi 4052 fi
4053 4053
4054 if test "$_xv" = yes ; then 4054 if test "$_xv" = yes ; then
4055 _def_xv='#define HAVE_XV 1' 4055 _def_xv='#define CONFIG_XV 1'
4056 _libs_mplayer="$_libs_mplayer -lXv" 4056 _libs_mplayer="$_libs_mplayer -lXv"
4057 _vosrc="$_vosrc vo_xv.c" 4057 _vosrc="$_vosrc vo_xv.c"
4058 _vomodules="xv $_vomodules" 4058 _vomodules="xv $_vomodules"
4059 else 4059 else
4060 _def_xv='#undef HAVE_XV' 4060 _def_xv='#undef CONFIG_XV'
4061 _novomodules="xv $_novomodules" 4061 _novomodules="xv $_novomodules"
4062 fi 4062 fi
4063 echores "$_xv" 4063 echores "$_xv"
4064 4064
4065 4065
4103 _xinerama=no 4103 _xinerama=no
4104 cc_check -lXinerama && _xinerama=yes 4104 cc_check -lXinerama && _xinerama=yes
4105 fi 4105 fi
4106 4106
4107 if test "$_xinerama" = yes ; then 4107 if test "$_xinerama" = yes ; then
4108 _def_xinerama='#define HAVE_XINERAMA 1' 4108 _def_xinerama='#define CONFIG_XINERAMA 1'
4109 _libs_mplayer="$_libs_mplayer -lXinerama" 4109 _libs_mplayer="$_libs_mplayer -lXinerama"
4110 else 4110 else
4111 _def_xinerama='#undef HAVE_XINERAMA' 4111 _def_xinerama='#undef CONFIG_XINERAMA'
4112 fi 4112 fi
4113 echores "$_xinerama" 4113 echores "$_xinerama"
4114 4114
4115 4115
4116 # Note: the -lXxf86vm library is the VideoMode extension and though it's not 4116 # Note: the -lXxf86vm library is the VideoMode extension and though it's not
4127 EOF 4127 EOF
4128 _vm=no 4128 _vm=no
4129 cc_check -lXxf86vm && _vm=yes 4129 cc_check -lXxf86vm && _vm=yes
4130 fi 4130 fi
4131 if test "$_vm" = yes ; then 4131 if test "$_vm" = yes ; then
4132 _def_vm='#define HAVE_XF86VM 1' 4132 _def_vm='#define CONFIG_XF86VM 1'
4133 _libs_mplayer="$_libs_mplayer -lXxf86vm" 4133 _libs_mplayer="$_libs_mplayer -lXxf86vm"
4134 else 4134 else
4135 _def_vm='#undef HAVE_XF86VM' 4135 _def_vm='#undef CONFIG_XF86VM'
4136 fi 4136 fi
4137 echores "$_vm" 4137 echores "$_vm"
4138 4138
4139 # Check for the presence of special keycodes, like audio control buttons 4139 # Check for the presence of special keycodes, like audio control buttons
4140 # that XFree86 might have. Used to be bundled with the xf86vm check, but 4140 # that XFree86 might have. Used to be bundled with the xf86vm check, but
4149 int main(void) { return XF86XK_AudioPause; } 4149 int main(void) { return XF86XK_AudioPause; }
4150 EOF 4150 EOF
4151 cc_check && _xf86keysym=yes 4151 cc_check && _xf86keysym=yes
4152 fi 4152 fi
4153 if test "$_xf86keysym" = yes ; then 4153 if test "$_xf86keysym" = yes ; then
4154 _def_xf86keysym='#define HAVE_XF86XK 1' 4154 _def_xf86keysym='#define CONFIG_XF86XK 1'
4155 else 4155 else
4156 _def_xf86keysym='#undef HAVE_XF86XK' 4156 _def_xf86keysym='#undef CONFIG_XF86XK'
4157 fi 4157 fi
4158 echores "$_xf86keysym" 4158 echores "$_xf86keysym"
4159 4159
4160 echocheck "DGA" 4160 echocheck "DGA"
4161 if test "$_dga2" = auto && test "$_x11" = yes ; then 4161 if test "$_dga2" = auto && test "$_x11" = yes ; then
4176 _dga1=no 4176 _dga1=no
4177 cc_check -lXxf86dga -lXxf86vm && _dga1=yes 4177 cc_check -lXxf86dga -lXxf86vm && _dga1=yes
4178 fi 4178 fi
4179 4179
4180 _dga=no 4180 _dga=no
4181 _def_dga='#undef HAVE_DGA' 4181 _def_dga='#undef CONFIG_DGA'
4182 _def_dga1='#undef HAVE_DGA1' 4182 _def_dga1='#undef CONFIG_DGA1'
4183 _def_dga2='#undef HAVE_DGA2' 4183 _def_dga2='#undef CONFIG_DGA2'
4184 if test "$_dga1" = yes ; then 4184 if test "$_dga1" = yes ; then
4185 _dga=yes 4185 _dga=yes
4186 _def_dga1='#define HAVE_DGA1 1' 4186 _def_dga1='#define CONFIG_DGA1 1'
4187 _res_comment="using DGA 1.0" 4187 _res_comment="using DGA 1.0"
4188 elif test "$_dga2" = yes ; then 4188 elif test "$_dga2" = yes ; then
4189 _dga=yes 4189 _dga=yes
4190 _def_dga2='#define HAVE_DGA2 1' 4190 _def_dga2='#define CONFIG_DGA2 1'
4191 _res_comment="using DGA 2.0" 4191 _res_comment="using DGA 2.0"
4192 fi 4192 fi
4193 if test "$_dga" = yes ; then 4193 if test "$_dga" = yes ; then
4194 _def_dga='#define HAVE_DGA 1' 4194 _def_dga='#define CONFIG_DGA 1'
4195 _libs_mplayer="$_libs_mplayer -lXxf86dga" 4195 _libs_mplayer="$_libs_mplayer -lXxf86dga"
4196 _vosrc="$_vosrc vo_dga.c" 4196 _vosrc="$_vosrc vo_dga.c"
4197 _vomodules="dga $_vomodules" 4197 _vomodules="dga $_vomodules"
4198 else 4198 else
4199 _novomodules="dga $_novomodules" 4199 _novomodules="dga $_novomodules"
7402 } 7402 }
7403 EOF 7403 EOF
7404 cc_check -lXext && _xshape=yes 7404 cc_check -lXext && _xshape=yes
7405 fi 7405 fi
7406 if test "$_xshape" = yes ; then 7406 if test "$_xshape" = yes ; then
7407 _def_xshape='#define HAVE_XSHAPE 1' 7407 _def_xshape='#define CONFIG_XSHAPE 1'
7408 else 7408 else
7409 die "The GUI requires the X11 extension XShape (which was not found)." 7409 die "The GUI requires the X11 extension XShape (which was not found)."
7410 fi 7410 fi
7411 echores "$_xshape" 7411 echores "$_xshape"
7412 7412
8704 $_def_twolame 8704 $_def_twolame
8705 8705
8706 /* used by GUI: */ 8706 /* used by GUI: */
8707 $_def_xshape 8707 $_def_xshape
8708 8708
8709 #if defined(CONFIG_GL) || defined(HAVE_X11) || defined(HAVE_XV) 8709 #if defined(CONFIG_GL) || defined(CONFIG_X11) || defined(CONFIG_XV)
8710 #define X11_FULLSCREEN 1 8710 #define X11_FULLSCREEN 1
8711 #endif 8711 #endif
8712 8712
8713 #endif /* MPLAYER_CONFIG_H */ 8713 #endif /* MPLAYER_CONFIG_H */
8714 EOF 8714 EOF