Fix EGL build issue when no X11 headers are available 56/20156/2
authorMikko Ylinen <mikko.ylinen@intel.com>
Tue, 13 May 2014 08:11:30 +0000 (11:11 +0300)
committerMikko Ylinen <mikko.ylinen@intel.com>
Tue, 13 May 2014 08:11:30 +0000 (11:11 +0300)
Change-Id: I48ae00e3e929e8a5bb065a7b6a8d93f3c0cd3d51
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
configure.ac
packaging/ico-uxf-homescreen.spec

index 1c61071..cf5cdd0 100644 (file)
@@ -28,6 +28,7 @@ AC_CHECK_LIB([aul], [aul_app_get_appid_bypid], AUL_LIBS="-laul")
 AC_SUBST(AUL_LIBS)
 
 # libraries for common.
+PKG_CHECK_MODULES([EGL], [egl])
 PKG_CHECK_MODULES([EINA], [eina])
 PKG_CHECK_MODULES([EVAS], [evas])
 PKG_CHECK_MODULES([ECORE], [ecore])
@@ -95,6 +96,9 @@ AC_SUBST(WL_LIBS)
 WESTONPLUGIN_LIBS="-lico-uxf-weston-plugin"
 AC_SUBST(WESTONPLUGIN_LIBS)
 
+CFLAGS="$CFLAGS $EGL_CFLAGS"
+AC_SUBST(CFLAGS)
+
 if test "x$GCC" = "xyes"; then
     my_common_gcc_flags="-Wall -Wextra -Wno-unused-parameter \
         -Wno-missing-field-initializers -g -fvisibility=hidden"
index 738a3a5..b550498 100644 (file)
@@ -9,6 +9,7 @@ Source0:    %{name}-%{version}.tar.bz2
 
 BuildRequires: pkgconfig(wayland-client) >= 1.4
 BuildRequires: ico-uxf-weston-plugin-devel >= 0.9.21
+BuildRequires: pkgconfig(egl)
 BuildRequires: pkgconfig(glib-2.0)
 BuildRequires: pkgconfig(ecore)
 BuildRequires: pkgconfig(ecore-wayland)