projects
/
profile
/
ivi
/
libva.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a29a45
)
Fix regression caused by 027a1298c22aeecc2fee2d270cd86790530892f6
author
Xiang, Haihao
<haihao.xiang@intel.com>
Thu, 10 May 2012 05:03:16 +0000
(13:03 +0800)
committer
Gwenole Beauchesne
<gwenole.beauchesne@intel.com>
Thu, 28 Jun 2012 08:45:38 +0000
(10:45 +0200)
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>
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
737e699
..
5969c5a
100644
(file)
--- 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