Abhijeet D Mhatre wrote:
I need either Xconfigurator source code or some other similar utility.
You can use xf86config. It is always included with X-server. It is a simple console based utility which asks you all the questions about your hardware and then writes the /etc/X11/XF86config file.
/usr/X11R6/bin/xf86config
HTH, Rajen M. Parekh
regards Abhijeet D Mhatre