[vlc-devel] [PATCH 1/2] configure: add an option to disable opengl support

Jean-Baptiste Kempf jb at videolan.org
Mon Dec 9 10:51:05 CET 2013


Why do you need that?

On 03 Dec, KO Myung-Hun wrote :
> Ping ?
> 
> KO Myung-Hun wrote:
> > ---
> >  configure.ac |   34 ++++++++++++++++++++++------------
> >  1 files changed, 22 insertions(+), 12 deletions(-)
> > 
> > diff --git a/configure.ac b/configure.ac
> > index 5f7ed24..8379e66 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -2952,23 +2952,33 @@ PKG_CHECK_MODULES([EGL], [egl], [
> >  ])
> >  AM_CONDITIONAL([HAVE_EGL], [test "${have_egl}" = "yes"])
> >  
> > -PKG_CHECK_MODULES([GL], [gl], [
> > -  have_gl="yes"
> > -], [
> > -  AC_CHECK_HEADER([GL/gl.h], [
> > +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"
> > -    GL_CFLAGS=""
> > -    AS_IF([test "${SYS}" = "mingw32"], [
> > -      AC_CHECK_HEADER([GL/glew.h], [
> > +  ], [
> > +    AC_CHECK_HEADER([GL/gl.h], [
> > +      have_gl="yes"
> > +      GL_CFLAGS=""
> > +      AS_IF([test "${SYS}" = "mingw32"], [
> > +        AC_CHECK_HEADER([GL/glew.h], [
> > +        ], [
> > +          have_gl="no"
> > +        ])
> > +        GL_LIBS="-lopengl32"
> >        ], [
> > -        have_gl="no"
> > +        AS_IF([test "${SYS}" = "os2"], [
> > +          have_gl="no"
> > +        ], [
> > +          GL_LIBS="-lGL"
> > +        ])
> >        ])
> > -      GL_LIBS="-lopengl32"
> >      ], [
> > -      GL_LIBS="-lGL"
> > +      have_gl="no"
> >      ])
> > -  ], [
> > -    have_gl="no"
> >    ])
> >  ])
> >  AM_CONDITIONAL([HAVE_GL], [test "${have_gl}" = "yes"])
> 
> -- 
> KO Myung-Hun
> 
> Using Mozilla SeaMonkey 2.7.2
> Under OS/2 Warp 4 for Korean with FixPak #15
> In VirtualBox v4.1.28 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
> 
> Korean OS/2 User Community : http://www.ecomstation.co.kr
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list