summaryrefslogtreecommitdiff
path: root/m4/evas_check_engine.m4
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-11-01 23:04:47 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-11-03 22:22:54 +0900
commit4ed2e01591e1575800d9aa871f76a5f7559060b3 (patch)
treee2ff598e015fecd3f26a9c717a2bae1334e1bb1d /m4/evas_check_engine.m4
parentf399e77a92fc6d2cf92ab097eebc984a039bf223 (diff)
remove xcb support in ecore_x and evas engines as per mailing list
as per mailing list discussion about dropping xcb support now. it hasn't been complete for a long time, thus not recommented for being turned on. as we are moving to a wayland world xcbmakes even less sense. as agreed, time to clean up a bit and remove a distraction as well as not well tested code. this also updates po's too. @feature
Diffstat (limited to '')
-rw-r--r--m4/evas_check_engine.m4161
1 files changed, 0 insertions, 161 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index a7e00851ec..4ab7e4cfa0 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -123,167 +123,6 @@ pthread_create(NULL, NULL, NULL, NULL);
123 ]) 123 ])
124]) 124])
125 125
126dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_XCB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
127
128AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_XCB],
129[
130
131requirement=""
132have_dep="no"
133evas_engine_[]$1[]_cflags=""
134evas_engine_[]$1[]_libs=""
135
136PKG_CHECK_EXISTS([xcb xcb-shm xcb-image >= 0.2.1 pixman-1],
137 [
138 have_dep="yes"
139 requirement="xcb xcb-shm xcb-image >= 0.2.1 pixman-1"
140 ],
141 [have_dep="no"])
142
143if test "x${have_dep}" = "xyes" ; then
144 if test "x$3" = "xstatic" ; then
145 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
146 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
147 else
148 PKG_CHECK_MODULES([XCB], [${requirement}])
149 evas_engine_[]$1[]_cflags="${XCB_CFLAGS}"
150 evas_engine_[]$1[]_libs="${XCB_LIBS}"
151 fi
152fi
153
154AC_SUBST([evas_engine_$1_cflags])
155AC_SUBST([evas_engine_$1_libs])
156
157AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
158
159])
160
161
162dnl use: EVAS_CHECK_ENGINE_DEP_GL_XCB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
163
164AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_XCB],
165[
166
167requirement=""
168
169EFL_FIND_X(evas_engine_[]$1, [GL/gl.h],
170 [X11 XCreateColormap Xrender XRenderCreatePicture],
171 [
172 CFLAGS_save="$CFLAGS"
173 CFLAGS="$CFLAGS $evas_engine_[]$1[]_cflags"
174 CPPFLAGS_save="$CPPFLAGS"
175 CPPFLAGS="$CPPFLAGS $evas_engine_[]$1[]_cflags"
176 AC_CHECK_HEADER([GL/glext.h],
177 [have_dep="yes"],
178 [have_dep="no"],
179 [
180#include <GL/gl.h>
181#include <GL/glext.h>
182#include <GL/glx.h>
183 ])
184 CPPFLAGS=$CPPFLAGS_save
185 CFLAGS=$CFLAGS_save
186
187 gl_pt_lib="";
188 have_gl_pt="no"
189
190 AC_MSG_CHECKING([whether pthread_create() is supported])
191 CFLAGS_save="${CFLAGS}"
192 CFLAGS="${CFLAGS} -pthread"
193 LIBS_save="${LIBS}"
194 LIBS="${LIBS} -pthread"
195 AC_LINK_IFELSE(
196 [AC_LANG_PROGRAM([[
197#include <pthread.h>
198 ]],
199 [[
200pthread_create(NULL, NULL, NULL, NULL);
201 ]])],
202 [have_gl_pt="yes"],
203 [have_gl_pt="no"])
204 CFLAGS=${CFLAGS_save}
205 LIBS=${LIBS_save}
206 AC_MSG_RESULT([${have_gl_pt}])
207
208 if test "x$have_gl_pt" = "xyes" ; then
209 gl_pt_lib=" -pthread"
210 fi
211
212 if test "x$have_dep" = "xyes" ; then
213 LIBS_save="$LIBS"
214 LIBS="$LIBS $evas_engine_[]$1[]_libs"
215 AC_CHECK_LIB([GL], [glXCreateContext], [have_dep="yes"], [have_dep="no"], [-lm $gl_pt_lib])
216 LIBS="$LIBS_save"
217 fi
218 ],[
219 have_dep=no
220 ])
221
222PKG_CHECK_EXISTS([x11-xcb xcb xcb-glx xcb-render xcb-renderutil],
223 [
224 have_dep="yes"
225 requirement="x11-xcb xcb xcb-glx xcb-render xcb-renderutil"
226 ],
227 [have_dep="no"])
228
229if test "x${have_dep}" = "xyes" ; then
230 if test "x$3" = "xstatic" ; then
231 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
232 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
233 else
234 PKG_CHECK_MODULES([XCB_GL], [${requirement}])
235 fi
236fi
237
238if test "x${with_opengl}" = "xes" ; then
239 have_dep=no
240fi
241
242if test "x${have_dep}" = "xyes" ; then
243 evas_engine_[]$1[]_cflags="$evas_engine_[]$1[]_cflags $XCB_GL_CFLAGS"
244 evas_engine_[]$1[]_libs="$evas_engine_[]$1[]_libs $XCB_GL_LIBS -lGL $gl_pt_lib"
245 evas_engine_gl_common_libs="$evas_engine_[]$1[]_libdirs -lGL $gl_pt_lib"
246else
247 CFLAGS_save="$CFLAGS"
248 CFLAGS="$CFLAGS $evas_engine_[]$1[]_cflags"
249 CPPFLAGS_save="$CPPFLAGS"
250 CPPFLAGS="$CPPFLAGS $evas_engine_[]$1[]_cflags"
251 AC_CHECK_HEADER([GLES2/gl2.h],
252 [have_egl="yes"],
253 [have_egl="no"],
254 [
255#include <GLES2/gl2.h>
256#include <GLES2/gl2ext.h>
257#include <EGL/egl.h>
258 ])
259 CPPFLAGS=$CPPFLAGS_save
260 CFLAGS=$CFLAGS_save
261 if test "x${have_egl}" = "xyes" ; then
262 LIBS_save="$LIBS"
263 LIBS="$LIBS $evas_engine_[]$1[]_libs"
264 AC_CHECK_LIB(GLESv2, glTexImage2D, [have_glesv2="yes"], , -lEGL -lm $gl_pt_lib)
265 if test "x${have_glesv2}" = "xyes" ; then
266 evas_engine_[]$1[]_cflags="$evas_engine_[]$1[]_cflags $XCB_GL_CFLAGS"
267 evas_engine_[]$1[]_libs="$evas_engine_[]$1[]_libs $XCB_GL_LIBS -lGLESv2 -lEGL -lm $gl_pt_lib"
268 evas_engine_gl_common_libs="$evas_engine_[]$1[]_libdirs -lGLESv2 -lm $gl_pt_lib"
269 have_dep="yes"
270 AC_DEFINE(GLES_VARIETY_SGX, 1, [Imagination SGX GLES2 support])
271 gles_variety_sgx="yes"
272 fi
273 fi
274fi
275
276if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
277 requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
278 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
279 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
280fi
281
282AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
283
284])
285
286
287dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 126dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
288 127
289AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI], 128AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI],