Does cjpeg exist for bash?

Hi,

I would like to convert a list of ppm files to jpeg. It was suggested I use cjpeg. However, that command does not seem to exist on my platform (Mac OS 10.5, bash shell). Maybe I have missed something? Does cjpeg exist for bash with Mac OS 10.5? Is there an equivalent command that does that will convert ppm to jpeg? Thanks a lot.

Mike