From 133411f2d9008bda202f275a35c3b39ea2e8e69d Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Tue, 29 Dec 2020 01:31:45 +0100 Subject: Disable jpeg-xl in the static build unless ImageMagick is build without the utilities. --- configure.ac | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c6a8f3e2e..3051ce817 100644 --- a/configure.ac +++ b/configure.ac @@ -2368,6 +2368,11 @@ AC_ARG_WITH([jxl], if test "$with_jxl" != 'yes'; then DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jxl=$with_jxl " fi +if test "$enable_static" = 'yes'; then + if test "$with_utilities" = 'yes'; then + with_jxl='no' + fi +fi # Check for the JPEG-XL library. have_jxl='no' @@ -2380,9 +2385,11 @@ if test "$with_jxl" != 'no'; then passed=0 AC_CHECK_HEADER([jxl/decode.h],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`]) AC_CHECK_HEADER([jxl/encode.h],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`]) - AC_CHECK_LIB([jxl],[JxlDecoderCreate],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`],[]) - - AC_CHECK_LIB([jxl],[JxlEncoderCreate],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`],[]) + # This check should be changed once we have a .pc file for the JPEG-XL library. + if test "$enable_static" != 'yes'; then + AC_CHECK_LIB([jxl],[JxlDecoderCreate],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`],[]) + AC_CHECK_LIB([jxl],[JxlEncoderCreate],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`],[]) + fi AC_MSG_CHECKING([if jpeg-xl package is complete]) if test $passed -gt 0; then -- cgit v1.2.3