This reverts commit 5240f212ed364d5139f30810b14884f8e2c03535. RHEL 7 does not provide a pkg-config module for libjpeg. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- configure.ac | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8e95d06..958869f 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,19 @@ AC_SUBST([SPICE_PROTOCOL_MIN_VER]) PKG_CHECK_MODULES(X11, x11) PKG_CHECK_MODULES(XFIXES, xfixes) -PKG_CHECK_MODULES(JPEG, libjpeg) +AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, + AC_MSG_CHECKING([for jpeglib.h]) + AC_TRY_CPP( +[#include <stdio.h> +#undef PACKAGE +#undef VERSION +#undef HAVE_STDLIB_H +#include <jpeglib.h>], + JPEG_LIBS='-ljpeg' + AC_MSG_RESULT($jpeg_ok), + AC_MSG_ERROR([jpeglib.h not found])), + AC_MSG_ERROR([libjpeg not found])) +AC_SUBST(JPEG_LIBS) dnl =========================================================================== dnl check compiler flags -- 2.14.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel