],
[want_fb="no"])
+# SDL
+AC_ARG_ENABLE([sdl],
+ [AC_HELP_STRING([--enable-sdl],
+ [disable SDL support. @<:@default=disabled@:>@])],
+ [
+ if test "x${enableval}" = "xyes" ; then
+ want_sdl="yes"
+ else
+ want_sdl="no"
+ fi
+ ],
+ [want_sdl="no"])
+
+want_gl_sdl="no"
+if test "${want_sdl}" = "yes" && test "${with_opengl}" != "none"; then
+ want_gl_sdl="yes"
+fi
+
# Fontconfig
AC_ARG_ENABLE([fontconfig],
[AC_HELP_STRING([--disable-fontconfig],
want_evas_engine_software_ddraw="no"
want_evas_engine_gl_xlib="no"
want_evas_engine_gl_xcb="no"
-want_evas_engine_gl_sdl="no"
want_evas_engine_gl_cocoa="no"
want_evas_engine_wayland_shm="no"
want_evas_engine_wayland_egl="no"
want_evas_engine_gl_xlib="auto"
want_evas_engine_software_xcb="no"
want_evas_engine_gl_xcb="no"
- want_evas_engine_wayland_shm="auto"
- want_evas_engine_wayland_egl="auto"
;;
esac
if test "x${efl_func_dlsym}" = "xno" ; then
want_evas_engine_gl_xlib="no"
want_evas_engine_gl_xcb="no"
- want_evas_engine_gl_sdl="no"
+ want_gl_sdl="no"
fi
### Checks for programs
# XXX TODO:
EVAS_CHECK_ENGINE([gl-cocoa], [${want_evas_engine_gl_cocoa}], [no], [OpenGL Cocoa])
-EVAS_CHECK_ENGINE([gl-sdl], [${want_evas_engine_gl_sdl}], [no], [OpenGL SDL])
+EVAS_CHECK_ENGINE([gl-sdl], [${want_gl_sdl}], [no], [OpenGL SDL])
EVAS_CHECK_ENGINE([software-gdi], [${want_evas_engine_software_gdi}], [no], [Software GDI])
EVAS_CHECK_ENGINE([software-ddraw], [${want_evas_engine_software_ddraw}], [no], [Software DirectDraw])
EVAS_CHECK_ENGINE([wayland-egl], [${want_evas_engine_wayland_egl}], [no], [Wayland Egl])
want_ecore_evas_software_xcb="no"
want_ecore_evas_software_gdi="no"
want_ecore_evas_software_ddraw="no"
-want_ecore_evas_software_sdl="no"
-want_ecore_evas_gl_sdl="no"
want_ecore_evas_gl_cocoa="no"
-want_ecore_evas_fb="no"
-want_ecore_evas_ews="yes"
want_ecore_evas_extn="yes"
-want_ecore_evas_wayland_shm="no"
want_ecore_evas_wayland_egl="no"
case "$host_os" in
mingw*)
want_ecore_evas_software_gdi="yes"
want_ecore_evas_software_ddraw="yes"
- want_ecore_evas_software_sdl="yes"
- want_ecore_evas_gl_sdl="yes"
want_ecore_evas_extn="no"
;;
darwin*)
- want_ecore_evas_software_sdl="yes"
- want_ecore_evas_gl_sdl="yes"
want_ecore_evas_gl_cocoa="yes"
;;
*)
want_ecore_evas_software_x11="yes"
want_ecore_evas_opengl_x11="yes"
want_ecore_evas_software_xcb="no"
- want_ecore_evas_software_sdl="yes"
- want_ecore_evas_gl_sdl="yes"
want_ecore_evas_gl_cocoa="no"
- want_ecore_evas_fb="yes"
- want_ecore_evas_wayland_shm="yes"
- want_ecore_evas_wayland_egl="yes"
;;
esac
# XXX TODO:
ECORE_EVAS_MODULE([opengl-cocoa], [${want_ecore_evas_gl_cocoa}])
-ECORE_EVAS_MODULE([software-sdl], [${want_ecore_evas_software_sdl}])
-ECORE_EVAS_MODULE([opengl-sdl], [${want_ecore_evas_gl_sdl}])
-ECORE_EVAS_MODULE([wayland-shm], [${want_ecore_evas_wayland_shm}])
+
+ECORE_EVAS_MODULE([software-sdl], [${want_sdl}])
+ECORE_EVAS_MODULE([opengl-sdl], [${want_gl_sdl}])
+
+build_ecore_evas_sdl="no"
+if test "x${have_ecore_evas_software_sdl}" = "xyes" || \
+ test "x${have_ecore_evas_opengl_sdl}" = "xyes" ; then
+ build_ecore_evas_sdl="yes"
+ AC_DEFINE(BUILD_ECORE_EVAS_SDL, 1, [Support for SDL Engine in Ecore_Evas])
+fi
+AM_CONDITIONAL([BUILD_ECORE_EVAS_SDL],
+ [test "${build_ecore_evas_sdl}" = "yes"])
+
+ECORE_EVAS_MODULE([wayland-shm], [${want_wayland}])
+# XXX TODO want_ecore_evas_wayland_egl
ECORE_EVAS_MODULE([wayland-egl], [${want_ecore_evas_wayland_egl}])
+
+build_ecore_evas_wayland="no"
+if test "x${have_ecore_evas_wayland_shm}" = "xyes" || \
+ test "x${have_ecore_evas_wayland_egl}" = "xyes" ; then
+ build_ecore_evas_wayland="yes"
+ AC_DEFINE(BUILD_ECORE_EVAS_WAYLAND, 1, [Support for Wayland Engine in Ecore_Evas])
+fi
+AM_CONDITIONAL([BUILD_ECORE_EVAS_WAYLAND],
+ [test "${build_ecore_evas_wayland}" = "yes"])
+
ECORE_EVAS_MODULE([software-gdi], [${want_ecore_evas_software_gdi}])
ECORE_EVAS_MODULE([software-ddraw], [${want_ecore_evas_software_ddraw}])
+build_ecore_evas_win32="no"
if test "x${have_ecore_evas_software_gdi}" = "xyes" || \
test "x${have_ecore_evas_software_ddraw}" = "xyes" ; then
+ build_ecore_evas_win32="yes"
AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas])
fi
+AM_CONDITIONAL([BUILD_ECORE_EVAS_WIN32],
+ [test "${build_ecore_evas_win32}" = "yes"])
# XXX TODO: ecore_evas_extn
fi
fi
+build_ecore_evas_x11="no"
if test "x$have_ecore_evas_software_x11" = "xyes" || \
test "x$have_ecore_evas_opengl_x11" = "xyes" || \
test "x$have_ecore_evas_software_xcb" = "xyes"; then
AC_DEFINE([BUILD_ECORE_EVAS_X11], [1], [Support for X Window Engines in Ecore_Evas])
+ build_ecore_evas_x11="yes"
fi
+AM_CONDITIONAL([BUILD_ECORE_EVAS_X11], [test "${build_ecore_evas_x11}" = "yes"])
if test "x${requirements_pc_deps_ecore_evas}" = "x" ; then
ECORE_EVAS_CFLAGS=""
# Engines
-if BUILD_ENGINE_BUFFER
+if BUILD_ECORE_EVAS_BUFFER
BUFFERSOURCES = \
modules/ecore_evas/engines/buffer/ecore_evas_buffer.c \
modules/ecore_evas/engines/buffer/ecore_evas_extn.c \
modules_ecore_evas_engines_buffer_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
-if HAVE_ECORE_X
+if BUILD_ECORE_EVAS_X11
XSOURCES = modules/ecore_evas/engines/x/ecore_evas_x.c
ecoreevasenginexpkgdir = $(libdir)/ecore_evas/engines/x/$(MODULE_ARCH)
ecoreevasenginexpkg_LTLIBRARIES = modules/ecore_evas/engines/x/module.la
modules_ecore_evas_engines_x_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
-if HAVE_ECORE_COCOA
+if BUILD_ECORE_EVAS_OPENGL_COCOA
COCOASOURCES = modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
ecoreevasenginecocoapkgdir = $(libdir)/ecore_evas/engines/cocoa/$(MODULE_ARCH)
ecoreevasenginecocoapkg_LTLIBRARIES = modules/ecore_evas/engines/cocoa/module.la
modules_ecore_evas_engines_cocoa_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
-if HAVE_ECORE_FB
+if BUILD_ECORE_EVAS_FB
FBSOURCES = modules/ecore_evas/engines/fb/ecore_evas_fb.c
ecoreevasenginefbpkgdir = $(libdir)/ecore_evas/engines/fb/$(MODULE_ARCH)
ecoreevasenginefbpkg_LTLIBRARIES = modules/ecore_evas/engines/fb/module.la
modules_ecore_evas_engines_fb_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
-if HAVE_PS3
+if BUILD_ECORE_EVAS_PSL1GHT
PSL1GHTSOURCES = modules/ecore_evas/engines/psl1ght/ecore_evas_psl1ght.c
ecoreevasenginepsl1ghtpkgdir = $(libdir)/ecore_evas/engines/psl1ght/$(MODULE_ARCH)
ecoreevasenginepsl1ghtpkg_LTLIBRARIES = modules/ecore_evas/engines/psl1ght/module.la
modules_ecore_evas_engines_psl1ght_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
-if HAVE_ECORE_WAYLAND
+if BUILD_ECORE_EVAS_WAYLAND
WAYLANDSOURCES = \
modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c \
modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c \
modules_ecore_evas_engines_wayland_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
-if HAVE_ECORE_SDL
+if BUILD_ECORE_EVAS_SDL
SDLSOURCES = \
modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
ecoreevasenginesdlpkgdir = $(libdir)/ecore_evas/engines/sdl/$(MODULE_ARCH)
modules_ecore_evas_engines_sdl_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
-if HAVE_WIN32
+if BUILD_ECORE_EVAS_WIN32
WIN32SOURCES = \
modules/ecore_evas/engines/win32/ecore_evas_win32.c
ecoreevasengineswin32pkgdir = $(libdir)/ecore_evas/engines/win32/$(MODULE_ARCH)