[vlc-commits] configure: fix shell syntax (fixes #9571)

Rémi Denis-Courmont git at videolan.org
Fri Jan 10 17:12:09 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jan 10 18:11:17 2014 +0200| [25c43a8af0ed9da74bd532b24448e4d5247e3cd0] | committer: Rémi Denis-Courmont

configure: fix shell syntax (fixes #9571)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25c43a8af0ed9da74bd532b24448e4d5247e3cd0
---

 configure.ac |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7d0a8ab..8c4647e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2987,16 +2987,17 @@ PKG_CHECK_MODULES([GL], [gl], [
     [#include <GL/gl.h>]], [
     [int t0 = GL_TEXTURE0;]])
   ], [
-    have_gl="yes"
     GL_CFLAGS=""
-    AS_IF([test "${SYS}" = "mingw32"], [
+    AS_IF([test "${SYS}" != "mingw32"], [
+      have_gl="yes"
+      GL_LIBS="-lGL"
+    ], [
       AC_CHECK_HEADER([GL/glew.h], [
+        have_gl="yes"
       ], [
         have_gl="no"
       ])
       GL_LIBS="-lopengl32"
-    ], [
-      GL_LIBS="-lGL"
     ])
   ], [
     have_gl="no"



More information about the vlc-commits mailing list