From 5a322df4da3102ae0c8d3bc3071386dc5f21e580 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Oct 2012 02:24:54 +0300 Subject: Add OpenGL support for Android builds (partially). --- configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a4e9f68f0..512f42dfa 100755 --- a/configure.ac +++ b/configure.ac @@ -152,8 +152,13 @@ if test "x$with_opengl" == "xno"; then else with_opengl=yes if test "x$applebuild_enabled" == "xfalse"; then - AC_CHECK_LIB([GL], [glBegin], , - AC_MSG_ERROR([ *** Unable to find OpenGL library])) + + if test "x$androidbuild_enabled" == "xfalse"; then + AC_CHECK_LIB([GL], [glBegin], , + AC_MSG_ERROR([ *** Unable to find OpenGL library])) + else + LDFLAGS="$LDFLAGS -lGLESv2 -lEGL" + fi else LDFLAGS="$LDFLAGS -framework OpenGL" fi -- cgit v1.2.3-60-g2f50