summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2012-01-06 14:55:20 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-01-10 14:30:33 +0800
commitc005e80fe21936f2b20ba1f19227d2cc339661ac (patch)
treefdc57fd0945965b49c8bfdbc236c1771d4cdf5c6
parent2a4fcffc95a456798ed6f1b689cc43e7bd3f66a2 (diff)
Don't build the EGL test case without GLESv1_CM
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--configure.ac3
-rw-r--r--test/Makefile.am2
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 52f27fc..3ccdcbe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -202,10 +202,13 @@ if test "$enable_egl" = "yes"; then
USE_EGL="yes"
EGL_DEPS_LIBS="-lEGL"
])
+
+ PKG_CHECK_MODULES([GLESv1_CM], [glesv1_cm], [libglesv1_cm=yes], [libglesv1_cm=no])
fi
AC_SUBST(EGL_DEPS_CFLAGS)
AC_SUBST(EGL_DEPS_LIBS)
AM_CONDITIONAL(USE_EGL, test "$USE_EGL" = "yes")
+AM_CONDITIONAL(BUILD_EGL_TEST, test x$libglesv1_cm = xyes)
# We only need the headers, we don't link against the DRM libraries
LIBVA_CFLAGS="$DRM_CFLAGS"
diff --git a/test/Makefile.am b/test/Makefile.am
index 79a0589..1c1939b 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -25,7 +25,7 @@ AM_CFLAGS = -I$(top_srcdir)/va -I$(top_srcdir)/test/basic -I$(top_srcdir)/src/x1
SUBDIRS = basic decode encode putsurface vainfo
-if USE_EGL
+if BUILD_EGL_TEST
SUBDIRS += egl
endif