]> git.sesse.net Git - vlc/commitdiff
Fix configure for Win32 on OpenGL detection
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 30 Sep 2011 08:42:17 +0000 (10:42 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 30 Sep 2011 08:42:17 +0000 (10:42 +0200)
glwin32 should be back

configure.ac

index 0f3a3290ee01256ff927b0f66d92e5e01fcb78ca..f703f92804c509d9ee0772d3efb6d540b837fd29 100644 (file)
@@ -3271,20 +3271,24 @@ fi
 
 AC_ARG_ENABLE(directx,
   [  --enable-directx        Win32 DirectX support (default enabled on Win32)])
-if test "${enable_directx}" != "no"
-then
-  if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"
-  then
-      VLC_ADD_LIBS([directx],[-luser32])
+if test "${enable_directx}" != "no"; then
+  if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"; then
+      dnl DDraw
       AC_CHECK_HEADERS(ddraw.h,
       [ VLC_ADD_PLUGIN([directx aout_directx])
-        VLC_ADD_LIBS([directx],[-lgdi32])
+        VLC_ADD_LIBS([directx],[-luser32 -lgdi32])
       ],[AC_MSG_ERROR([Cannot find DirectX headers!])]
       )
+
+      dnl OpenGL
       AC_CHECK_HEADERS(GL/glext.h,
       [ VLC_ADD_PLUGIN([glwin32])
         VLC_ADD_LIBS([glwin32],[-lopengl32 -lgdi32])
+      ],[],[
+        #include <GL/gl.h>
       ])
+
+      dnl Direct3D
       AC_CHECK_HEADERS(d3d9.h,
       [ VLC_ADD_PLUGIN([direct3d])
         VLC_ADD_LIBS([direct3d],[-lgdi32])