build: Minor tweak for when we can't find gutenprint headers

This commit is contained in:
Solomon Peachy 2024-01-10 10:44:55 -05:00
parent 546a63e6af
commit a14219959e
2 changed files with 6 additions and 2 deletions

View file

@ -53,6 +53,10 @@ BACKEND_NAME ?= gutenprint$(GUTENPRINT_MAJOR)$(GUTENPRINT_MINOR)+usb
endif
endif
ifeq ($(GUTENPRINT_MINOR),)
GUTENPRINT_MINOR := 3
endif
# For Gutenprint 5.2, use old URI scheme
ifneq ($(GUTENPRINT_MINOR),3)
OLD_URI := -DOLD_URI=1

View file

@ -29,7 +29,7 @@
#include <signal.h>
#include <strings.h> /* For strncasecmp */
#define BACKEND_VERSION "0.128"
#define BACKEND_VERSION "0.129"
#ifndef CORRTABLE_PATH
#ifdef PACKAGE_DATA_DIR
@ -64,7 +64,7 @@ const char *corrtable_path = CORRTABLE_PATH;
static int max_xfer_size = URB_XFER_SIZE;
static int xfer_timeout = XFER_TIMEOUT;
#ifdef OLD_URI
#if defined(OLD_URI) && OLD_URI
static int old_uri = 1;
#else
static int old_uri = 0;