Try looking in
config.log to see what it tells you about where it thinks the jpeg libs and headers are (as noted by
jbert, you need both to satisfy the configuration checks). And while you're in there, you could check on the other image libs/headers as well. ;)