summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2012-05-10 13:03:16 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-05-10 13:33:40 +0800
commitb5407cfc0dd8d98b9e9fef314171fdf9cc23011f (patch)
tree1ca998b1dc8fe61410572f1df8be96e939224362
parentaa8d1caa96eb2f83f4e24d7a7f400a675f6611d0 (diff)
VA/EGL depends on EGL/egl.h, so checking for eglGetDisplay in -lEGL doesn't mean it could be compiled or not. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index ba371d6..0202ec9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -206,8 +206,12 @@ if test "$enable_egl" = "yes"; then
PKG_CHECK_MODULES([EGL_DEPS], [egl], [], [EGL_DEPS_LIBS="-lEGL"])
CFLAGS="$CFLAGS $EGL_DEPS_CFLAGS"
LIBS="$LIBS $EGL_DEPS_LIBS"
- AC_CHECK_HEADERS([EGL/egl.h])
- AC_CHECK_LIB(EGL, eglGetDisplay, [USE_EGL="yes"])
+ AC_CHECK_HEADERS([EGL/egl.h], [USE_EGL="yes"], [USE_EGL="no"])
+
+ if test "x$USE_EGL" = "xyes"; then
+ AC_CHECK_LIB(EGL, eglGetDisplay, [USE_EGL="yes"], [USE_EGL="no"])
+ fi
+
CFLAGS="$saved_CFLAGS"
LIBS="$saved_LIBS"