configure.ac: check require_basic_egl only if egl enabled
authorLeo Liu <leo.liu@amd.com>
Thu, 23 Feb 2017 18:37:58 +0000 (13:37 -0500)
committerLeo Liu <leo.liu@amd.com>
Fri, 24 Feb 2017 14:48:47 +0000 (09:48 -0500)
commit5398d006de3d2bd668e3fc4b80a3de0c101a3e43
tree902fdd356cdf5bf71aa1728ff2a262dbef58f427
parent3cc33e7640114de3ea3f0618385fdd0ddffef13f
configure.ac: check require_basic_egl only if egl enabled

Otherwise the configuration fails when building independant libs
like vdpau, vaapi or omx

Fixes: 1ac40173c2a ("configure.ac: simplify EGL requirements for
drivers dependent on EGL")

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
configure.ac