diff options
-rw-r--r-- | Repository.mk | 2 | ||||
-rw-r--r-- | canvas/Module_canvas.mk | 2 | ||||
-rw-r--r-- | config_host.mk.in | 1 | ||||
-rw-r--r-- | configure.ac | 12 |
4 files changed, 13 insertions, 4 deletions
diff --git a/Repository.mk b/Repository.mk index d306442809d7..e43db47f46ee 100644 --- a/Repository.mk +++ b/Repository.mk @@ -229,7 +229,7 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo, \ $(if $(filter unx,$(GUIBASE)),desktop_detector) \ $(if $(DISABLE_SCRIPTING),,dlgprov) \ $(if $(ENABLE_DIRECTX),directx9canvas) \ - $(if $(ENABLE_OPENGL),oglcanvas) \ + $(if $(ENABLE_OPENGL_CANVAS),oglcanvas) \ drawinglayer \ editeng \ egi \ diff --git a/canvas/Module_canvas.mk b/canvas/Module_canvas.mk index 510cb98b2004..310ad2a95343 100644 --- a/canvas/Module_canvas.mk +++ b/canvas/Module_canvas.mk @@ -32,7 +32,7 @@ $(eval $(call gb_Module_add_targets,canvas,\ )) endif -ifeq ($(ENABLE_OPENGL),TRUE) +ifeq ($(ENABLE_OPENGL_CANVAS),TRUE) $(eval $(call gb_Module_add_targets,canvas,\ Library_oglcanvas \ )) diff --git a/config_host.mk.in b/config_host.mk.in index 4536c215321b..8aceea30a7fc 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -146,6 +146,7 @@ export ENABLE_NPAPI_INTO_BROWSER=@ENABLE_NPAPI_INTO_BROWSER@ export ENABLE_ONLINE_UPDATE=@ENABLE_ONLINE_UPDATE@ export ENABLE_OOENV=@ENABLE_OOENV@ export ENABLE_OPENGL=@ENABLE_OPENGL@ +export ENABLE_OPENGL_CANVAS=@ENABLE_OPENGL_CANVAS@ export ENABLE_OPENCL=@ENABLE_OPENCL@ export ENABLE_PACKAGEKIT=@ENABLE_PACKAGEKIT@ export ENABLE_PCH=@ENABLE_PCH@ diff --git a/configure.ac b/configure.ac index 1da0a2e5909f..c351f0b7f9c4 100644 --- a/configure.ac +++ b/configure.ac @@ -10263,11 +10263,14 @@ if test "x$enable_opengl" = "xno"; then elif test "$_os" = "Darwin"; then # We use frameworks on Mac OS X, no need for detail checks ENABLE_OPENGL=TRUE + ENABLE_OPENGL_CANVAS= + add_warning "openGL canvas not adapted for Mac yet - disabling" SYSTEM_MESA_HEADERS=YES AC_MSG_RESULT([yes]) elif test $_os = WINNT; then # Experimental: try to use OpenGL on Windows ENABLE_OPENGL=TRUE + ENABLE_OPENGL_CANVAS=TRUE # We need the internal "Mesa" headers. SYSTEM_MESA_HEADERS=NO BUILD_TYPE="$BUILD_TYPE MESA" @@ -10276,8 +10279,12 @@ else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -lm" AC_MSG_RESULT([yes]) - AC_CHECK_LIB([GL], [main], [:], - [AC_MSG_ERROR(libGL not installed or functional)], []) + AC_CHECK_LIB([GL], [main], + [AC_CHECK_LIB([GL], [glCreateShader], [ENABLE_OPENGL_CANVAS=TRUE], + [add_warning "no shader support in libGL - will enable openGL transitions, but not openGL canvas" + AC_MSG_WARN([no shader support in libGL - will enable openGL transitions, but not openGL canvas]) + ENABLE_OPENGL_CANVAS=], [])], + [AC_MSG_ERROR(libGL not installed or functional)], []) LDFLAGS="$LDFLAGS -lGL" AC_CHECK_LIB([GLU], [main], [:], [AC_MSG_ERROR(libGLU not installed or functional)], []) @@ -10306,6 +10313,7 @@ fi AC_SUBST(SYSTEM_MESA_HEADERS) AC_SUBST(ENABLE_OPENGL) +AC_SUBST(ENABLE_OPENGL_CANVAS) dnl ================================================= dnl Check whether to build with OpenCL support. |