Since commit 413941e1 (gles2: a stub implementation for GL_EXT_discard_framebuffer, 2013-02-18) Mesa fails to build as follows:
$ ./autogen.sh --disable-dri \
Making all in mapi/glapi
make: Entering directory `.../src/mapi/glapi'
In file included from glapi_getproc.c:48:0:
../../../src/mapi/glapi/glprocs.h:2573:5: error: 'glDiscardFramebufferEXT' undeclared here (not in a function)
also seen in x.org tinderbox
*** This bug has been marked as a duplicate of bug 61199 ***