Skip to content

Commit

Permalink
build: autotools: don't check for EGL
Browse files Browse the repository at this point in the history
libEGL is loaded in run-time using dlopen, thus there is no need to
check for it at comiplation time.
  • Loading branch information
ceyusa authored and xhaihao committed Feb 11, 2018
1 parent 1e066ea commit cfe1584
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -156,25 +156,6 @@ fi
AC_MSG_RESULT([$LIBVA_DRIVERS_PATH])
AC_SUBST(LIBVA_DRIVERS_PATH)

# Check for EGL
if test "$enable_wayland" = "yes"; then
enable_egl="yes"
fi

USE_EGL="no"
if test "$enable_egl" = "yes"; then
PKG_CHECK_MODULES([EGL], [egl], [USE_EGL="yes"], [USE_EGL="no"])
saved_CPPFLAGS="$CPPFLAGS"
saved_LIBS="$LIBS"
CPPFLAGS="$CPPFLAGS $EGL_CFLAGS"
LIBS="$LIBS $EGL_LIBS"
AC_CHECK_HEADERS([EGL/egl.h], [:], [USE_EGL="no"])
AC_CHECK_LIB([EGL], [eglGetDisplay], [:], [USE_EGL="no"])
CPPFLAGS="$saved_CPPFLAGS"
LIBS="$saved_LIBS"
fi
AM_CONDITIONAL(USE_EGL, test "$USE_EGL" = "yes")

# Check for Wayland
USE_WAYLAND="no"
if test "$enable_wayland" = "yes"; then
Expand Down

0 comments on commit cfe1584

Please sign in to comment.