From 3cc9d384b9507f50769679443b4e06029f7203a4 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Wed, 5 Jan 2000 22:11:33 +0000 Subject: [PATCH] Check for jerror.h as well as libjpeg. --- configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index b58e0e7fd2f..ba378ee17cc 100644 --- a/configure.in +++ b/configure.in @@ -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 -- 2.39.5