changeset 27201:01ecec96b82d

Check for jerror.h as well as libjpeg.
author Dave Love <fx@gnu.org>
date Wed, 05 Jan 2000 22:11:33 +0000
parents 37827755f5d3
children 6047ac0aaa7c
files configure.in
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Wed Jan 05 18:15:55 2000 +0000
+++ b/configure.in	Wed Jan 05 22:11:33 2000 +0000
@@ -1708,7 +1708,10 @@
   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