The configure script does not accept --with-driver as indicated by the autoconf documentation: http://www.mesa3d.org/autoconf.html
The documentation should be updated. I'll send a patch. To enable Xlib or OSMesa, use --enable-xlib-glx and --enable-osmesa respectively. Also, ./configure --help will always be up to date.
Patch sent.
Committed as http://cgit.freedesktop.org/mesa/mesa/commit/?id=66be7b4c2795b5a942f64821fc6525dfdfb3aba4
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.