autoconf: st/vega requires --enable-openvg.
authorChia-I Wu <olv@lunarg.com>
Sat, 30 Oct 2010 06:26:01 +0000 (14:26 +0800)
committerChia-I Wu <olv@lunarg.com>
Sat, 30 Oct 2010 06:41:17 +0000 (14:41 +0800)
Make it a warning for now to smooth the transition.

configure.ac

index 860ea21ca756f7a3651de4fa404194ab6b99600f..53f938c7028825d2c468bbb5a4bc9a1be59ea626 100644 (file)
@@ -493,6 +493,16 @@ AC_ARG_ENABLE([openvg],
     [enable_openvg="$enableval"],
     [enable_openvg=no])
 
+dnl smooth the transition; should be removed eventually
+if test "x$enable_openvg" = xno; then
+    case "x$with_state_trackers" in
+    x*vega*)
+        AC_MSG_WARN([vega state tracker is enabled without --enable-openvg])
+        enable_openvg=yes
+        ;;
+    esac
+fi
+
 if test "x$enable_opengl" = xno -a \
         "x$enable_gles1" = xno -a \
         "x$enable_gles2" = xno -a \
@@ -1398,6 +1408,11 @@ yes)
             PKG_CHECK_MODULES([LIBKMS_XORG], [libkms >= $LIBKMS_XORG_REQUIRED])
             HAVE_ST_XORG="yes"
             ;;
+        vega)
+            if test "x$enable_openvg" != xyes; then
+                AC_MSG_ERROR([cannot build vega state tracker without --enable-openvg])
+            fi
+            ;;
         esac
 
        if test -n "$tracker"; then