X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=configure.ac;h=8885a6d74e5f606968c2f2dec9b0dca482beea8b;hb=ab5c2622b6484df19db7e729f0e434a24dce2d10;hp=707acf3cf45fdcd5e2a6d2582d22057384371d60;hpb=0c771e260b20de06aa0a9671130119304e9fe0db;p=mesa.git diff --git a/configure.ac b/configure.ac index 707acf3cf45..8885a6d74e5 100644 --- a/configure.ac +++ b/configure.ac @@ -1427,8 +1427,8 @@ 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*) + case "$enable_gbm$HAVE_ST_EGL$enable_dri$with_egl_platforms" in + yesyesyes*drm*) enable_gallium_gbm=yes ;; *) enable_gallium_gbm=no ;; @@ -1441,6 +1441,10 @@ if test "x$enable_gallium_gbm" = xyes; then if test "x$enable_gbm" = xno; then AC_MSG_ERROR([cannot enable gbm_gallium without gbm]) fi + # gbm_gallium abuses DRI_LIB_DEPS to link. Make sure it is set. + if test "x$enable_dri" = xno; then + AC_MSG_ERROR([gbm_gallium requires --enable-dri to build]) + fi GALLIUM_STATE_TRACKERS_DIRS="gbm $GALLIUM_STATE_TRACKERS_DIRS" GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS gbm"