gl/build: fix configure when --enable-cocoa is passed on OS X
authorMatthew Waters <matthew@centricular.com>
Fri, 8 Jul 2016 09:03:06 +0000 (19:03 +1000)
committerMatthew Waters <matthew@centricular.com>
Mon, 11 Jul 2016 01:29:07 +0000 (11:29 +1000)
https://bugzilla.gnome.org/show_bug.cgi?id=768553

configure.ac

index 573d3bd..4ca9aaa 100644 (file)
@@ -789,6 +789,17 @@ case $host in
     CFLAGS=$old_CFLAGS
 
     PKG_CHECK_MODULES(WAYLAND_EGL, wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0, HAVE_WAYLAND_EGL=yes, HAVE_WAYLAND_EGL=no)
+
+    # OS X and iOS always have GL available
+    case $host in
+      *-darwin*)
+        if test "x$HAVE_IOS" = "xyes"; then
+          HAVE_GLES2=yes
+        else
+          HAVE_GL=yes
+        fi
+      ;;
+    esac
   ;;
 esac