If after glib installation the message is still exactly the same, then you probably have glib installed in a non-standard location. My guess is that it got under /usr/local/lib instead of /usr/lib.
You may try for example
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config --modversion glib-2.0
If this works (i.e. prints out a version number and doesn't complain), you can give this command
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
and then try to call configure again.
If it doesn't work, you should look for the actual installation location, using this command (this might take some time):
find / -name glib-2.0.pc 2> /dev/null
If this finds a file, look at which directory it is located and use that in the PKG_CONFIG_PATH, as in the previous case.
I hope this helps.