Because we missed variables GL_LIBS and GL_CFLAGS in generated Makefile.in, The linker flag and the compiler flag wont be generated in Makefile. It causes spice-gtk building failure with --enable-opengl option. The patch fixes this issue. Signed-off-by: Lin Ma <lma@xxxxxxxx> --- m4/spice-deps.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4 index 170adf2..2f294f3 100644 --- a/m4/spice-deps.m4 +++ b/m4/spice-deps.m4 @@ -145,6 +145,8 @@ AC_DEFUN([SPICE_CHECK_OPENGL], [ AM_CONDITIONAL(HAVE_GL, test "x$enable_opengl" = "xyes") if test "x$enable_opengl" = "xyes"; then + AC_SUBST(GL_CFLAGS) + AC_SUBST(GL_LIBS) AC_CHECK_LIB(GL, glBlendFunc, GL_LIBS="$GL_LIBS -lGL", enable_opengl=no) AC_CHECK_LIB(GLU, gluSphere, GL_LIBS="$GL_LIBS -lGLU", enable_opengl=no) AC_DEFINE([USE_OPENGL], [1], [Define to build with OpenGL support]) -- 2.6.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel