From: Benjamin Franzke Date: Sat, 2 Jul 2011 11:45:14 +0000 (+0200) Subject: configure: Enable st/gbm if st/egl has drm platform X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b18b2994eff2f51588abe29c7a2209220c9ee9c5;p=mesa.git configure: Enable st/gbm if st/egl has drm platform NOTE: This is a candidate for the 7.11 branch. --- diff --git a/configure.ac b/configure.ac index 5a54370b51d..93b0b2684ff 100644 --- a/configure.ac +++ b/configure.ac @@ -597,9 +597,9 @@ AC_ARG_ENABLE([gallium_gbm], [AS_HELP_STRING([--enable-gallium-gbm], [enable optional gbm state tracker (not required for gbm support in Gallium) - @<:@default=disable@:>@])], + @<:@default=auto@:>@])], [enable_gallium_gbm="$enableval"], - [enable_gallium_gbm=no]) + [enable_gallium_gbm=auto]) # Option for Gallium drivers GALLIUM_DRIVERS_DEFAULT="r300,r600,swrast" @@ -1386,6 +1386,14 @@ fi dnl dnl gbm Gallium configuration dnl +if test "x$enable_gallium_gbm" = xauto; then + case "$enable_gbm$HAVE_ST_EGL$with_egl_platforms" in + yesyes*drm*) + enable_gallium_gbm=yes ;; + *) + enable_gallium_gbm=no ;; + esac +fi if test "x$enable_gallium_gbm" = xyes; then if test "x$with_gallium_drivers" = x; then AC_MSG_ERROR([cannot enable gbm_gallium without Gallium])