build: Minor tweak for when we can't find gutenprint headers
This commit is contained in:
parent
546a63e6af
commit
a14219959e
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue