configure: Define GLAMOR_HAS_EGL_QUERY_DRIVER when available

Commit 195c2ef8 added this to the Meson
build but neglected to add it to autotools.

v2: Also update dix-config.h.in

Fixes: 195c2ef8 ("glamor: Add a function to get the driver name via EGL_MESA_query_driver")

Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> [v1]
Reviewed-by: Eric Engestrom <eric@engestrom.ch> [v1]
3 jobs for autoconf-query-driver in 8 minutes and 7 seconds (queued for 1 second)