configure: rename OpenGL feature to GLX

As the probe now actually checks for the availability of GLX, rename it
accordingly. The only user of this feature is the milkymist-tmu2 model.

Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
Michael Walle 2013-03-06 20:23:32 +01:00
parent d3fcbb1678
commit b1e5fff4af
3 changed files with 18 additions and 18 deletions

30
configure vendored
View File

@ -217,7 +217,7 @@ spice=""
rbd="" rbd=""
smartcard_nss="" smartcard_nss=""
usb_redir="" usb_redir=""
opengl="" glx=""
zlib="yes" zlib="yes"
guest_agent="yes" guest_agent="yes"
want_tools="yes" want_tools="yes"
@ -858,9 +858,9 @@ for opt do
;; ;;
--enable-vhost-net) vhost_net="yes" --enable-vhost-net) vhost_net="yes"
;; ;;
--disable-opengl) opengl="no" --disable-glx) glx="no"
;; ;;
--enable-opengl) opengl="yes" --enable-glx) glx="yes"
;; ;;
--disable-rbd) rbd="no" --disable-rbd) rbd="no"
;; ;;
@ -2435,9 +2435,9 @@ EOF
fi fi
########################################## ##########################################
# opengl probe, used by milkymist-tmu2 # GLX probe, used by milkymist-tmu2
if test "$opengl" != "no" ; then if test "$glx" != "no" ; then
opengl_libs="-lGL -lX11" glx_libs="-lGL -lX11"
cat > $TMPC << EOF cat > $TMPC << EOF
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <GL/gl.h> #include <GL/gl.h>
@ -2445,13 +2445,13 @@ if test "$opengl" != "no" ; then
int main(void) { glBegin(0); glXQueryVersion(0,0,0); return 0; } int main(void) { glBegin(0); glXQueryVersion(0,0,0); return 0; }
EOF EOF
if compile_prog "" "-lGL -lX11" ; then if compile_prog "" "-lGL -lX11" ; then
opengl=yes glx=yes
else else
if test "$opengl" = "yes" ; then if test "$glx" = "yes" ; then
feature_not_found "opengl" feature_not_found "glx"
fi fi
opengl_libs= glx_libs=
opengl=no glx=no
fi fi
fi fi
@ -3429,7 +3429,7 @@ echo "rbd support $rbd"
echo "xfsctl support $xfs" echo "xfsctl support $xfs"
echo "nss used $smartcard_nss" echo "nss used $smartcard_nss"
echo "usb net redir $usb_redir" echo "usb net redir $usb_redir"
echo "OpenGL support $opengl" echo "GLX support $glx"
echo "libiscsi support $libiscsi" echo "libiscsi support $libiscsi"
echo "build guest agent $guest_agent" echo "build guest agent $guest_agent"
echo "seccomp support $seccomp" echo "seccomp support $seccomp"
@ -3740,8 +3740,8 @@ if test "$usb_redir" = "yes" ; then
echo "CONFIG_USB_REDIR=y" >> $config_host_mak echo "CONFIG_USB_REDIR=y" >> $config_host_mak
fi fi
if test "$opengl" = "yes" ; then if test "$glx" = "yes" ; then
echo "CONFIG_OPENGL=y" >> $config_host_mak echo "CONFIG_GLX=y" >> $config_host_mak
fi fi
if test "$libiscsi" = "yes" ; then if test "$libiscsi" = "yes" ; then
@ -4019,7 +4019,7 @@ case "$target_arch2" in
target_nptl="yes" target_nptl="yes"
;; ;;
lm32) lm32)
target_libs_softmmu="$opengl_libs" target_libs_softmmu="$glx_libs"
;; ;;
m68k) m68k)
bflt="yes" bflt="yes"

View File

@ -11,7 +11,7 @@ obj-y += milkymist-minimac2.o
obj-y += milkymist-pfpu.o obj-y += milkymist-pfpu.o
obj-y += milkymist-softusb.o obj-y += milkymist-softusb.o
obj-y += milkymist-sysctl.o obj-y += milkymist-sysctl.o
obj-$(CONFIG_OPENGL) += milkymist-tmu2.o obj-$(CONFIG_GLX) += milkymist-tmu2.o
obj-y += milkymist-uart.o obj-y += milkymist-uart.o
obj-y += milkymist-vgafb.o obj-y += milkymist-vgafb.o
obj-y += framebuffer.o obj-y += framebuffer.o

View File

@ -87,7 +87,7 @@ static inline DeviceState *milkymist_pfpu_create(hwaddr base,
return dev; return dev;
} }
#ifdef CONFIG_OPENGL #ifdef CONFIG_GLX
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <GL/glx.h> #include <GL/glx.h>
static const int glx_fbconfig_attr[] = { static const int glx_fbconfig_attr[] = {
@ -101,7 +101,7 @@ static const int glx_fbconfig_attr[] = {
static inline DeviceState *milkymist_tmu2_create(hwaddr base, static inline DeviceState *milkymist_tmu2_create(hwaddr base,
qemu_irq irq) qemu_irq irq)
{ {
#ifdef CONFIG_OPENGL #ifdef CONFIG_GLX
DeviceState *dev; DeviceState *dev;
Display *d; Display *d;
GLXFBConfig *configs; GLXFBConfig *configs;