[Mesa-dev] [PATCH 2/7] automake: src/mesa/drivers/dri/i915

Kenneth Graunke kenneth at whitecape.org
Tue Jan 17 15:52:39 PST 2012


On 01/17/2012 03:09 PM, Matt Turner wrote:
> On Tue, Jan 17, 2012 at 5:51 PM, Ian Romanick<idr at freedesktop.org>  wrote:
>> On 01/17/2012 12:58 PM, Matt Turner wrote:
>>> --- a/configure.ac
>>> +++ b/configure.ac
>>> @@ -1292,6 +1292,11 @@ case $DRI_DIRS in
>>>       PKG_CHECK_MODULES([INTEL], [libdrm_intel>= $LIBDRM_INTEL_REQUIRED])
>>>
>>>       case $DRI_DIRS in
>>> +    *i915*)
>>> +       HAVE_I915_DRI=yes;
>>> +       ;;
>>> +    esac
>>> +    case $DRI_DIRS in
>>
>>
>> Why are these in separate case statements?
>
> Because otherwise --with-dri-drivers=i915,i965 would only enable i915.
> If there's another way to do this, I'm okay with it.

He's basically using it as a pattern match, not a real case statement.


More information about the mesa-dev mailing list