Mesa (master): autoconf: Fail when --with-state-trackers is incomplete.

Chia-I Wu olv at kemper.freedesktop.org
Thu Jan 20 07:05:12 UTC 2011


Module: Mesa
Branch: master
Commit: c116a0e2dcce7635707fab724cfe4f6bc23906e3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c116a0e2dcce7635707fab724cfe4f6bc23906e3

Author: Chia-I Wu <olv at lunarg.com>
Date:   Thu Jan 20 14:19:13 2011 +0800

autoconf: Fail when --with-state-trackers is incomplete.

When --enable-openvg or --enable-gallium-egl is enabled,
--with-state-trackers must have vega or egl.

---

 configure.ac |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index d9220c8..f51ad9e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1428,6 +1428,7 @@ yes)
             if test "x$enable_openvg" != xyes; then
                 AC_MSG_ERROR([cannot build vega state tracker without --enable-openvg])
             fi
+            have_st_vega="yes"
             ;;
         esac
 
@@ -1442,6 +1443,14 @@ yes)
         fi
     done
     GALLIUM_STATE_TRACKERS_DIRS="$state_trackers"
+
+    # append --enable-openvg/--enable-gallium-egl to --with-state-trackers
+    if test "x$have_st_vega" != xyes -a "x$enable_openvg" = xyes; then
+        AC_MSG_ERROR([--with-state-trackers specified but vega is missing])
+    fi
+    if test "x$HAVE_ST_EGL" != xyes -a "x$enable_gallium_egl" = xyes; then
+        AC_MSG_ERROR([--with-state-trackers specified but egl is missing])
+    fi
     ;;
 esac
 




More information about the mesa-commit mailing list