From 2e35565ac8bc73b273db952b6e41880cef219c8d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 13 Nov 2006 19:50:59 +0000 Subject: [PATCH] disable wxGLCanvas for wxMGL and wxDFB which don't support it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 6 +++++- configure.in | 5 ++++- include/wx/glcanvas.h | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 2bef6d2a7d..c98c6d43cb 100755 --- a/configure +++ b/configure @@ -32821,7 +32821,11 @@ fi USE_OPENGL=0 if test "$wxUSE_OPENGL" = "yes"; then - if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then + if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then + { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5 +echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;} + wxUSE_OPENGL="no" + elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then OPENGL_LIBS="-framework OpenGL -framework AGL" elif test "$wxUSE_MSW" = 1; then OPENGL_LIBS="-lopengl32 -lglu32" diff --git a/configure.in b/configure.in index c54e99f61a..c77622c3e7 100644 --- a/configure.in +++ b/configure.in @@ -3901,7 +3901,10 @@ dnl --------------------------------------------------------------------------- USE_OPENGL=0 if test "$wxUSE_OPENGL" = "yes"; then - if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then + if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then + AC_MSG_WARN([wxGLCanvas not implemented for this port, library will be compiled without it.]) + wxUSE_OPENGL="no" + elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then OPENGL_LIBS="-framework OpenGL -framework AGL" elif test "$wxUSE_MSW" = 1; then OPENGL_LIBS="-lopengl32 -lglu32" diff --git a/include/wx/glcanvas.h b/include/wx/glcanvas.h index 751cd4f2e5..680796ee28 100644 --- a/include/wx/glcanvas.h +++ b/include/wx/glcanvas.h @@ -60,6 +60,8 @@ enum #include "wx/mac/glcanvas.h" #elif defined(__WXCOCOA__) #include "wx/cocoa/glcanvas.h" +#else +#error "wxGLCanvas not supported in this wxWidgets port" #endif #include "wx/app.h" -- 2.45.2