2008-11-23 22:18:31 -08:00
|
|
|
|
2009-09-27 12:57:01 -07:00
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_XLIB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
2009-07-14 14:16:08 -07:00
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_XLIB],
|
2008-11-23 22:18:31 -08:00
|
|
|
[
|
|
|
|
|
2013-01-09 08:48:40 -08:00
|
|
|
EFL_FIND_X(evas_engine_[]$1,
|
|
|
|
[X11/X.h], [X11 XCreateImage Xext XShmCreateImage],
|
|
|
|
[
|
|
|
|
if test "x$3" = "xstatic"; then
|
|
|
|
requirements_libs_evas="$evas_engine_[]$1[]_libs $requirements_libs_evas"
|
|
|
|
fi
|
|
|
|
ifelse([$4], , :, [$4])
|
|
|
|
],[
|
|
|
|
ifelse([$5], , :, [$5])
|
|
|
|
])
|
2008-11-23 22:18:31 -08:00
|
|
|
])
|
|
|
|
|
2011-07-07 17:18:22 -07:00
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_GL_XLIB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
2011-07-07 17:18:22 -07:00
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_XLIB],
|
2008-11-23 22:18:31 -08:00
|
|
|
[
|
|
|
|
|
2013-01-09 08:48:40 -08:00
|
|
|
EFL_FIND_X(evas_engine_[]$1,
|
|
|
|
[X11/Xlib.h X11/Xatom.h X11/Xutil.h X11/extensions/Xrender.h X11/Xresource.h],
|
|
|
|
[X11 XCreateColormap Xrender XRenderCreatePicture],
|
|
|
|
[
|
|
|
|
CFLAGS_save="$CFLAGS"
|
|
|
|
CFLAGS="$evas_engine_[]$1[]_cflags $CFLAGS"
|
|
|
|
CPPFLAGS_save="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$evas_engine_[]$1[]_cflags $CPPFLAGS"
|
|
|
|
|
|
|
|
AC_CHECK_HEADER([GL/gl.h],
|
|
|
|
[have_dep="yes"],
|
|
|
|
[have_dep="no"],
|
|
|
|
[
|
2010-10-26 16:31:58 -07:00
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <GL/glext.h>
|
|
|
|
#include <GL/glx.h>
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <X11/Xatom.h>
|
|
|
|
#include <X11/Xutil.h>
|
|
|
|
#include <X11/extensions/Xrender.h>
|
|
|
|
#include <X11/Xresource.h>
|
2013-01-09 08:48:40 -08:00
|
|
|
])
|
2009-08-03 01:26:02 -07:00
|
|
|
|
2013-01-09 08:48:40 -08:00
|
|
|
gl_pt_lib=""
|
|
|
|
have_gl_pt="no"
|
2009-08-03 01:26:02 -07:00
|
|
|
|
2013-01-09 08:48:40 -08:00
|
|
|
AC_MSG_CHECKING([whether pthread_create() is supported])
|
|
|
|
CFLAGS_pt_save="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -pthread"
|
|
|
|
LIBS_pt_save="$LIBS"
|
|
|
|
LIBS="$LIBS -pthread"
|
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([[
|
|
|
|
#include <pthread.h>
|
|
|
|
]],
|
|
|
|
[[
|
|
|
|
pthread_create(NULL, NULL, NULL, NULL);
|
|
|
|
]])],
|
|
|
|
[have_gl_pt="yes"],
|
|
|
|
[have_gl_pt="no"])
|
|
|
|
CFLAGS=$CFLAGS_pt_save
|
|
|
|
LIBS=$LIBS_pt_save
|
|
|
|
AC_MSG_RESULT([$have_gl_pt])
|
|
|
|
|
|
|
|
if test "x$have_gl_pt" = "xyes" ; then
|
|
|
|
gl_pt_lib=" -pthread"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$have_dep" = "xyes"; then
|
|
|
|
LIBS_save="$LIBS"
|
|
|
|
LIBS="$LIBS $evas_engine_[]$1[]_libs"
|
|
|
|
AC_CHECK_LIB([GL], [glXCreateContext], [have_dep="yes"], [have_dep="no"], [-lm $gl_pt_lib])
|
|
|
|
LIBS="$LIBS_save"
|
|
|
|
fi
|
|
|
|
|
2013-01-21 08:05:02 -08:00
|
|
|
if test "x${with_opengl}" = "xes" ; then
|
2013-01-09 08:48:40 -08:00
|
|
|
have_dep=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$have_dep" = "xyes" ; then
|
|
|
|
evas_engine_[]$1[]_libs="$evas_engine_[]$1[]_libs -lGL $gl_pt_lib"
|
|
|
|
evas_engine_gl_common_libs="$evas_engine_[]$1[]_libdirs -lGL $gl_pt_lib"
|
|
|
|
else
|
|
|
|
AC_CHECK_HEADER([GLES2/gl2.h],
|
|
|
|
[have_egl="yes"],
|
|
|
|
[have_egl="no"],
|
|
|
|
[
|
2010-10-26 16:31:58 -07:00
|
|
|
#include <GLES2/gl2.h>
|
|
|
|
#include <GLES2/gl2ext.h>
|
|
|
|
#include <EGL/egl.h>
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <X11/Xatom.h>
|
|
|
|
#include <X11/Xutil.h>
|
|
|
|
#include <X11/extensions/Xrender.h>
|
|
|
|
#include <X11/Xresource.h>
|
2013-01-09 08:48:40 -08:00
|
|
|
])
|
|
|
|
if test "x${have_egl}" = "xyes" ; then
|
|
|
|
AC_CHECK_LIB(GLESv2, glTexImage2D, [have_glesv2="yes"], , -lEGL -lm $gl_pt_lib)
|
|
|
|
if test "x${have_glesv2}" = "xyes" ; then
|
|
|
|
evas_engine_[]$1[]_libs="$evas_engine_[]$1[]_libs -lGLESv2 -lEGL -lm $gl_pt_lib"
|
|
|
|
evas_engine_gl_common_libs="$evas_engine_[]$1[]_libdirs -lGLESv2 -lm $gl_pt_lib"
|
|
|
|
have_dep="yes"
|
|
|
|
AC_DEFINE(GL_GLES, 1, [GLSL runtime shader GLES2 support])
|
|
|
|
gles_variety_sgx="yes"
|
|
|
|
fi
|
2009-10-09 05:10:27 -07:00
|
|
|
fi
|
2013-01-09 08:48:40 -08:00
|
|
|
fi
|
2008-11-23 22:18:31 -08:00
|
|
|
|
2013-01-09 08:48:40 -08:00
|
|
|
CPPFLAGS="$CPPFLAGS_save"
|
|
|
|
CFLAGS="$CFLAGS_save"
|
2008-11-23 22:18:31 -08:00
|
|
|
|
2013-01-09 08:48:40 -08:00
|
|
|
if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
|
|
|
|
requirements_libs_evas="$evas_engine_[]$1[]_libs $requirements_libs_evas"
|
|
|
|
fi
|
2008-11-23 22:18:31 -08:00
|
|
|
|
2013-01-09 08:48:40 -08:00
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
|
|
|
],[
|
|
|
|
ifelse([$5], , :, [$5])
|
|
|
|
])
|
2008-11-23 22:18:31 -08:00
|
|
|
])
|
|
|
|
|
2009-09-27 12:57:01 -07:00
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_XCB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_XCB],
|
|
|
|
[
|
|
|
|
|
2009-09-27 12:57:01 -07:00
|
|
|
requirement=""
|
2008-11-23 22:18:31 -08:00
|
|
|
have_dep="no"
|
|
|
|
evas_engine_[]$1[]_cflags=""
|
|
|
|
evas_engine_[]$1[]_libs=""
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
PKG_CHECK_EXISTS([xcb xcb-shm xcb-image >= 0.2.1 pixman-1],
|
2008-11-23 22:18:31 -08:00
|
|
|
[
|
|
|
|
have_dep="yes"
|
2012-11-05 15:48:30 -08:00
|
|
|
requirement="xcb xcb-shm xcb-image >= 0.2.1 pixman-1"
|
2012-11-04 03:51:42 -08:00
|
|
|
],
|
|
|
|
[have_dep="no"])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
if test "x${have_dep}" = "xyes" ; then
|
2012-12-03 08:54:10 -08:00
|
|
|
if test "x$3" = "xstatic" ; then
|
2012-11-05 15:48:30 -08:00
|
|
|
requirements_pc_evas="${requirement} ${requirements_pc_evas}"
|
2012-11-05 01:25:44 -08:00
|
|
|
requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
|
|
|
|
else
|
2012-11-05 15:48:30 -08:00
|
|
|
PKG_CHECK_MODULES([XCB], [${requirement}])
|
2012-12-07 14:51:40 -08:00
|
|
|
evas_engine_[]$1[]_cflags="${XCB_CFLAGS}"
|
|
|
|
evas_engine_[]$1[]_libs="${XCB_LIBS}"
|
2012-11-05 01:25:44 -08:00
|
|
|
fi
|
2009-09-27 12:57:01 -07:00
|
|
|
fi
|
|
|
|
|
2012-11-04 03:51:42 -08:00
|
|
|
AC_SUBST([evas_engine_$1_cflags])
|
|
|
|
AC_SUBST([evas_engine_$1_libs])
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
|
|
|
])
|
|
|
|
|
2011-07-07 17:18:22 -07:00
|
|
|
|
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_GL_XCB(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
|
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_XCB],
|
|
|
|
[
|
|
|
|
|
2012-11-04 03:51:42 -08:00
|
|
|
requirement=""
|
2011-07-07 17:18:22 -07:00
|
|
|
|
2013-01-09 08:48:40 -08:00
|
|
|
EFL_FIND_X(evas_engine_[]$1, [GL/gl.h],
|
|
|
|
[X11 XCreateColormap Xrender XRenderCreatePicture],
|
|
|
|
[
|
|
|
|
CFLAGS_save="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS $evas_engine_[]$1[]_cflags"
|
|
|
|
CPPFLAGS_save="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $evas_engine_[]$1[]_cflags"
|
|
|
|
AC_CHECK_HEADER([GL/glext.h],
|
|
|
|
[have_dep="yes"],
|
|
|
|
[have_dep="no"],
|
|
|
|
[
|
2011-07-07 17:18:22 -07:00
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <GL/glext.h>
|
|
|
|
#include <GL/glx.h>
|
2013-01-09 08:48:40 -08:00
|
|
|
])
|
|
|
|
CPPFLAGS=$CPPFLAGS_save
|
|
|
|
CFLAGS=$CFLAGS_save
|
|
|
|
|
|
|
|
gl_pt_lib="";
|
|
|
|
have_gl_pt="no"
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether pthread_create() is supported])
|
|
|
|
CFLAGS_save="${CFLAGS}"
|
|
|
|
CFLAGS="${CFLAGS} -pthread"
|
|
|
|
LIBS_save="${LIBS}"
|
|
|
|
LIBS="${LIBS} -pthread"
|
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([[
|
2011-11-10 10:14:48 -08:00
|
|
|
#include <pthread.h>
|
2013-01-09 08:48:40 -08:00
|
|
|
]],
|
|
|
|
[[
|
2011-11-10 10:14:48 -08:00
|
|
|
pthread_create(NULL, NULL, NULL, NULL);
|
2013-01-09 08:48:40 -08:00
|
|
|
]])],
|
|
|
|
[have_gl_pt="yes"],
|
|
|
|
[have_gl_pt="no"])
|
|
|
|
CFLAGS=${CFLAGS_save}
|
|
|
|
LIBS=${LIBS_save}
|
|
|
|
AC_MSG_RESULT([${have_gl_pt}])
|
|
|
|
|
|
|
|
if test "x$have_gl_pt" = "xyes" ; then
|
|
|
|
gl_pt_lib=" -pthread"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$have_dep" = "xyes" ; then
|
|
|
|
LIBS_save="$LIBS"
|
|
|
|
LIBS="$LIBS $evas_engine_[]$1[]_libs"
|
|
|
|
AC_CHECK_LIB([GL], [glXCreateContext], [have_dep="yes"], [have_dep="no"], [-lm $gl_pt_lib])
|
|
|
|
LIBS="$LIBS_save"
|
|
|
|
fi
|
|
|
|
],[
|
|
|
|
have_dep=no
|
|
|
|
])
|
2011-07-07 17:18:22 -07:00
|
|
|
|
2012-11-05 15:48:30 -08:00
|
|
|
PKG_CHECK_EXISTS([x11-xcb xcb xcb-glx xcb-render xcb-renderutil],
|
2013-01-09 08:48:40 -08:00
|
|
|
[
|
2011-07-07 17:18:22 -07:00
|
|
|
have_dep="yes"
|
2011-07-09 06:48:39 -07:00
|
|
|
requirement="x11-xcb xcb xcb-glx xcb-render xcb-renderutil"
|
2013-01-09 08:48:40 -08:00
|
|
|
],
|
|
|
|
[have_dep="no"])
|
2012-11-04 03:51:42 -08:00
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
if test "x${have_dep}" = "xyes" ; then
|
2013-01-09 08:48:40 -08:00
|
|
|
if test "x$3" = "xstatic" ; then
|
|
|
|
requirements_pc_evas="${requirement} ${requirements_pc_evas}"
|
|
|
|
requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
|
|
|
|
else
|
|
|
|
PKG_CHECK_MODULES([XCB_GL], [${requirement}])
|
|
|
|
fi
|
2012-11-05 01:25:44 -08:00
|
|
|
fi
|
|
|
|
|
2013-01-21 08:05:02 -08:00
|
|
|
if test "x${with_opengl}" = "xes" ; then
|
2011-07-07 17:18:22 -07:00
|
|
|
have_dep=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x${have_dep}" = "xyes" ; then
|
2013-01-09 08:48:40 -08:00
|
|
|
evas_engine_[]$1[]_cflags="$evas_engine_[]$1[]_cflags $XCB_GL_CFLAGS"
|
|
|
|
evas_engine_[]$1[]_libs="$evas_engine_[]$1[]_libs $XCB_GL_LIBS -lGL $gl_pt_lib"
|
|
|
|
evas_engine_gl_common_libs="$evas_engine_[]$1[]_libdirs -lGL $gl_pt_lib"
|
2011-07-07 17:18:22 -07:00
|
|
|
else
|
2013-01-09 08:48:40 -08:00
|
|
|
CFLAGS_save="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS $evas_engine_[]$1[]_cflags"
|
|
|
|
CPPFLAGS_save="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $evas_engine_[]$1[]_cflags"
|
|
|
|
AC_CHECK_HEADER([GLES2/gl2.h],
|
|
|
|
[have_egl="yes"],
|
|
|
|
[have_egl="no"],
|
|
|
|
[
|
2011-07-07 17:18:22 -07:00
|
|
|
#include <GLES2/gl2.h>
|
|
|
|
#include <GLES2/gl2ext.h>
|
|
|
|
#include <EGL/egl.h>
|
2013-01-09 08:48:40 -08:00
|
|
|
])
|
|
|
|
CPPFLAGS=$CPPFLAGS_save
|
|
|
|
CFLAGS=$CFLAGS_save
|
|
|
|
if test "x${have_egl}" = "xyes" ; then
|
|
|
|
LIBS_save="$LIBS"
|
|
|
|
LIBS="$LIBS $evas_engine_[]$1[]_libs"
|
|
|
|
AC_CHECK_LIB(GLESv2, glTexImage2D, [have_glesv2="yes"], , -lEGL -lm $gl_pt_lib)
|
|
|
|
if test "x${have_glesv2}" = "xyes" ; then
|
|
|
|
evas_engine_[]$1[]_cflags="$evas_engine_[]$1[]_cflags $XCB_GL_CFLAGS"
|
|
|
|
evas_engine_[]$1[]_libs="$evas_engine_[]$1[]_libs $XCB_GL_LIBS -lGLESv2 -lEGL -lm $gl_pt_lib"
|
|
|
|
evas_engine_gl_common_libs="$evas_engine_[]$1[]_libdirs -lGLESv2 -lm $gl_pt_lib"
|
|
|
|
have_dep="yes"
|
|
|
|
AC_DEFINE(GLES_VARIETY_SGX, 1, [Imagination SGX GLES2 support])
|
|
|
|
gles_variety_sgx="yes"
|
|
|
|
fi
|
|
|
|
fi
|
2011-07-07 17:18:22 -07:00
|
|
|
fi
|
|
|
|
|
2012-11-04 03:51:42 -08:00
|
|
|
if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
|
2013-01-09 08:48:40 -08:00
|
|
|
requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
|
|
|
|
requirements_pc_evas="${requirement} ${requirements_pc_evas}"
|
|
|
|
requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
|
2012-11-04 03:51:42 -08:00
|
|
|
fi
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
2011-07-07 17:18:22 -07:00
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
2009-09-27 12:57:01 -07:00
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
2009-04-22 20:20:51 -07:00
|
|
|
|
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI],
|
|
|
|
[
|
|
|
|
|
|
|
|
have_dep="no"
|
|
|
|
evas_engine_[]$1[]_cflags=""
|
|
|
|
evas_engine_[]$1[]_libs=""
|
|
|
|
|
|
|
|
AC_CHECK_HEADER([windows.h],
|
|
|
|
[
|
|
|
|
have_dep="yes"
|
|
|
|
evas_engine_[]$1[]_libs="-lgdi32"
|
2012-11-04 03:51:42 -08:00
|
|
|
])
|
|
|
|
|
|
|
|
if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
|
|
|
|
requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
|
|
|
|
fi
|
2009-04-22 20:20:51 -07:00
|
|
|
|
|
|
|
AC_SUBST([evas_engine_$1_cflags])
|
|
|
|
AC_SUBST([evas_engine_$1_libs])
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
2009-04-22 20:20:51 -07:00
|
|
|
|
|
|
|
])
|
|
|
|
|
2009-09-27 12:57:01 -07:00
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_DDRAW(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_DDRAW],
|
|
|
|
[
|
|
|
|
|
|
|
|
have_dep="no"
|
|
|
|
evas_engine_[]$1[]_cflags=""
|
|
|
|
evas_engine_[]$1[]_libs=""
|
|
|
|
|
|
|
|
AC_CHECK_HEADER([ddraw.h],
|
|
|
|
[
|
|
|
|
have_dep="yes"
|
|
|
|
evas_engine_[]$1[]_libs="-lddraw"
|
2012-11-04 03:51:42 -08:00
|
|
|
])
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
|
2012-11-04 03:51:42 -08:00
|
|
|
requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
|
|
|
|
fi
|
2008-11-23 22:18:31 -08:00
|
|
|
|
|
|
|
AC_SUBST([evas_engine_$1_cflags])
|
|
|
|
AC_SUBST([evas_engine_$1_libs])
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
|
|
|
])
|
|
|
|
|
2009-09-27 12:57:01 -07:00
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_DIRECT3D(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DIRECT3D],
|
|
|
|
[
|
|
|
|
|
|
|
|
evas_engine_[]$1[]_cflags=""
|
|
|
|
evas_engine_[]$1[]_libs=""
|
|
|
|
|
2009-03-14 09:42:52 -07:00
|
|
|
AC_CHECK_HEADERS([d3d9.h d3dx9.h],
|
2008-11-23 22:18:31 -08:00
|
|
|
[
|
|
|
|
have_dep="yes"
|
2008-12-20 05:22:46 -08:00
|
|
|
evas_engine_[]$1[]_libs="-ld3d9 -ld3dx9 -lgdi32"
|
2009-03-14 10:24:53 -07:00
|
|
|
],
|
2012-11-04 03:51:42 -08:00
|
|
|
[have_dep="no"; break])
|
|
|
|
|
|
|
|
if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
|
|
|
|
requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
|
|
|
|
fi
|
2008-11-23 22:18:31 -08:00
|
|
|
|
|
|
|
AC_SUBST([evas_engine_$1_cflags])
|
|
|
|
AC_SUBST([evas_engine_$1_libs])
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
|
|
|
])
|
|
|
|
|
2011-11-02 11:23:54 -07:00
|
|
|
|
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_GL_COCOA(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
|
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_COCOA],
|
|
|
|
[
|
|
|
|
|
|
|
|
evas_engine_[]$1[]_cflags=""
|
|
|
|
evas_engine_[]$1[]_libs=""
|
|
|
|
|
|
|
|
AC_LANG_PUSH([Objective C])
|
|
|
|
|
|
|
|
LIBS_save="$LIBS"
|
|
|
|
LIBS="$LIBS -framework Cocoa"
|
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[
|
|
|
|
#include <Cocoa/Cocoa.h>
|
|
|
|
]],
|
|
|
|
[[
|
|
|
|
NSWindow *window;
|
|
|
|
window = [[NSWindow alloc]
|
|
|
|
initWithContentRect:NSMakeRect(0, 0, 1, 1)
|
|
|
|
styleMask:(NSTitledWindowMask)
|
|
|
|
backing:NSBackingStoreBuffered
|
|
|
|
defer:NO
|
|
|
|
screen:nil
|
|
|
|
];
|
|
|
|
]])],
|
|
|
|
[
|
|
|
|
have_dep="yes"
|
2014-06-08 12:33:22 -07:00
|
|
|
evas_engine_[]$1[]_libs="-framework Cocoa -framework OpenGL"
|
2011-11-02 11:23:54 -07:00
|
|
|
],
|
|
|
|
[have_dep="no"])
|
|
|
|
LIBS="$LIBS_save"
|
|
|
|
|
|
|
|
AC_LANG_POP([Objective C])
|
|
|
|
|
2012-11-04 03:51:42 -08:00
|
|
|
if test "x$3" = "xstatic" && test "x${have_dep}" = "xyes" ; then
|
|
|
|
requirements_libs_evas="${evas_engine_[]$1[]_libs} ${requirements_libs_evas}"
|
2011-11-02 11:23:54 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST([evas_engine_$1_cflags])
|
|
|
|
AC_SUBST([evas_engine_$1_libs])
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
2011-11-02 11:23:54 -07:00
|
|
|
|
|
|
|
])
|
|
|
|
|
2010-01-28 18:31:37 -08:00
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_GL_SDL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
|
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_SDL],
|
|
|
|
[
|
|
|
|
|
|
|
|
requirement=""
|
|
|
|
have_dep="no"
|
|
|
|
evas_engine_[]$1[]_cflags=""
|
|
|
|
evas_engine_[]$1[]_libs=""
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
PKG_CHECK_EXISTS([sdl >= 1.2.0],
|
2010-01-28 18:31:37 -08:00
|
|
|
[
|
|
|
|
have_dep="yes"
|
2012-11-05 15:48:30 -08:00
|
|
|
requirement="sdl >= 1.2.0"
|
2012-11-05 01:25:44 -08:00
|
|
|
],
|
|
|
|
[have_dep="no"])
|
2012-11-04 03:51:42 -08:00
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
if test "x${have_dep}" = "xyes" ; then
|
2012-12-03 08:54:10 -08:00
|
|
|
if test "x$3" = "xstatic" ; then
|
2012-11-05 15:48:30 -08:00
|
|
|
requirements_pc_evas="${requirement} ${requirements_pc_evas}"
|
2012-11-05 01:25:44 -08:00
|
|
|
requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
|
|
|
|
else
|
2012-11-05 15:48:30 -08:00
|
|
|
PKG_CHECK_MODULES([SDL], [${requirement}])
|
2012-12-07 14:51:40 -08:00
|
|
|
evas_engine_[]$1[]_cflags="${SDL_CFLAGS}"
|
|
|
|
evas_engine_[]$1[]_libs="${SDL_LIBS}"
|
2012-11-05 01:25:44 -08:00
|
|
|
fi
|
|
|
|
fi
|
2010-01-28 18:31:37 -08:00
|
|
|
|
2010-10-26 16:31:58 -07:00
|
|
|
gl_pt_lib="";
|
|
|
|
have_gl_pt="no"
|
2011-11-10 10:14:48 -08:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether pthread_create() is supported])
|
|
|
|
CFLAGS_save="${CFLAGS}"
|
|
|
|
CFLAGS="${CFLAGS} -pthread"
|
|
|
|
LIBS_save="${LIBS}"
|
|
|
|
LIBS="${LIBS} -pthread"
|
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([[
|
|
|
|
#include <pthread.h>
|
|
|
|
]],
|
|
|
|
[[
|
|
|
|
pthread_create(NULL, NULL, NULL, NULL);
|
|
|
|
]])],
|
|
|
|
[have_gl_pt="yes"],
|
|
|
|
[have_gl_pt="no"])
|
|
|
|
CFLAGS=${CFLAGS_save}
|
|
|
|
LIBS=${LIBS_save}
|
|
|
|
AC_MSG_RESULT([${have_gl_pt}])
|
|
|
|
|
2010-10-26 16:31:58 -07:00
|
|
|
if test "x$have_gl_pt" = "xyes" ; then
|
2011-11-10 10:14:48 -08:00
|
|
|
gl_pt_lib=" -pthread"
|
2010-10-26 16:31:58 -07:00
|
|
|
fi
|
|
|
|
|
2010-10-26 17:00:52 -07:00
|
|
|
AC_CHECK_HEADER([GL/gl.h],
|
2010-01-28 18:31:37 -08:00
|
|
|
[have_dep="yes"],
|
2010-10-26 16:31:58 -07:00
|
|
|
[have_dep="no"],
|
|
|
|
[
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <GL/glext.h>
|
|
|
|
])
|
2010-01-28 18:31:37 -08:00
|
|
|
|
2013-01-21 08:05:02 -08:00
|
|
|
if test "x${with_opengl}" = "xes" ; then
|
2010-01-28 18:31:37 -08:00
|
|
|
have_dep=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x${have_dep}" = "xyes" ; then
|
2012-11-05 01:25:44 -08:00
|
|
|
evas_engine_[]$1[]_libs="${evas_engine_[]$1[]_libs} -lGL -lm $gl_pt_lib"
|
2010-10-26 16:31:58 -07:00
|
|
|
evas_engine_gl_common_libs="-lGL -lm $gl_pt_lib"
|
2010-01-28 18:31:37 -08:00
|
|
|
else
|
2010-10-26 17:00:52 -07:00
|
|
|
AC_CHECK_HEADER([SDL/SDL_opengles.h],
|
2010-10-26 16:31:58 -07:00
|
|
|
[have_egl="yes"],
|
|
|
|
[have_egl="no"],
|
|
|
|
[
|
|
|
|
#include <SDL/SDL_opengles.h>
|
|
|
|
#include <EGL/egl.h>
|
|
|
|
])
|
2010-01-28 18:31:37 -08:00
|
|
|
if test "x${have_egl}" = "xyes" ; then
|
2010-10-26 16:31:58 -07:00
|
|
|
AC_CHECK_LIB(GLESv2, glTexImage2D, [have_glesv2="yes"], , -lEGL -lm $gl_pt_lib)
|
2010-01-28 18:31:37 -08:00
|
|
|
if test "x${have_glesv2}" = "xyes" ; then
|
2012-11-05 01:25:44 -08:00
|
|
|
evas_engine_[]$1[]_libs="${evas_engine_[]$1[]_libs} -lGLESv2 -lEGL -lm $gl_pt_lib"
|
2010-10-26 16:31:58 -07:00
|
|
|
evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib"
|
2010-01-28 18:31:37 -08:00
|
|
|
have_dep="yes"
|
2010-10-26 16:31:58 -07:00
|
|
|
AC_DEFINE(GLES_VARIETY_SGX, 1, [Imagination SGX GLES2 support])
|
|
|
|
gles_variety_sgx="yes"
|
2010-01-28 18:31:37 -08:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST([evas_engine_$1_cflags])
|
|
|
|
AC_SUBST([evas_engine_$1_libs])
|
|
|
|
|
|
|
|
if test "x$3" = "xstatic" ; then
|
|
|
|
requirement_evas="${requirement} ${requirement_evas}"
|
|
|
|
fi
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
2010-01-28 18:31:37 -08:00
|
|
|
|
|
|
|
])
|
|
|
|
|
2011-12-14 10:44:20 -08:00
|
|
|
|
2013-01-24 01:13:48 -08:00
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_SHM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
|
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_WAYLAND_SHM],
|
|
|
|
[
|
|
|
|
|
|
|
|
requirement=""
|
|
|
|
have_dep="no"
|
|
|
|
evas_engine_[]$1[]_cflags=""
|
|
|
|
evas_engine_[]$1[]_libs=""
|
|
|
|
|
2013-11-04 05:29:31 -08:00
|
|
|
PKG_CHECK_EXISTS([wayland-client >= 1.3.0],
|
2013-01-24 01:13:48 -08:00
|
|
|
[
|
|
|
|
have_dep="yes"
|
|
|
|
requirement="wayland-client"
|
|
|
|
],
|
|
|
|
[have_dep="no"])
|
|
|
|
|
|
|
|
if test "x${have_dep}" = "xyes" ; then
|
|
|
|
if test "x$3" = "xstatic" ; then
|
|
|
|
requirements_pc_evas="${requirement} ${requirements_pc_evas}"
|
|
|
|
requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
|
|
|
|
else
|
|
|
|
PKG_CHECK_MODULES([WAYLAND_SHM], [${requirement}])
|
|
|
|
evas_engine_[]$1[]_cflags="${WAYLAND_SHM_CFLAGS}"
|
|
|
|
evas_engine_[]$1[]_libs="${WAYLAND_SHM_LIBS}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST([evas_engine_$1_cflags])
|
|
|
|
AC_SUBST([evas_engine_$1_libs])
|
|
|
|
|
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
|
|
|
|
|
|
|
])
|
|
|
|
|
2011-12-14 10:44:20 -08:00
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
|
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL],
|
|
|
|
[
|
|
|
|
|
|
|
|
requirement=""
|
|
|
|
have_dep="no"
|
|
|
|
evas_engine_[]$1[]_cflags=""
|
|
|
|
evas_engine_[]$1[]_libs=""
|
|
|
|
|
2014-02-12 05:27:01 -08:00
|
|
|
if test "x${with_opengl}" = "xes" ; then
|
2012-10-26 11:54:52 -07:00
|
|
|
gl_library="glesv2"
|
|
|
|
else
|
|
|
|
gl_library="gl"
|
|
|
|
fi
|
|
|
|
|
2013-11-04 05:29:31 -08:00
|
|
|
PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library} wayland-client >= 1.3.0 wayland-egl >= 9.2.0],
|
2011-12-14 10:44:20 -08:00
|
|
|
[
|
|
|
|
have_dep="yes"
|
2012-11-05 15:48:30 -08:00
|
|
|
requirement="egl >= 7.10 ${gl_library} wayland-client wayland-egl"
|
2012-11-04 03:51:42 -08:00
|
|
|
],
|
|
|
|
[have_dep="no"])
|
2011-12-14 10:44:20 -08:00
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
if test "x${have_dep}" = "xyes" ; then
|
2012-12-03 08:54:10 -08:00
|
|
|
if test "x$3" = "xstatic" ; then
|
2012-11-05 15:48:30 -08:00
|
|
|
requirements_pc_evas="${requirement} ${requirements_pc_evas}"
|
2012-11-05 01:25:44 -08:00
|
|
|
requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
|
|
|
|
else
|
2012-11-05 15:48:30 -08:00
|
|
|
PKG_CHECK_MODULES([WAYLAND_EGL], [${requirement}])
|
2012-11-07 08:00:34 -08:00
|
|
|
evas_engine_[]$1[]_cflags="${WAYLAND_EGL_CFLAGS}"
|
|
|
|
evas_engine_[]$1[]_libs="${WAYLAND_EGL_LIBS}"
|
2012-11-05 01:25:44 -08:00
|
|
|
fi
|
2011-12-14 10:44:20 -08:00
|
|
|
fi
|
|
|
|
|
2012-11-04 03:51:42 -08:00
|
|
|
AC_SUBST([evas_engine_$1_cflags])
|
|
|
|
AC_SUBST([evas_engine_$1_libs])
|
|
|
|
|
2012-11-05 01:25:44 -08:00
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
2013-04-29 03:54:26 -07:00
|
|
|
|
|
|
|
])
|
|
|
|
|
2014-02-11 00:07:38 -08:00
|
|
|
|
2013-04-29 03:54:26 -07:00
|
|
|
dnl use: EVAS_CHECK_ENGINE_DEP_DRM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
|
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DRM],
|
|
|
|
[
|
|
|
|
|
|
|
|
requirement=""
|
2014-07-18 06:29:35 -07:00
|
|
|
have_dep="yes"
|
2014-02-11 23:29:16 -08:00
|
|
|
have_hw_dep="no"
|
2013-04-29 03:54:26 -07:00
|
|
|
evas_engine_[]$1[]_cflags=""
|
|
|
|
evas_engine_[]$1[]_libs=""
|
|
|
|
|
2014-02-12 05:51:29 -08:00
|
|
|
if test "x${with_opengl}" = "xes" ; then
|
|
|
|
gl_library="glesv2"
|
|
|
|
else
|
|
|
|
gl_library="gl"
|
|
|
|
fi
|
|
|
|
|
2013-04-29 03:54:26 -07:00
|
|
|
if test "x${have_dep}" = "xyes" ; then
|
2014-02-12 05:51:29 -08:00
|
|
|
AC_MSG_CHECKING([whether to enable Drm hardware acceleration])
|
2014-02-11 23:29:16 -08:00
|
|
|
if test "x${want_drm_hw_accel}" = "xyes" ; then
|
2014-02-12 05:51:29 -08:00
|
|
|
PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library}],
|
2014-02-11 00:07:38 -08:00
|
|
|
[
|
|
|
|
have_hw_dep="yes"
|
2014-07-18 06:29:35 -07:00
|
|
|
requirement="egl >= 7.10 ${gl_library}"
|
2014-02-11 00:07:38 -08:00
|
|
|
],
|
|
|
|
[have_hw_dep="no"])
|
|
|
|
fi
|
2014-02-12 05:51:29 -08:00
|
|
|
AC_MSG_RESULT([${have_hw_dep}])
|
2014-02-11 00:07:38 -08:00
|
|
|
|
2013-04-29 03:54:26 -07:00
|
|
|
if test "x$3" = "xstatic" ; then
|
|
|
|
requirements_pc_evas="${requirement} ${requirements_pc_evas}"
|
|
|
|
requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
|
|
|
|
else
|
|
|
|
evas_engine_[]$1[]_cflags="${DRM_CFLAGS}"
|
|
|
|
evas_engine_[]$1[]_libs="${DRM_LIBS}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2014-02-28 06:44:18 -08:00
|
|
|
if test "x${have_hw_dep}" = "xyes" ; then
|
|
|
|
AC_DEFINE(HAVE_DRM_HW_ACCEL, [1],
|
|
|
|
[Enabled drm hardware accelerated rendering])
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-04-29 03:54:26 -07:00
|
|
|
AC_SUBST([evas_engine_$1_cflags])
|
|
|
|
AC_SUBST([evas_engine_$1_libs])
|
|
|
|
|
|
|
|
AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
2011-12-14 10:44:20 -08:00
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
2012-12-07 09:18:17 -08:00
|
|
|
dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE])
|
|
|
|
dnl
|
|
|
|
dnl defines BUILD_ENGINE_NAME if it should be built
|
|
|
|
dnl defines BUILD_STATIC_BUILD_NAME if should be built statically
|
|
|
|
dnl
|
|
|
|
dnl will call DEPENDENCY-CHECK-CODE if it should be built,
|
|
|
|
dnl if some dependency fail just call AC_MSG_ERROR() to abort.
|
|
|
|
|
|
|
|
AC_DEFUN([EVAS_ENGINE],
|
2013-01-18 05:48:14 -08:00
|
|
|
[dnl
|
2012-12-07 09:18:17 -08:00
|
|
|
m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
|
|
|
|
m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
|
|
|
|
|
|
|
|
want_engine="$2"
|
|
|
|
want_static_engine="no"
|
|
|
|
have_engine="no"
|
|
|
|
have_evas_engine_[]DOWN="no"
|
|
|
|
|
|
|
|
evas_engine_[]m4_defn([DOWN])[]_cflags=""
|
|
|
|
evas_engine_[]m4_defn([DOWN])[]_libs=""
|
|
|
|
|
|
|
|
if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic"; then
|
|
|
|
$3
|
|
|
|
|
|
|
|
have_engine="yes"
|
|
|
|
if test "x${want_engine}" = "xstatic" ; then
|
|
|
|
have_evas_engine_[]DOWN="static"
|
|
|
|
want_static_engine="yes"
|
|
|
|
else
|
|
|
|
have_evas_engine_[]DOWN="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_DEFINE_IF(BUILD_ENGINE_[]UP, [test "${have_engine}" = "yes"],
|
|
|
|
[1], [Build $1 Evas engine])
|
|
|
|
AM_CONDITIONAL(BUILD_ENGINE_[]UP, [test "${have_engine}" = "yes"])
|
|
|
|
|
|
|
|
AC_DEFINE_IF(EVAS_STATIC_BUILD_[]UP, [test "${want_static_engine}" = "yes"],
|
|
|
|
[1], [Build $1 Evas engine inside libevas])
|
|
|
|
AM_CONDITIONAL(EVAS_STATIC_BUILD_[]UP, [test "${want_static_engine}" = "yes"])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
2012-12-07 09:18:17 -08:00
|
|
|
AC_SUBST([evas_engine_]m4_defn([DOWN])[_cflags])
|
|
|
|
AC_SUBST([evas_engine_]m4_defn([DOWN])[_libs])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
2013-01-18 05:48:14 -08:00
|
|
|
EFL_ADD_FEATURE([EVAS_ENGINE], [$1], [${have_evas_engine_]DOWN[}])dnl
|
|
|
|
m4_popdef([UP])dnl
|
|
|
|
m4_popdef([DOWN])dnl
|
2012-12-07 09:18:17 -08:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl use: EVAS_CHECK_ENGINE(engine, want_engine, simple, description)
|
2008-11-23 22:18:31 -08:00
|
|
|
AC_DEFUN([EVAS_CHECK_ENGINE],
|
2013-01-18 05:48:14 -08:00
|
|
|
[dnl
|
2008-11-23 22:18:31 -08:00
|
|
|
m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
|
|
|
|
m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
|
|
|
|
|
|
|
|
want_engine="$2"
|
2009-06-22 10:35:31 -07:00
|
|
|
want_static_engine="no"
|
|
|
|
have_engine="no"
|
2008-11-23 22:18:31 -08:00
|
|
|
have_evas_engine_[]DOWN="no"
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to enable $4 rendering backend])
|
|
|
|
AC_MSG_RESULT([${want_engine}])
|
|
|
|
|
2012-12-07 15:16:43 -08:00
|
|
|
if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic"; then
|
2009-09-27 12:57:01 -07:00
|
|
|
m4_default([EVAS_CHECK_ENGINE_DEP_]m4_defn([UP]))(DOWN, $3, ${want_engine}, [have_engine="yes"], [have_engine="no"])
|
2008-11-23 22:18:31 -08:00
|
|
|
fi
|
|
|
|
|
2012-12-07 12:08:28 -08:00
|
|
|
if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes"; then
|
|
|
|
AC_MSG_ERROR([$4 dependencies not found])
|
2008-11-23 22:18:31 -08:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether $4 rendering backend will be built])
|
2009-06-22 10:35:31 -07:00
|
|
|
AC_MSG_RESULT([${have_engine}])
|
2008-11-23 22:18:31 -08:00
|
|
|
|
2009-06-22 10:35:31 -07:00
|
|
|
if test "x${have_engine}" = "xyes" ; then
|
|
|
|
if test "x${want_engine}" = "xstatic" ; then
|
|
|
|
have_evas_engine_[]DOWN="static"
|
|
|
|
want_static_engine="yes"
|
|
|
|
else
|
|
|
|
have_evas_engine_[]DOWN="yes"
|
|
|
|
fi
|
2008-11-23 22:18:31 -08:00
|
|
|
fi
|
|
|
|
|
2009-06-22 10:35:31 -07:00
|
|
|
if test "x${have_engine}" = "xyes" ; then
|
|
|
|
AC_DEFINE(BUILD_ENGINE_[]UP, [1], [$4 rendering backend])
|
|
|
|
fi
|
2009-06-16 06:01:36 -07:00
|
|
|
|
2009-06-22 10:35:31 -07:00
|
|
|
AM_CONDITIONAL(BUILD_ENGINE_[]UP, [test "x${have_engine}" = "xyes"])
|
2009-06-16 06:01:36 -07:00
|
|
|
|
2009-06-22 10:35:31 -07:00
|
|
|
if test "x${want_static_engine}" = "xyes" ; then
|
2009-06-16 06:01:36 -07:00
|
|
|
AC_DEFINE(EVAS_STATIC_BUILD_[]UP, [1], [Build $1 engine inside libevas])
|
2009-07-14 14:16:08 -07:00
|
|
|
have_static_module="yes"
|
2009-06-16 06:01:36 -07:00
|
|
|
fi
|
|
|
|
|
2013-01-18 05:48:14 -08:00
|
|
|
EFL_ADD_FEATURE([EVAS_ENGINE], [$1], [${have_evas_engine_]DOWN[}])
|
|
|
|
AM_CONDITIONAL(EVAS_STATIC_BUILD_[]UP, [test "x${want_static_engine}" = "xyes"])dnl
|
|
|
|
m4_popdef([UP])dnl
|
|
|
|
m4_popdef([DOWN])dnl
|
2008-11-23 22:18:31 -08:00
|
|
|
])
|