Use the EGL pkgconfig for finding eglplatform.h.

We don't ever explicity link against libEGL, so no need to make use of
EGL_LIBS.

Fixes #30.
macos/v1.5.9
Eric Anholt 11 years ago
parent 27298ee31b
commit d56f21c494
  1. 1
      configure.ac
  2. 1
      src/Makefile.am
  3. 4
      test/Makefile.am

@ -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

@ -28,6 +28,7 @@ AM_CFLAGS = \
$(CWARNFLAGS) \
$(VISIBILITY_CFLAGS) \
$(X11_CFLAGS) \
$(EGL_CFLAGS) \
$()
epoxyincludedir = $(includedir)/epoxy

@ -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)

Loading…
Cancel
Save