configure: bail out if building svga without libdrm
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 5 Sep 2014 13:06:20 +0000 (14:06 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 9 Sep 2014 18:39:36 +0000 (19:39 +0100)
commit40bb6f93139971a459dadf88d6dfc05791071e37
tree7f508cd3978f3bd30c5aeef5c6dd6354f67d38ef
parent2220692330ab2ac2879cfa392435784f5d5c8ca2
configure: bail out if building svga without libdrm

With recent commit we removed the NEED_NONNULL_WINSYS checks when
selecting the hardware (inc svga) winsys. svga has only one winsys
that explicitly requires libdrm (via it's bundled version of
vmwgfx_drm.h) but configure.ac never really checks for it.

Add the check early to prevent people from shooting themselves when
they select the driver but lack libdrm.

$ ./autogen.sh --disable-dri --disable-egl --disable-gallium-llvm
--with-dri-drivers=swrast --with-gallium-drivers=svga,swrast

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82539
Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac