upon writing this command 'pkg-config --cflags --libs glib-2.0' i got this output: '-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lglib-2.0' i gave the CFLAGS and CPPFLAGS to ./configure like this, ./configure CFLAGS='-I/usr/include/glib-2.0' CPPFLAGS='-I/usr/lib/x86_64-linux-gnu/glib-2.0/include' but still its not able to find glib :/
–
uyaseenJul 13 '12 at 6:49

That's probably because the configure script of libsmtp is weird, too: it has glib-config hardcoded. You may put that pkg-config ... in a script named glib-config, make it accessible from PATH and try again
–
fork0Jul 13 '12 at 7:58