From: xcomputerman Date: Fri, 29 Jan 2010 07:42:24 +0000 (+0000) Subject: Better test for gl_common; fix SDL_opengles defines X-Git-Tag: submit/trunk/20120815.174732~2952 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63ff70917f54e511cd2d7591d864b30f45fb1e42;p=profile%2Fivi%2Fevas.git Better test for gl_common; fix SDL_opengles defines git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@45695 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/configure.ac b/configure.ac index 0269e78..a5c371e 100644 --- a/configure.ac +++ b/configure.ac @@ -508,15 +508,9 @@ EVAS_CHECK_ENGINE([software-16-wince], [${want_evas_engine_software_16_wince}], # common gl have_evas_engine_gl_common="no" -if test "x$have_evas_engine_gl_x11" = "xyes"; then - have_evas_engine_gl_common="yes" -fi - -if test "x$have_evas_engine_gl_glew" = "xyes"; then - have_evas_engine_gl_common="yes" -fi - -if test "x$have_evas_engine_gl_sdl" = "xyes"; then +if test "x$have_evas_engine_gl_x11" = "xyes" \ + || test "x$have_evas_engine_gl_glew" = "xyes" \ + || test "x$have_evas_engine_gl_sdl" = "xyes"; then have_evas_engine_gl_common="yes" fi @@ -532,13 +526,13 @@ AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, [test "x$have_evas_engine_gl_common" = "x # gl_sdl if test "x$have_evas_engine_gl_sdl" = "xyes"; then AC_CHECK_DECL(SDL_GL_CONTEXT_MAJOR_VERSION, - [AC_DEFINE(HAVE_SDL_GL_CONTEXT_VERSION, [], [SDL_GL version attributes present])],, + [AC_DEFINE(HAVE_SDL_GL_CONTEXT_VERSION, [1], [SDL_GL version attributes present])],, [#include ]) fi if test "x$gl_flavor_gles" = "xyes"; then AC_CHECK_DECL(SDL_OPENGLES, - [AC_DEFINE(HAVE_SDL_FLAG_OPENGLES, [], [SDL_OPENGLES flag is present])],, + [AC_DEFINE(HAVE_SDL_FLAG_OPENGLES, [1], [SDL_OPENGLES flag is present])],, [#include ]) fi