configure.ac: Simplify LIBDRM_RADEON_REQUIRED and introduce LIBDRM_INTEL_REQUIRED variable
Hi,
what do you think about this proposal?
--
Sedat
From dafb5cf87fa3cc0d8dee0ad4d8dbb9e7a9ab4078 Mon Sep 17 00:00:00 2001
From: Sedat Dilek <[email protected]>
Date: Tue, 23 Mar 2010 14:09:23 +0100
Subject: [PATCH 1/2] configure.ac: Simplify check for LIBDRM_RADEON_REQUIRED
--- configure.ac | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
configure.ac +1 -12
@@ -836,20 +836,9 @@ esac case $DRI_DIRS in *radeon*|*r200*|*r300*|*r600*) - PKG_CHECK_MODULES([LIBDRM_RADEON], - [libdrm_radeon libdrm >= $LIBDRM_RADEON_REQUIRED], - 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 + PKG_CHECK_MODULES([LIBDRM_RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED]) ;; esac -AC_SUBST([RADEON_CFLAGS]) -AC_SUBST([RADEON_LDFLAGS]) - dnl dnl OSMesa configuration
Signature · 1 line
1.7.0.3
From 21274e40e2fa99c925da46759ddfe9569040b0d9 Mon Sep 17 00:00:00 2001
From: Sedat Dilek <[email protected]>
Date: Tue, 23 Mar 2010 14:11:03 +0100
Subject: [PATCH 2/2] configure.ac: Introduce LIBDRM_INTEL_REQUIRED variable
--- configure.ac | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
configure.ac +2 -1
@@ -19,6 +19,7 @@ AC_CANONICAL_HOST dnl Versions for external dependencies LIBDRM_REQUIRED=2.4.15 +LIBDRM_INTEL_REQUIRED=2.4.19 LIBDRM_RADEON_REQUIRED=2.4.17 DRI2PROTO_REQUIRED=2.1 GLPROTO_REQUIRED=1.4.11
@@ -830,7 +831,7 @@ AC_SUBST([DRI_LIB_DEPS]) case $DRI_DIRS in *i915*|*i965*) - PKG_CHECK_MODULES([INTEL], [libdrm_intel >= 2.4.19]) + PKG_CHECK_MODULES([INTEL], [libdrm_intel >= LIBDRM_INTEL_REQUIRED]) ;; esac
Signature · 1 line
1.7.0.3
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
Quoted 6 lines · Sedat Dilek
Hi,
what do you think about this proposal?
--
Sedat
Makes _a_ _lot_ of sense.
Luc Verhaegen.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Unfortunately, this means to get rid of
$RADEON_CFLAGS
$RADEON_LDFLAGS
in other source files.
As I said I am no autotools expert, but if libdrm_intel does not need any furher CFLAGS/LDFLAGS, why libdrm_radeon is different? The benefit of "simplifying" would mean to have libdrm_{intel,radeon} handled the same way in configure.ac.
I have sent a V2 of my proposals with really checking for $LIBDRM_RADEON_REQUIRED (keeping $RADEON_CFLAGS and $RADEON_LDFLAGS).
--
Sedat
Quoted 12 lines · Luc Verhaegen
Quoted 6 lines · Sedat Dilek
Hi,
what do you think about this proposal?
--
SedatMakes _a_ _lot_ of sense.
Luc Verhaegen.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev