diff -r 4a0312f2894b -r 0f584e7d6ab6 common/autoconf/lib-cups.m4 --- a/common/autoconf/lib-cups.m4 Wed Jul 05 20:56:54 2017 +0200 +++ b/common/autoconf/lib-cups.m4 Thu Oct 29 15:24:36 2015 +0100 @@ -35,8 +35,9 @@ [specify directory for the cups include files])]) if test "x$NEEDS_LIB_CUPS" = xfalse; then - if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then - AC_MSG_WARN([cups not used, so --with-cups is ignored]) + if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ + (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then + AC_MSG_WARN([[cups not used, so --with-cups[-*] is ignored]]) fi CUPS_CFLAGS= else