diff options
author | Dave Airlie <[email protected]> | 2009-06-12 11:17:32 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-06-12 11:17:32 +1000 |
commit | 7f223ff89172069dbad987f592aea2a8ba16355f (patch) | |
tree | 4bcf0bcf8f59b717e617640cb187570fabab0930 /configure.ac | |
parent | 877061141ae263128eac8ec1f1077f34e52651fa (diff) | |
parent | 67bbfb9c68d0bf459f706a4cb50caf8245a37a34 (diff) |
Merge remote branch 'main/radeon-rewrite'
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d4a8222df0d..f34a4740b31 100644 --- a/configure.ac +++ b/configure.ac @@ -445,6 +445,8 @@ AC_SUBST([GALLIUM_WINSYS_DRM_DIRS]) AC_SUBST([GALLIUM_DRIVERS_DIRS]) AC_SUBST([GALLIUM_AUXILIARY_DIRS]) AC_SUBST([GALLIUM_STATE_TRACKERS_DIRS]) +AC_SUBST([RADEON_CFLAGS]) +AC_SUBST([RADEON_LDFLAGS]) dnl dnl User supplied program configuration @@ -572,6 +574,13 @@ dri) GL_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED dri2proto >= $DRI2PROTO_REQUIRED" DRI_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED" + PKG_CHECK_MODULES([LIBDRM_RADEON], [libdrm_radeon], HAVE_LIBDRM_RADEON=yes, HAVE_LIBDRM_RADEON=no) + + if test "$HAVE_LIBDRM_RADEON" = yes; then + RADEON_CFLAGS="-DHAVE_LIBDRM_RADEON=1 $LIBDRM_RADEON_CFLAGS" + RADEON_LDFLAGS=$LIBDRM_RADEON_LIBS + fi + # find the DRI deps for libGL if test "$x11_pkgconfig" = yes; then # add xcb modules if necessary |