Detect CUPS ≥ 1.7
We support CUPS ≥ 1.2, but we use API that was introduced and deprecated at a later point.
This commit is contained in:

committed by
Marek Kasik

parent
7bd9cdc8fb
commit
91cc9b58f3
@ -78,6 +78,9 @@ if enabled_print_backends.contains('cups')
|
||||
if cups_major_version > 1 or cups_minor_version >= 6
|
||||
cdata.set('HAVE_CUPS_API_1_6', 1)
|
||||
endif
|
||||
if cups_major_version > 1 or cups_minor_version >= 7
|
||||
cdata.set('HAVE_CUPS_API_2_0', 1)
|
||||
endif
|
||||
|
||||
if cc.compiles('#include <cups/http.h> \n http_t http; char *s = http.authstring;')
|
||||
cdata.set('HAVE_HTTP_AUTHSTRING', 1,
|
||||
|
Reference in New Issue
Block a user