kripken/emscripten — pull request #2486 by sronsse (2014-07-05 23:50:23+00:00)
Title: add pkg-config files for some supported libraries

The pkg-config tool is widely used in autotools projects as it allows to automatically get CFLAGS for all libraries needed to be linked. When porting projects using Emscripten, most configure.ac files today need to be changed to remove checks using pkg-config. Applying this patch will allow pkg-config to find libraries and therefore autotools projects will now be able to build from vanilla sources.

Please note that the .pc files I imported have been modified from their original counterparts (Emscripten does not require -l, -I, or -L flags for these).

This can easily be tested by calling "emconfigure pkg-config --list-all". It should list the following libraries at this time:
- egl
- zlib
- libpng
- sdl
- glesv2