Ignore:
Timestamp:
Feb 22, 2011, 2:17:45 AM (9 years ago)
Author:
sam
Message:

Add preliminary support for EGL applications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r680 r682  
    131131
    132132
     133dnl Use EGL?
     134ac_cv_my_have_egl="no"
     135PKG_CHECK_MODULES(EGL, egl, [ac_cv_my_have_egl="yes"], [:])
     136if test "${ac_cv_my_have_egl}" != "no"; then
     137  AC_DEFINE(USE_EGL, 1, Define to 1 to use libegl)
     138  EGL_LIBS="${EGL_LIBS} -lX11"
     139fi
     140AM_CONDITIONAL(USE_EGL, test "${ac_cv_my_have_egl}" != "no")
     141
     142
    133143dnl Use libcaca? (required for font generation)
    134144ac_cv_my_have_caca="no"
     
    165175
    166176# How to use the Lol Engine inside this tree
    167 LOL_CFLAGS="$LOL_CFLAGS -I \$(top_srcdir)/src $SDL_CFLAGS"
    168 LOL_LIBS="$LOL_LIBS $SDL_LIBS"
     177LOL_CFLAGS="$LOL_CFLAGS -I \$(top_srcdir)/src $SDL_CFLAGS $EGL_CFLAGS"
     178LOL_LIBS="$LOL_LIBS $SDL_LIBS $EGL_LIBS"
    169179
    170180AC_SUBST(MATH_LIBS)
Note: See TracChangeset for help on using the changeset viewer.