Game compile problems

I’ve installed Mesa OpenGl 3.3, successfully it appears. But now whenever I try to compile a GL application, configure gives an error message:

checking for GL/gl.h… no
configure: error: Cannot find GL/gl.h

This happens even when I set --with-gl-inc. I have copies of the headers in /usr/include/GL as well as my home directory (used for --with-gl-inc), and configure recognizes neither one. Interestingly, it finds the GL libraries without a problem.

I’m not completely sure if my graphics card supports GL, though I think it does.

Any suggestions?