--- a/configure.ac 2020-06-02 20:30:34.335293276 +0300 +++ b/configure.ac 2020-06-02 20:40:29.744509423 +0300 @@ -1563,7 +1563,7 @@ if test x$enable_cups != xno; then if test x$with_local_cups != xyes; then if test x"$CUPSCONFIG" = x""; then - AC_PATH_TOOL(CUPSCONFIG,cups-config) + AC_PATH_TARGET_TOOL(CUPSCONFIG,cups-config) if test x"$build" != x"$host"; then AC_PATH_PROG(BUILD_CUPSCONFIG, cups-config) if test x"$BUILD_CUPSCONFIG" = x"$CUPSCONFIG" ; then