When I wanted to build php with imap it did complain about:
configure: error: Kerberos libraries not found.
Turns out that this some fallout from lib64 vs. lib differences. So I found
this blog explaining exactly what was going on. Very helpful. Especially the
sh -x ./configure ...options go here...
trick can be very very helpful in the future.