From 0bfaf97c9548418a269eb7f54c834f3ead73416d Mon Sep 17 00:00:00 2001 From: Rohit Kumar Date: Thu, 18 Jun 2026 15:05:42 +0530 Subject: [PATCH] Fix CUPS_VERSION_MAJOR typo and add CUPS_CFLAGS to tests and pkg-config --- Makefile.am | 18 +++++++++++++++--- cupsfilters/testfilters.c | 2 +- libcupsfilters.pc.in | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index d51ac0220..0ddb62393 100644 --- a/Makefile.am +++ b/Makefile.am @@ -246,6 +246,8 @@ testcmyk_SOURCES = \ testcmyk_LDADD = \ libcupsfilters.la \ -lm +testcmyk_CFLAGS = \ + $(CUPS_CFLAGS) testdither_SOURCES = \ cupsfilters/testdither.c \ @@ -253,6 +255,8 @@ testdither_SOURCES = \ testdither_LDADD = \ libcupsfilters.la \ -lm +testdither_CFLAGS = \ + $(CUPS_CFLAGS) testimage_SOURCES = \ cupsfilters/testimage.c \ @@ -266,7 +270,8 @@ testimage_LDADD = \ testimage_CFLAGS = \ $(LIBJPEG_CFLAGS) \ $(LIBPNG_CFLAGS) \ - $(TIFF_CFLAGS) + $(TIFF_CFLAGS) \ + $(CUPS_CFLAGS) testrgb_SOURCES = \ cupsfilters/testrgb.c \ @@ -274,6 +279,8 @@ testrgb_SOURCES = \ testrgb_LDADD = \ libcupsfilters.la \ -lm +testrgb_CFLAGS = \ + $(CUPS_CFLAGS) test1284_SOURCES = \ cupsfilters/test1284.c @@ -289,7 +296,8 @@ testpdf1_SOURCES = \ cupsfilters/fontembed-private.h testpdf1_CFLAGS = \ -I$(srcdir)/cupsfilters/fontembed/ \ - -I$(srcdir)/cupsfilters/ + -I$(srcdir)/cupsfilters/ \ + $(CUPS_CFLAGS) testpdf1_LDADD = \ libcupsfilters.la @@ -298,18 +306,22 @@ testpdf2_SOURCES = \ cupsfilters/fontembed-private.h testpdf2_CFLAGS = \ -I$(srcdir)/cupsfilters/fontembed/ \ - -I$(srcdir)/cupsfilters/ + -I$(srcdir)/cupsfilters/ \ + $(CUPS_CFLAGS) testpdf2_LDADD = \ libcupsfilters.la test_analyze_SOURCES = cupsfilters/fontembed/test-analyze.c test_analyze_LDADD = libcupsfilters.la +test_analyze_CFLAGS = $(CUPS_CFLAGS) test_pdf_SOURCES = cupsfilters/fontembed/test-pdf.c test_pdf_LDADD = libcupsfilters.la +test_pdf_CFLAGS = $(CUPS_CFLAGS) test_ps_SOURCES = cupsfilters/fontembed/test-ps.c test_ps_LDADD = libcupsfilters.la +test_ps_CFLAGS = $(CUPS_CFLAGS) testfilters_SOURCES = \ cupsfilters/testfilters.c \ diff --git a/cupsfilters/testfilters.c b/cupsfilters/testfilters.c index 80ab8344d..9c0e2b27f 100644 --- a/cupsfilters/testfilters.c +++ b/cupsfilters/testfilters.c @@ -9,7 +9,7 @@ #include #include -# if CUPS_VERISON_MAJOR < 3 /* CUPS 2.x and older */ +# if CUPS_VERSION_MAJOR < 3 /* CUPS 2.x and older */ /* Functions changed in libcups3 */ # define cupsArrayGetCount cupsArrayCount # define cupsArrayGetFirst cupsArrayFirst diff --git a/libcupsfilters.pc.in b/libcupsfilters.pc.in index 5cacd69c1..db1b9a694 100644 --- a/libcupsfilters.pc.in +++ b/libcupsfilters.pc.in @@ -9,4 +9,4 @@ Version: @VERSION@ Libs: -L${libdir} -lcupsfilters Libs.private: @CUPS_LIBS@ @LIBJPEG_LIBS@ @LIBPNG_LIBS@ @LIBTIFF_LIBS@ @LIBPDFIO_LIBS@ -Cflags: -I${includedir}/cupsfilters -I${includedir} +Cflags: -I${includedir}/cupsfilters -I${includedir} @CUPS_CFLAGS@