gui_internal=yes; gui_internal_reason=default
graphics_gtk_drawing_area=no; graphics_gtk_drawing_area_reason=default
graphics_qt_qpainter=yes; graphics_qt_qpainter_reason=default
+graphics_opengl=yes; graphics_opengl_reason=default
graphics_win32=no; graphics_win32_reason=default
speech_cmdline=yes; speech_cmdline_reason=default
speech_speech_dispatcher=yes; speech_speech_dispatcher_reason=default
AC_MSG_WARN([*** no X11/Xmu/Xmu.h -- opengl and SDL support disabled])
)
+AC_ARG_ENABLE(graphics-opengl, [ --disable-graphics-opengl disable graphics type OpenGL], graphics_opengl=$enableval;graphics_opengl_reason="configure parameter")
+if test "x${graphics_opengl}" = "xyes" ; then
+
AC_CHECK_HEADER(
GL/gl.h,
AC_DEFINE(
)
OPENGL_LIBS="$X_LIBS -lGL -lGLU"
opengl=yes,
- AC_MSG_WARN([*** no GL/gl.h -- opengl and SDL support disabled])
+ AC_MSG_WARN([*** no GL/gl.h -- opengl and SDL support disabled];graphics_opengl=no;graphics_opengl_reason="Headers missing")
)
AC_CHECK_HEADER(
Define to 1 if you have the <GL/glut.h> header file.
)
glut=yes,
- AC_MSG_WARN([*** no GL/glut.h -- opengl and SDL support disabled])
+ AC_MSG_WARN([*** no GL/glut.h -- opengl and SDL support disabled];graphics_opengl=no;graphics_opengl_reason="Headers missing")
)
AC_SUBST(OPENGL_CFLAGS)
)
AC_SUBST(GLC_CFLAGS)
AC_SUBST(GLC_LIBS)
+fi
if test x"$cegui" = xyes
then
echo " gtk_drawing_area: $graphics_gtk_drawing_area ($graphics_gtk_drawing_area_reason)"
echo " qt_qpainter: $graphics_qt_qpainter ($graphics_qt_qpainter_reason)"
echo " win32: $graphics_win32 ($graphics_win32_reason)"
+echo " OpenGL: $graphics_opengl ($graphics_opengl_reason)"
echo "GUI types:"
echo " gtk: $gui_gtk ($gui_gtk_reason)"