>From 289ef1814bd8b0f1fb461bbc8a572dd484c82529 Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <komh@chollian.net>
Date: Tue, 12 Nov 2013 23:55:03 +0900
Subject: [PATCH 1/3] configure: add an option to disable opengl support

---
 configure.ac |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5f7ed24..938cdbf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2952,6 +2952,11 @@ PKG_CHECK_MODULES([EGL], [egl], [
 ])
 AM_CONDITIONAL([HAVE_EGL], [test "${have_egl}" = "yes"])
 
+AC_ARG_ENABLE(gl,
+  [AS_HELP_STRING([--disable-gl],
+    [disable OpenGL support(default enabled)])])
+have_gl="no"
+AS_IF([test "${enable_gl}" != "no"], [
 PKG_CHECK_MODULES([GL], [gl], [
   have_gl="yes"
 ], [
@@ -2971,6 +2976,7 @@ PKG_CHECK_MODULES([GL], [gl], [
     have_gl="no"
   ])
 ])
+])
 AM_CONDITIONAL([HAVE_GL], [test "${have_gl}" = "yes"])
 
 dnl OpenGL ES 2: depends on EGL 1.1
-- 
1.7.3.2

