I think you have a bad symlink, because glxgears is link with libGL.so.1 located in the /usr/lib/nvidia folder but "/usr/lib/libGL.so.1" is a symlink to libGL.so.173.08 can you try the following command : ln -sf nvidia/libGL.so.1 /usr/lib/libGL.so.1 and try to run configure script. If it doesn't work execute "ln -sf libGL.so.173.08 /usr/lib/libGL.so.1" to reverse the previous command.