Blame SOURCES/ghostscript-9.25-101-reenable-cups-filters.patch

ed4834
From 9a6564bc1a2f2eeaf9faffd4d3b0a5a562855123 Mon Sep 17 00:00:00 2001
ed4834
From: rpm-build <rpm-build>
ed4834
Date: Tue, 9 Oct 2018 15:42:09 +0200
ed4834
Subject: [PATCH] Fix to re-enable CUPS filters creation (needed for
ed4834
 ghostscript-cups)
ed4834
ed4834
---
ed4834
 Makefile.in  | 2 ++
ed4834
 configure.ac | 9 +++++++++
ed4834
 2 files changed, 11 insertions(+)
ed4834
ed4834
diff --git a/Makefile.in b/Makefile.in
ed4834
index d6f114a..bdf0ae7 100644
ed4834
--- a/Makefile.in
ed4834
+++ b/Makefile.in
ed4834
@@ -351,6 +351,8 @@ CUPSSERVERROOT=@CUPSSERVERROOT@
ed4834
 CUPSDATA=@CUPSDATA@
ed4834
 CUPSPDFTORASTER=@CUPSPDFTORASTER@
ed4834
 
ed4834
+CUPSINSTTARGET=@CUPSINSTALL@
ed4834
+
ed4834
 SHARE_LCUPS=@SHARELCUPS@
ed4834
 LCUPS_NAME=cups
ed4834
 LCUPSSRCDIR=@CUPS_DIR@
ed4834
diff --git a/configure.ac b/configure.ac
ed4834
index 8ecaccc..d063c1f 100644
ed4834
--- a/configure.ac
ed4834
+++ b/configure.ac
ed4834
@@ -1400,6 +1400,10 @@ AC_ARG_WITH([local-cups], AC_HELP_STRING([--with-local-cups],
ed4834
                                              [Force using the GS supplied cups code - only useful for debugging]),
ed4834
             [with_local_cups=yes], [with_local_cups=no])
ed4834
 
ed4834
+AC_ARG_WITH([install-cups], AC_HELP_STRING([--with-install-cups],
ed4834
+                                             [Install the cups conversion tools]),
ed4834
+            [CUPSINSTALL=install-cups], [CUPSINSTALL=])
ed4834
+
ed4834
 AC_ARG_WITH([cups-serverbin],  AC_HELP_STRING([--with-cups-serverbin],
ed4834
     [override the "cups-config --serverbin" path]), CUPS_SERVERBIN="$withval", CUPS_SERVERBIN="")
ed4834
 
ed4834
@@ -3029,6 +3033,11 @@ if test x"$THEMAKEFILE" != x"$MAKEFILE" && test x"$CCAUX" = x"$CC"; then
ed4834
   CONFIG_FILES_LIST="$CONFIG_FILES_LIST"
ed4834
 fi
ed4834
 
ed4834
+if ( test -d cups ); then
ed4834
+AC_OUTPUT(cups/gstopxl)
ed4834
+chmod +x cups/gstopxl
ed4834
+fi
ed4834
+
ed4834
 if test "x$AFS" = "x1"; then
ed4834
    AC_MSG_WARN([Using "native" font scaler which is now deprecated (rather than freetype),])
ed4834
    AC_MSG_WARN([Support for this will be removed in a future release])
ed4834
-- 
ed4834
2.14.4
ed4834