build: fix cross-build host tool detection

This commit is contained in:
Daemonratte 2026-08-18 20:12:49 +02:00
commit d68da92e04

View file

@ -992,9 +992,9 @@ AM_CONDITIONAL(USE_MEDIALIB25, test $use_mlib25 = yes)
dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling
AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
AM_CONDITIONAL(CROSS_COMPILING, test "$build" != "$host")
if test $cross_compiling = yes; then
if test "$build" != "$host"; then
AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache, no)
if test x$GTK_UPDATE_ICON_CACHE = xno; then
REBUILD_PNGS=#
@ -1551,7 +1551,11 @@ AC_ARG_ENABLE(cups,
if test "x$enable_cups" = "xno"; then
AM_CONDITIONAL(HAVE_CUPS, false)
else
AC_PATH_TOOL(CUPS_CONFIG, cups-config, no)
if test "$build" != "$host"; then
AC_PATH_PROG(CUPS_CONFIG, ${host_alias}-cups-config, no)
else
AC_PATH_TOOL(CUPS_CONFIG, cups-config, no)
fi
if test "x$CUPS_CONFIG" = "xno"; then
if test "x$enable_cups" = "xauto"; then
AM_CONDITIONAL(HAVE_CUPS, false)