summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2014-08-22 00:47:19 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-08-22 18:28:59 +0200
commit281bbd90fdb3942922e931bcd7f364e9204a1488 (patch)
tree074a1b46d3b0c439d885a2f9ddc2c0773ff0b587 /configure.ac
parentec0863e6ed1cab8c32e4f9e178614a62dd7d09be (diff)
move to use Ecore and Ecore_Evas.
Diffstat (limited to '')
-rw-r--r--configure.ac164
1 files changed, 2 insertions, 162 deletions
diff --git a/configure.ac b/configure.ac
index 43b52a8..bccd4ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,86 +16,6 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
16PKG_PROG_PKG_CONFIG 16PKG_PROG_PKG_CONFIG
17 17
18 18
19### Additional options to configure
20
21## Simple X11 build/link
22
23## Evas engines
24
25AC_ARG_ENABLE(simple-x11,
26 [AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking])],
27 [want_evas_simple_x11=$enableval]
28)
29
30# Software X11
31have_software_xlib="no"
32have_software_xcb="no"
33EXPEDITE_CHECK_ENGINE([software-x11], [Software X11], "yes")
34
35if test "x${have_software_x11}" = "xyes" ; then
36 have_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11`
37 if test "x${have_software_xlib}" = "xstatic" ; then
38 have_software_xlib="yes"
39 fi
40 if test "x${have_software_xlib}" = "xyes" ; then
41 AC_DEFINE(HAVE_EVAS_SOFTWARE_XLIB, 1, [Evas Software Xlib Engine Support])
42 fi
43 have_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11`
44 if test "x${have_software_xcb}" = "xstatic" ; then
45 have_software_xcb="yes"
46 fi
47 if test "x${have_software_xcb}" = "xyes" ; then
48 AC_DEFINE(HAVE_EVAS_SOFTWARE_XCB, 1, [Evas Software XCB Engine Support])
49 fi
50fi
51
52AM_CONDITIONAL([BUILD_SOFTWARE_XLIB], [test "x${have_software_xlib}" = "xyes"])
53AM_CONDITIONAL([BUILD_SOFTWARE_XCB], [test "x${have_software_xcb}" = "xyes"])
54
55# XRender X11
56EXPEDITE_CHECK_ENGINE([xrender-x11], [XRender X11], "yes")
57
58# OpenGL X11
59EXPEDITE_CHECK_ENGINE([opengl-x11], [OpenGL X11], "yes")
60
61# XRender XCB
62EXPEDITE_CHECK_ENGINE([xrender-xcb], [XRender XCB], "yes")
63
64# GDI
65EXPEDITE_CHECK_ENGINE([software-gdi], [Software GDI], "yes", [gdi_libs="-lgdi32"])
66AC_SUBST(gdi_libs)
67
68# DirectDraw
69EXPEDITE_CHECK_ENGINE([software-ddraw], [Software DirectDraw], "yes", [ddraw_libs="-lddraw -ldxguid -lgdi32"])
70AC_SUBST(ddraw_libs)
71
72# Direct3D
73EXPEDITE_CHECK_ENGINE([direct3d], [Direct3D], "yes", [d3d_libs="-ld3d9 -ld3dx9d -lgdi32"])
74AC_SUBST(d3d_libs)
75
76# PSL1GHT
77EXPEDITE_CHECK_ENGINE([psl1ght], [PSL1GHT], "yes")
78
79# GL SDL
80EXPEDITE_CHECK_ENGINE([opengl-sdl], [OpenGL SDL], "yes")
81
82# FB
83EXPEDITE_CHECK_ENGINE([fb], [Framebuffer], "yes")
84
85# DIRECTFB
86EXPEDITE_CHECK_ENGINE([directfb], [DirectFB], "yes")
87
88# GL Cocoa
89EXPEDITE_CHECK_ENGINE([opengl-cocoa], [OpenGL Cocoa], "yes", [gl_cocoa_libs="-framework Cocoa"])
90AC_SUBST(gl_cocoa_libs)
91
92# 16bit WinCE
93EXPEDITE_CHECK_ENGINE([software-16-wince], [Software 16 bits WinCE], "yes", [wince_16_libs="-laygshell"])
94AC_SUBST(wince_16_libs)
95
96# DRM
97EXPEDITE_CHECK_ENGINE([drm], [Drm], "no")
98
99### Checks for programs 19### Checks for programs
100 20
101AC_ISC_POSIX 21AC_ISC_POSIX
@@ -128,74 +48,13 @@ case "$host_os" in
128 ;; 48 ;;
129esac 49esac
130 50
131# Eina 51# EFL dependencies
132 52
133PKG_CHECK_MODULES([EINA], eina >= 1.7.99 eo >= 1.7.99) 53PKG_CHECK_MODULES([EFL], eina >= 1.7.99 eo >= 1.7.99 evas >= 1.7.99 eet >= 1.7.99 ecore-evas >= 1.7.99 ecore >= 1.7.99)
134 54
135EFL_ENABLE_EO_API_SUPPORT 55EFL_ENABLE_EO_API_SUPPORT
136EFL_ENABLE_BETA_API_SUPPORT 56EFL_ENABLE_BETA_API_SUPPORT
137 57
138# Evas
139
140PKG_CHECK_MODULES([EVAS], evas >= 1.7.99 eet >= 1.7.99)
141
142# Xlib
143
144if test "x$have_software_xlib" = "xyes" -o "x$have_xrender_x11" = "xyes" -o "x$have_opengl_x11" = "xyes"; then
145 AC_PATH_XTRA
146 AC_CHECK_HEADERS([X11/Xlib.h X11/Xutil.h],
147 [have_xlib="yes"],
148 [have_xlib="no"])
149 if test "x$want_evas_simple_x11" = "xyes"; then
150 x_libs="${x_libs} -lX11"
151 else
152 x_dir=${x_dir:-/usr/X11R6}
153 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
154 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11"
155 fi
156fi
157AM_CONDITIONAL(BUILD_X11, [test "x$have_xlib" = "xyes"])
158
159AC_SUBST(x_cflags)
160AC_SUBST(x_libs)
161
162# XCB
163
164if test "x$have_software_xcb" = "xyes"; then
165 PKG_CHECK_MODULES([XCB], [xcb xcb-keysyms], [have_xcb="yes"], [have_xcb="no"])
166fi
167AM_CONDITIONAL(BUILD_XCB, test "x$have_xcb" = "xyes")
168if test "x$have_xcb" = "xyes"; then
169 AC_DEFINE(BUILD_XCB, 1, [build xcb support])
170fi
171
172# SDL
173
174PKG_CHECK_MODULES([SDL], [sdl], [have_sdl="yes"], [have_sdl="no"])
175AM_CONDITIONAL(BUILD_SDL, test "x$have_sdl" = "xyes")
176if test "x$have_sdl" = "xyes"; then
177 AC_DEFINE(BUILD_SDL, 1, [build sdl support])
178fi
179
180# PSL1GHT
181AM_CONDITIONAL(BUILD_PSL1GHT, test "x$have_psl1ght" = "xyes")
182
183# DirectFB
184
185if test "x$have_directfb" = "xyes"; then
186 PKG_CHECK_MODULES([DIRECTFB], [directfb], [have_directfb="yes"], [have_directfb="no"])
187fi
188AM_CONDITIONAL(BUILD_DIRECTFB, test "x$have_directfb" = "xyes")
189
190# Wayland
191EXPEDITE_CHECK_ENGINE([wayland-shm], [Wayland SHM], "no")
192EXPEDITE_CHECK_ENGINE([wayland-egl], [Wayland EGL], "no")
193
194have_wl="no"
195if test "x$have_wayland_shm" = "xyes" -o "x$have_wayland_egl" = "xyes"; then
196 PKG_CHECK_MODULES([WAYLAND_CLIENT], [wayland-client], [have_wl="yes"], [have_wl="no"])
197fi
198AM_CONDITIONAL(BUILD_WAYLAND, test "x$have_wl" = "xyes")
199 58
200### Checks for header files 59### Checks for header files
201 60
@@ -266,25 +125,6 @@ data/Makefile
266echo 125echo
267echo " $PACKAGE $VERSION" 126echo " $PACKAGE $VERSION"
268echo 127echo
269echo " Engines:"
270echo " Software X11.................: ${have_software_x11} (Xlib: ${have_software_xlib}) (XCB: ${have_software_xcb})"
271echo " X Render X11.................: ${have_xrender_x11}"
272echo " Open GL X11..................: ${have_opengl_x11}"
273echo " X Render XCB.................: ${have_xrender_xcb}"
274echo " Software GDI.................: ${have_software_gdi}"
275echo " Software DirectDraw..........: ${have_software_ddraw}"
276echo " Direct3D.....................: ${have_direct3d}"
277echo " Software SDL.................: ${have_software_sdl}"
278echo " Open GL SDL..................: ${have_opengl_sdl}"
279echo " Open GL Cocoa................: ${have_opengl_cocoa}"
280echo " FB...........................: ${have_fb}"
281echo " DirectFB.....................: ${have_directfb}"
282echo " PSL1GHT......................: ${have_psl1ght}"
283echo " Software WinCE 16 bits.......: ${have_software_16_wince}"
284echo " Wayland EGL..................: ${have_wayland_egl}"
285echo " Wayland SHM..................: ${have_wayland_shm}"
286echo " DRM..........................: ${have_drm}"
287echo
288echo " Installation:" 128echo " Installation:"
289echo " prefix.......................: ${prefix}" 129echo " prefix.......................: ${prefix}"
290echo 130echo