Please search the forum before asking questions that are likely to have already been answered.

Yes, you need to include a switch to turn on jpeg support. See configure -help for details.