[Mesa-dev] [PATCHv2] configure.ac: Check for the respective libdrm_* when building gallium drivers
Marek Olšák
maraeo at gmail.com
Mon Jul 18 18:15:06 PDT 2011
Pushed, thanks.
Marek
On Fri, Jul 15, 2011 at 12:07 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> In a rare case of building gallium only, we need to
> check if the required packages are available
>
> libdrm_[intel|nouveau] - gallium[i915 i965|nouveau]
>
> v2: r300g and r600g do not need libdrm_radeon
>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
> configure.ac | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index c186240..87c8ffc 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1908,6 +1908,7 @@ if test "x$with_gallium_drivers" != x; then
> gallium_check_st "svga/drm" "dri-vmwgfx" "xorg-vmwgfx" "xa-vmwgfx"
> ;;
> xi915)
> + PKG_CHECK_MODULES([INTEL], [libdrm_intel >= $LIBDRM_INTEL_REQUIRED])
> GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS i915 softpipe"
> if test "x$MESA_LLVM" = x1; then
> GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS llvmpipe"
> @@ -1916,6 +1917,7 @@ if test "x$with_gallium_drivers" != x; then
> gallium_check_st "i915/drm" "dri-i915" "xorg-i915"
> ;;
> xi965)
> + PKG_CHECK_MODULES([INTEL], [libdrm_intel >= $LIBDRM_INTEL_REQUIRED])
> GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS i965 softpipe"
> if test "x$MESA_LLVM" = x1; then
> GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS llvmpipe"
> @@ -1932,6 +1934,7 @@ if test "x$with_gallium_drivers" != x; then
> gallium_check_st "r600/drm" "dri-r600" "" "" "xvmc-r600" "vdpau-r600" "va-r600"
> ;;
> xnouveau)
> + PKG_CHECK_MODULES([NOUVEAU], [libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED])
> GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS nouveau nvfx nv50 nvc0"
> gallium_check_st "nouveau/drm" "dri-nouveau" "xorg-nouveau" "" "xvmc-nouveau"
> ;;
> --
> 1.7.6
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list