Commit 0f8426e88 for imagemagick.org
commit 0f8426e888402660abd3fb63c025aacb817505e0
Author: Greg B <64932474+gregbenz@users.noreply.github.com>
Date: Wed Sep 2 19:02:27 2026 -0500
build: require libultrahdr 1.4.0 for UHDR (#8936)
diff --git a/configure b/configure
index cab4112fa..f252c82e5 100755
--- a/configure
+++ b/configure
@@ -35805,19 +35805,19 @@ if test "$with_uhdr" != 'no'; then
printf "%s\n" "-------------------------------------------------------------" >&6; }
pkg_failed=no
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuhdr >= 1.3.0" >&5
-printf %s "checking for libuhdr >= 1.3.0... " >&6; }
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuhdr >= 1.4.0" >&5
+printf %s "checking for libuhdr >= 1.4.0... " >&6; }
if test -n "$UHDR_CFLAGS"; then
pkg_cv_UHDR_CFLAGS="$UHDR_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuhdr >= 1.3.0\""; } >&5
- ($PKG_CONFIG --exists --print-errors "libuhdr >= 1.3.0") 2>&5
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuhdr >= 1.4.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libuhdr >= 1.4.0") 2>&5
ac_status=$?
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_UHDR_CFLAGS=`$PKG_CONFIG --cflags "libuhdr >= 1.3.0" 2>/dev/null`
+ pkg_cv_UHDR_CFLAGS=`$PKG_CONFIG --cflags "libuhdr >= 1.4.0" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
@@ -35829,12 +35829,12 @@ if test -n "$UHDR_LIBS"; then
pkg_cv_UHDR_LIBS="$UHDR_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuhdr >= 1.3.0\""; } >&5
- ($PKG_CONFIG --exists --print-errors "libuhdr >= 1.3.0") 2>&5
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuhdr >= 1.4.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libuhdr >= 1.4.0") 2>&5
ac_status=$?
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_UHDR_LIBS=`$PKG_CONFIG --libs "libuhdr >= 1.3.0" 2>/dev/null`
+ pkg_cv_UHDR_LIBS=`$PKG_CONFIG --libs "libuhdr >= 1.4.0" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
@@ -35855,9 +35855,9 @@ else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- UHDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuhdr >= 1.3.0" 2>&1`
+ UHDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuhdr >= 1.4.0" 2>&1`
else
- UHDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuhdr >= 1.3.0" 2>&1`
+ UHDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuhdr >= 1.4.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$UHDR_PKG_ERRORS" >&5
diff --git a/configure.ac b/configure.ac
index bcd9c0ae8..05f37306c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2901,7 +2901,7 @@ UHDR_LIBS=""
UHDR_PKG=""
if test "$with_uhdr" != 'no'; then
AC_MSG_RESULT([-------------------------------------------------------------])
- PKG_CHECK_MODULES([UHDR],[libuhdr >= 1.3.0],[have_uhdr=yes],[have_uhdr=no])
+ PKG_CHECK_MODULES([UHDR],[libuhdr >= 1.4.0],[have_uhdr=yes],[have_uhdr=no])
AC_MSG_RESULT([])
fi