Hi,
I has success in install ROOT 5.14, installing the GL headers (libglu1-mesa-dev) and configuring with the options ./configure --prefix=/usr/local --enable-soversion --enable-rpath and using make -j2.
I tried this same options to ROOT 5.16 and 5.17 and have problem in both.
Cheers