From: Armin K <krejzi@gmail.com>
Date: Fri, 8 Nov 2013 15:43:32 -0600
Subject: [PATCH 01/13] glx: conditionaly build dri3 and present loader
This patch makes it possible to disable dri3 if desired.
I am not sure if first set of changes for src/glx/glxext.c
was necessary. Feel free to modify it as you may please.
Tested with:
./configure --disable-dri3 --with-dri-drivers=i965 \
--with-gallium-drivers= --disable-vdpau --disable-egl \
--disable-gbm --disable-xvmc