common/autoconf/lib-cups.m4
changeset 33393 0f584e7d6ab6
parent 32921 8e0250dfa145
child 34865 48ace55e16c5
--- 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