configure: Build hashtable for Xres and glvnd

With autoconf, hashtable support is built along with Xres support.

Yet, glvnd also use it, so when disabling Xres from configure, the
build will fail at link time because hashtable functions are not

Untie the build of hashtable from Xres support, just like meson build

Signed-off-by: Olivier Fourdan <>
Closes: xorg/xserver#1091
4 jobs for issue1091 in 4 minutes and 25 seconds (queued for 1 second)