diff options
author | Eric Anholt <eric@anholt.net> | 2010-03-23 15:29:56 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-05-20 12:09:59 -0700 |
commit | a5cc1ec74924ef614129ae477fe4aa738e1c09af (patch) | |
tree | 75ab87c8cf488cb0a93b116c3285966518c5fce2 /configure.ac | |
parent | 02713b9a62b27d6aa457679b315bcd59e7d530c1 (diff) | |
download | mesa-demos-a5cc1ec74924ef614129ae477fe4aa738e1c09af.zip mesa-demos-a5cc1ec74924ef614129ae477fe4aa738e1c09af.tar.xz |
egl/opengles*: add part of a build system.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b7b9015..05615e0 100644 --- a/configure.ac +++ b/configure.ac @@ -88,6 +88,31 @@ AC_CHECK_LIB([GLEW], DEMO_CFLAGS="$DEMO_CFLAGS $GLEW_CFLAGS" DEMO_LIBS="$DEMO_CFLAGS $GLEW_LIBS" +dnl Check for EGL +EGL_CFLAGS="" +EGL_LIBS=-lEGL +egl_enabled=yes +AC_ARG_WITH([egl], + [AS_HELP_STRING([--with-egl=DIR], + [EGL install directory])], + [EGL_CFLAGS="-I$withval/include" + EGL_LIBS="-L$withval/lib -lEGL"]) +AC_CHECK_HEADER([EGL/egl.h], + [], + [egl_enabled=no]) +AC_CHECK_LIB([EGL], + [eglGetDisplay], + [], + [egl_enabled=no]) + +dnl Finish adding detection for GLES. +glesv1_enabled=no +GLESV1_CFLAGS="" +GLESV1_LIBS="" +glesv2_enabled=no +GLESV2_CFLAGS="" +GLESV2_LIBS="" + dnl Compiler macros case "$host_os" in linux*|*-gnu*|gnu*) @@ -160,12 +185,21 @@ AC_SUBST([APP_LIB_DEPS]) AC_SUBST([DEMO_CFLAGS]) AC_SUBST([DEMO_LIBS]) +AC_SUBST([EGL_CFLAGS]) +AC_SUBST([EGL_LIBS]) +AC_SUBST([GLESV1_CFLAGS]) +AC_SUBST([GLESV1_LIBS]) +AC_SUBST([GLESV2_CFLAGS]) +AC_SUBST([GLESV2_LIBS]) AC_SUBST([GLUT_CFLAGS]) AC_SUBST([GLUT_LIBS]) AC_SUBST([X11_CFLAGS]) AC_SUBST([X11_LIBS]) AC_SUBST([MESA_GLAPI]) +AM_CONDITIONAL(HAVE_EGL, test "x$egl_enabled" = "xyes") +AM_CONDITIONAL(HAVE_GLESV1, test "x$glesv1_enabled" = "xyes") +AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes") AM_CONDITIONAL(HAVE_GLUT, test "x$glut_enabled" = "xyes") AM_CONDITIONAL(HAVE_X11, test "x$x11_enabled" = "xyes") AM_CONDITIONAL(BUILD_GLTRACE, false) @@ -175,6 +209,9 @@ AC_OUTPUT([ Makefile src/Makefile src/demos/Makefile + src/egl/Makefile + src/egl/opengles1/Makefile + src/egl/opengles2/Makefile src/fp/Makefile src/fpglsl/Makefile src/glsl/Makefile |