mirror of https://github.com/snes9xgit/snes9x.git
GTK+: OpenGL: Don't link libGL directly.
This commit is contained in:
parent
a573dee5fe
commit
bbebb2255a
|
@ -167,18 +167,13 @@ PKG_CHECK_MODULES([GLIB], [glib-2.0 > 2.28 gthread-2.0 >= 2.6 gobject-2.0 >= 2.6
|
|||
PKG_CHECK_MODULES([XRANDR], [xrandr])
|
||||
|
||||
if test yes = "$with_opengl" ; then
|
||||
|
||||
AC_CHECK_LIB(GL,glGetString,[
|
||||
OPENGL=yes
|
||||
CFLAGS="$CFLAGS -DUSE_OPENGL"
|
||||
LIBS="$LIBS -lGL"
|
||||
],[
|
||||
OPENGL=0
|
||||
])
|
||||
|
||||
PKG_CHECK_MODULES([EPOXY], [epoxy]);
|
||||
CFLAGS="$CFLAGS $EPOXY_CFLAGS"
|
||||
PKG_CHECK_MODULES([EPOXY], [epoxy], [
|
||||
CFLAGS="$CFLAGS $EPOXY_CFLAGS -DUSE_OPENGL"
|
||||
LIBS="$LIBS $EPOXY_LIBS"
|
||||
], [
|
||||
echo "Couldn't find libepoxy. Disabling OpenGL."
|
||||
OPENGL=no
|
||||
])
|
||||
fi
|
||||
|
||||
WAYLAND=no
|
||||
|
|
Loading…
Reference in New Issue