This is strange:
checking glib.h usability... no
checking glib.h presence... no
checking glib.h usability... yes
checking glib.h presence... yes
No idea why that's happening.
Hit the Report button, and ask for this thread to be moved to the Slackware forum. Loads of Slackers who know more than me there.