diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2012-05-10 13:03:16 +0800 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-06-28 10:45:38 +0200 |
commit | 6dacc6de3e75b87bea3a244ac8c2c757c1bbb39a (patch) | |
tree | 5ad97fa27ac9bbd77dc3839a5e6f033a295980e8 | |
parent | 0a29a454b0569073f64d0af5bf7a4324e7295c86 (diff) |
Fix regression caused by 027a1298c22aeecc2fee2d270cd86790530892f6
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.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 737e699..5969c5a 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" fi |