I noticed the use of GLUT-like library to create context, screen and window in mesa/src/gallium/tests/graw directory of mesa source tree. From googling, I learnt that it is a small library designed to help test gallium drivers.
Refer mesa/src/gallium/tests/graw/clear.c for simple example on how to use graw.
Links:
Announcement of graw library