diff --git a/configure.ac b/configure.ac index 399e351..f97c9b0 100644 --- a/configure.ac +++ b/configure.ac @@ -98,6 +98,7 @@ AC_SUBST(EPOXY_LINK_LIBS) AM_CONDITIONAL(BUILD_EGL, test x$build_egl = xyes) if test x$build_egl = xyes; then + PKG_CHECK_MODULES(EGL, [egl]) AC_DEFINE([BUILD_EGL], [1], [build EGL tests]) fi diff --git a/src/Makefile.am b/src/Makefile.am index 8e20cd6..49c3507 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -28,6 +28,7 @@ AM_CFLAGS = \ $(CWARNFLAGS) \ $(VISIBILITY_CFLAGS) \ $(X11_CFLAGS) \ + $(EGL_CFLAGS) \ $() epoxyincludedir = $(includedir)/epoxy diff --git a/test/Makefile.am b/test/Makefile.am index ffb330e..f29baca 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -46,7 +46,9 @@ libwgl_common_la_LIBADD = $(EPOXY) AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ - $(X11_CFLAGS) + $(X11_CFLAGS) \ + $(EGL_CFLAGS) \ + $() AM_CFLAGS = $(CWARNFLAGS)