Index: trunk/psLib/configure.ac
===================================================================
--- trunk/psLib/configure.ac	(revision 7300)
+++ trunk/psLib/configure.ac	(revision 7380)
@@ -26,5 +26,5 @@
 
 SRCPATH='${top_srcdir}/src'
-SRCDIRS="sys astro db fft fits imageops math mathtypes types xml"
+SRCDIRS="sys astro db fft fits imageops jpeg math mathtypes types xml"
 # escape two escapes at this level so \\ gets passed to the shell and \ to perl
 SRCINC=`echo "${SRCDIRS=}" | ${PERL} -pe "s|(\w+)|-I\\\\${SRCPATH=}/\1|g"`
@@ -241,4 +241,8 @@
 AC_SUBST([GSL_CFLAGS])
 
+dnl libjpeg -------------------------------------------------------------------
+
+AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[],[AC_MSG_ERROR([jpeg library not found.])])
+
 dnl ------------------- XML2 options ---------------------
 AC_ARG_WITH(xml2-config,
@@ -316,5 +320,4 @@
 AM_CONDITIONAL(DOXYGEN, test x$doxygen = xtrue)
 
-
 dnl ------- restore CFLAGS / LDFLAGS (tests done) --------
 CFLAGS="${CFLAGS} -Wall -Werror"
@@ -338,4 +341,5 @@
   src/fits/Makefile
   src/imageops/Makefile
+  src/jpeg/Makefile
   src/math/Makefile
   src/mathtypes/Makefile
@@ -349,4 +353,5 @@
   test/fits/Makefile
   test/imageops/Makefile
+  test/jpeg/Makefile
   test/math/Makefile
   test/mathtypes/Makefile
