]> git.eshelyaron.com Git - emacs.git/commitdiff
Check for jerror.h as well as libjpeg.
authorDave Love <fx@gnu.org>
Wed, 5 Jan 2000 22:11:33 +0000 (22:11 +0000)
committerDave Love <fx@gnu.org>
Wed, 5 Jan 2000 22:11:33 +0000 (22:11 +0000)
configure.in

index b58e0e7fd2f0d5f5291b95c033fc69bf36eb5ab8..ba378ee17cca8e93ef5c8e283224dad6abc33d6e 100644 (file)
@@ -1708,7 +1708,10 @@ if test "${HAVE_X11}" = "yes"; then
   if test "${with_jpeg}" != "no"; then
     old_c_flags="${CFLAGS}"
     CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
-    AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes, , -lX11)
+    dnl Checking for jpeglib.h can lose becsue of a redefinition of
+    dnl  HAVE_STDLIB_H.
+    AC_CHECK_HEADER(jerror.h,
+      AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes, , -lX11))
     CFLAGS="${old_c_flags}"
   fi