1 m4_define([wlmessage_version], 0.1)
6 [https://bugs.tizen.org/],
8 [http://www.tizen.org/])
10 AC_SUBST([WLMESSAGE_VERSION], [wlmessage_version])
12 AC_CONFIG_AUX_DIR([build-aux])
14 AC_USE_SYSTEM_EXTENSIONS
17 AM_INIT_AUTOMAKE([1.11 parallel-tests foreign no-dist-gzip dist-xz color-tests subdir-objects])
19 AM_SILENT_RULES([yes])
27 LT_INIT([disable-static])
31 AC_CHECK_FUNC([dlopen], [],
32 AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
35 AC_CHECK_FUNCS([mkostemp strchrnul initgroups posix_fallocate])
37 AC_ARG_ENABLE(egl, [ --disable-egl],,
39 AM_CONDITIONAL(ENABLE_EGL, test x$enable_egl = xyes)
40 if test x$enable_egl = xyes; then
41 AC_DEFINE([ENABLE_EGL], [1], [Build with EGL support])
42 PKG_CHECK_MODULES(EGL, [egl >= 7.10 glesv2])
46 AS_HELP_STRING([--with-cairo=@<:@image|glesv2@:>@]
47 [Which Cairo renderer to use for the clients]),
48 [],[with_cairo="image"])
50 if test "x$with_cairo" = "ximage"; then
53 if test "x$with_cairo" = "xglesv2"; then
54 cairo_modules="cairo-glesv2"
56 AC_ERROR([Unknown cairo renderer requested])
60 # Included for legacy compat
61 AC_ARG_WITH(cairo-glesv2,
62 AS_HELP_STRING([--with-cairo-glesv2],
64 if test "x$with_cairo_glesv2" = "xyes"; then
65 cairo_modules="cairo-glesv2"
69 if test "x$cairo_modules" = "xcairo-glesv2"; then
70 AC_DEFINE([USE_CAIRO_GLESV2], [1], [Use the GLESv2 GL cairo backend])
73 PKG_CHECK_MODULES(PIXMAN, [pixman-1])
74 PKG_CHECK_MODULES(PNG, [libpng])
76 AC_CHECK_LIB([jpeg], [jpeg_CreateDecompress], have_jpeglib=yes)
77 if test x$have_jpeglib = xyes; then
80 AC_ERROR([libjpeg not found])
84 PKG_CHECK_MODULES(GLIB, [glib-2.0 gio-2.0])
86 PKG_CHECK_MODULES(CLIENT, [wayland-client cairo >= 1.10.0 xkbcommon wayland-cursor])
88 # Only check for cairo-egl if a GL or GLES renderer requested
89 AS_IF([test "x$cairo_modules" = "xcairo-glesv2"], [
90 PKG_CHECK_MODULES(CAIRO_EGL, [wayland-egl egl >= 7.10 cairo-egl >= 1.11.3 $cairo_modules],
91 [have_cairo_egl=yes], [have_cairo_egl=no])
92 AS_IF([test "x$have_cairo_egl" = "xyes"],
93 [AC_DEFINE([HAVE_CAIRO_EGL], [1], [Have cairo-egl])],
94 [AC_ERROR([cairo-egl not used because $CAIRO_EGL_PKG_ERRORS])])],
97 AM_CONDITIONAL(HAVE_CAIRO_GLESV2,
98 [test "x$have_cairo_egl" = "xyes" -a "x$cairo_modules" = "xcairo-glesv2" -a "x$enable_egl" = "xyes"])
100 AC_CONFIG_FILES([Makefile libwlmessage.pc])
105 libxkbcommon ${enable_xkbcommon}