changeset 4959:506a61f959e4

Update ghostscript to 9.26. * src/ghostscript.mk: Update version, checksum and dependencies. Update build rule. * src/ghostscript-1-fixes.patch: Add new file. * src/ghostscrip-mingw-[i686,x86_64]-[arch.h,gconfig_.h,makefile]: Remove files. * src/build-automake.mk: Update to version 1.16.1. * src/build-automake-1-perl-5.patch: Remove file. * src/libidn.mk: Update to version 1.35. * src/glpk.mk: Skip autoconf steps.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 16 Feb 2019 16:03:02 +0100
parents 8b4d4e06075d
children 3df44260321f
files src/build-automake-1-perl-5.patch src/build-automake.mk src/ghostscript-1-fixes.patch src/ghostscript-mingw-i686-arch.h src/ghostscript-mingw-i686-gconfig_.h src/ghostscript-mingw-i686-makefile src/ghostscript-mingw-x86_64-arch.h src/ghostscript-mingw-x86_64-gconfig_.h src/ghostscript-mingw-x86_64-makefile src/ghostscript.mk src/glpk.mk src/jasper.mk src/libidn.mk src/librsb.mk src/pstoedit.mk src/qrupdate.mk
diffstat 16 files changed, 740 insertions(+), 1518 deletions(-) [+]
line wrap: on
line diff
--- a/src/build-automake-1-perl-5.patch	Fri Feb 15 11:27:55 2019 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-Patch based on https://git.savannah.gnu.org/cgit/automake.git/commit/?id=13f00eb4493c217269b76614759e452d8302955e
-
-diff -ur automake-1.11.6.orig/automake.in automake-1.11.6/automake.in
---- automake-1.11.6.orig/automake.in	2017-07-28 12:50:12.519289500 -0400
-+++ automake-1.11.6/automake.in	2017-07-28 12:56:27.565672500 -0400
-@@ -4156,7 +4156,7 @@
- sub substitute_ac_subst_variables ($)
- {
-   my ($text) = @_;
--  $text =~ s/\${([^ \t=:+{}]+)}/&substitute_ac_subst_variables_worker ($1)/ge;
-+  $text =~ s/\$[{]([^ \t=:+{}]+)}/&substitute_ac_subst_variables_worker ($1)/ge;
-   return $text;
- }
- 
--- a/src/build-automake.mk	Fri Feb 15 11:27:55 2019 -0500
+++ b/src/build-automake.mk	Sat Feb 16 16:03:02 2019 +0100
@@ -3,8 +3,8 @@
 
 PKG             := build-automake
 $(PKG)_IGNORE   :=
-$(PKG)_VERSION  := 1.11.6
-$(PKG)_CHECKSUM := 29d7832b148e2157e03ad0d3620fbb7f5a13bc21
+$(PKG)_VERSION  := 1.16.1
+$(PKG)_CHECKSUM := 7a4d8d8b16d2f3cece5ab92c32aba094a4597d97
 $(PKG)_SUBDIR   := automake-$($(PKG)_VERSION)
 $(PKG)_FILE     := automake-$($(PKG)_VERSION).tar.gz
 $(PKG)_URL      := ftp://ftp.gnu.org/pub/gnu/automake/$($(PKG)_FILE)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ghostscript-1-fixes.patch	Sat Feb 16 16:03:02 2019 +0100
@@ -0,0 +1,707 @@
+This file is part of MXE. See LICENSE.md for licensing information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: darealshinji <djcj@gmx.de>
+Date: Mon, 3 Dec 2018 21:05:41 +0100
+Subject: [PATCH 1/1] cross-build fixes, hide libgs symbols
+
+
+diff --git a/Makefile.in b/Makefile.in
+index 1111111..2222222 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -173,6 +173,9 @@ CAPOPT= @HAVE_MKSTEMP@ @HAVE_FILE64@ @HAVE_FSEEKO@ @HAVE_MKSTEMP64@ @HAVE_FONTCO
+ 
+ GS=@GS@
+ GS_SO_BASE=@GS@
++GS_SONAME=@GS_SONAME@
++GS_SONAME_MAJOR=@GS_SONAME_MAJOR@
++GS_SONAME_MAJOR_MINOR=@GS_SONAME_MAJOR_MINOR@
+ 
+ PCL=@PCL@
+ PCL_SO_BASE=@PCL@
+@@ -184,7 +187,7 @@ GPDL=@GPDL@
+ GPDL_SO_BASE=@GPDL@
+ 
+ XE=@EXEEXT@
+-XEAUX=@EXEEXT@
++XEAUX=@AUXEXEEXT@
+ 
+ PCL_TARGET=@PCL_TARGET@
+ XPS_TARGET=@XPS_TARGET@
+diff --git a/base/gp_unix.c b/base/gp_unix.c
+index 1111111..2222222 100644
+--- a/base/gp_unix.c
++++ b/base/gp_unix.c
+@@ -16,6 +16,9 @@
+ 
+ /* Unix-specific routines for Ghostscript */
+ 
++#ifdef __MINGW32__
++#  include "windows_.h"
++#endif
+ #include "pipe_.h"
+ #include "string_.h"
+ #include "time_.h"
+@@ -454,3 +457,54 @@ void gp_enumerate_fonts_free(void *enum_state)
+     }
+ #endif
+ }
++
++/* A function to decode the next codepoint of the supplied args from the
++ * local windows codepage, or -1 for EOF.
++ * (copied from gp_win32.c)
++ */
++
++#ifdef __MINGW32__
++int
++gp_local_arg_encoding_get_codepoint(FILE *file, const char **astr)
++{
++    int len;
++    int c;
++    char arg[3];
++    wchar_t unicode[2];
++    char utf8[4];
++
++    if (file) {
++        c = fgetc(file);
++        if (c == EOF)
++            return EOF;
++    } else if (**astr) {
++        c = *(*astr)++;
++        if (c == 0)
++            return EOF;
++    } else {
++        return EOF;
++    }
++
++    arg[0] = c;
++    if (IsDBCSLeadByte(c)) {
++        if (file) {
++            c = fgetc(file);
++            if (c == EOF)
++                return EOF;
++        } else if (**astr) {
++            c = *(*astr)++;
++            if (c == 0)
++                return EOF;
++        }
++        arg[1] = c;
++        len = 2;
++    } else {
++        len = 1;
++    }
++
++    /* Convert the string (unterminated in, unterminated out) */
++    len = MultiByteToWideChar(CP_ACP, 0, arg, len, unicode, 2);
++
++    return unicode[0];
++}
++#endif /* __MINGW32__ */
+diff --git a/base/unix-aux.mak b/base/unix-aux.mak
+index 1111111..2222222 100644
+--- a/base/unix-aux.mak
++++ b/base/unix-aux.mak
+@@ -57,23 +57,29 @@ $(AUX)gp_stdia.$(OBJ): $(GLSRC)gp_stdia.c $(AK)\
+ # -------------------------- Auxiliary programs --------------------------- #
+ 
+ $(ECHOGS_XE): $(GLSRC)echogs.c $(AK) $(stdpre_h) $(UNIX_AUX_MAK) $(MAKEDIRS)
++	test -e $(ECHOGS_XE) || \
+ 	$(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(ECHOGS_XE) $(GLSRC)echogs.c $(AUXEXTRALIBS)
+ 
+ $(PACKPS_XE): $(GLSRC)pack_ps.c $(stdpre_h) $(UNIX_AUX_MAK) $(MAKEDIRS)
++	test -e $(PACKPS_XE) || \
+ 	$(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(PACKPS_XE) $(GLSRC)pack_ps.c $(AUXEXTRALIBS)
+ 
+ # On the RS/6000 (at least), compiling genarch.c with gcc with -O
+ # produces a buggy executable.
+ $(GENARCH_XE): $(GLSRC)genarch.c $(AK) $(GENARCH_DEPS) $(UNIX_AUX_MAK) $(MAKEDIRS)
++	test -e $(GENARCH_XE) || \
+ 	$(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENARCH_XE) $(GLSRC)genarch.c $(AUXEXTRALIBS)
+ 
+ $(GENCONF_XE): $(GLSRC)genconf.c $(AK) $(GENCONF_DEPS) $(UNIX_AUX_MAK) $(MAKEDIRS)
++	test -e $(GENCONF_XE) || \
+ 	$(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENCONF_XE) $(GLSRC)genconf.c $(AUXEXTRALIBS)
+ 
+ $(GENDEV_XE): $(GLSRC)gendev.c $(AK) $(GENDEV_DEPS) $(UNIX_AUX_MAK) $(MAKEDIRS)
++	test -e $(GENDEV_XE) || \
+ 	$(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENDEV_XE) $(GLSRC)gendev.c $(AUXEXTRALIBS)
+ 
+ $(GENHT_XE): $(GLSRC)genht.c $(AK) $(GENHT_DEPS) $(UNIX_AUX_MAK) $(MAKEDIRS)
++	test -e $(GENHT_XE) || \
+ 	$(CCAUX_) $(GENHT_CFLAGS) $(O_)$(GENHT_XE) $(GLSRC)genht.c $(AUXEXTRALIBS)
+ 
+ # To get GS to use the system zlib, you remove/hide the gs/zlib directory
+@@ -84,6 +90,7 @@ MKROMFS_OBJS_0=$(MKROMFS_ZLIB_OBJS) $(AUX)gpmisc.$(OBJ) $(AUX)gp_getnv.$(OBJ) \
+  $(AUX)gp_stdia.$(OBJ) $(AUX)gsutil.$(OBJ) $(AUX)memento.$(OBJ)
+ 
+ $(MKROMFS_XE)_0: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_0) $(UNIX_AUX_MAK) $(MAKEDIRS)
++	test -e $(MKROMFS_XE)_0 || \
+ 	$(CCAUX_) $(GENOPTAUX) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_0 $(MKROMFS_OBJS_0) $(AUXEXTRALIBS)
+ 
+ # .... and one using the zlib library linked via the command line
+@@ -93,9 +100,11 @@ MKROMFS_OBJS_1=$(AUX)gscdefs.$(OBJ) \
+  $(AUX)gp_stdia.$(OBJ) $(AUX)gsutil.$(OBJ)
+ 
+ $(MKROMFS_XE)_1: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_1) $(UNIX_AUX_MAK) $(MAKEDIRS)
++	test -e $(MKROMFS_XE)_1 || \
+ 	$(CCAUX_) $(GENOPTAUX) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_1 $(MKROMFS_OBJS_1) $(AUXEXTRALIBS)
+ 
+ $(MKROMFS_XE): $(MKROMFS_XE)_$(SHARE_ZLIB) $(UNIX_AUX_MAK) $(MAKEDIRS)
++	test -e $(MKROMFS_XE) || \
+ 	$(CP_) $(MKROMFS_XE)_$(SHARE_ZLIB) $(MKROMFS_XE)
+ 
+ # Query the environment to construct gconfig_.h.
+diff --git a/base/unix-dll.mak b/base/unix-dll.mak
+index 1111111..2222222 100644
+--- a/base/unix-dll.mak
++++ b/base/unix-dll.mak
+@@ -66,9 +66,6 @@ GPDL_SONAME_BASE=lib$(GPDL_SO_BASE)
+ GS_SOEXT=$(SO_LIB_EXT)
+ GS_DLLEXT=$(DLL_EXT)
+ 
+-GS_SONAME=$(GS_SONAME_BASE)$(GS_SOEXT)$(GS_DLLEXT)
+-GS_SONAME_MAJOR=$(GS_SONAME_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(GS_DLLEXT)
+-GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MINOR)$(GS_DLLEXT)
+ 
+ PCL_SONAME=$(PCL_SONAME_BASE)$(GS_SOEXT)$(GS_DLLEXT)
+ PCL_SONAME_MAJOR=$(PCL_SONAME_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR)$(GS_VERSION_MAJOR)$(GS_DLLEXT)
+diff --git a/configure.ac b/configure.ac
+index 1111111..2222222 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -23,6 +23,7 @@ AC_INIT
+ AC_PREREQ(2.63)
+ AC_LANG(C)
+ AC_CONFIG_SRCDIR(psi/gs.c)
++AC_CANONICAL_HOST
+ 
+ dnl Inherit compiler flags from the environment...
+ CFLAGS="${CFLAGS:=}"
+@@ -125,8 +126,11 @@ AUXEXTRALIBSTMP="\$(EXTRALIBS)"
+ 
+ # purposefully do not include "help" output for this
+ AC_ARG_ENABLE([save_confaux])
++AC_ARG_ENABLE([auxtools_only])
+ 
+-if test x"$CCAUX" != x"" ; then
++absolute_source_path=$(cd "$(dirname "$0")" && pwd)
++
++if test x"$host" != x"$build" ; then
+   # rerun configure for the AUX tools, disabling a load of tests not relevant for CCAUX
+   olddir=`pwd`
+   if test x"$enable_save_confaux" = x"yes"; then
+@@ -146,9 +150,10 @@ if test x"$CCAUX" != x"" ; then
+   echo $AUXFLAGS_MAK_LINE06 >> $AUXFLAGS_MAK.in
+   echo $AUXFLAGS_MAK_LINE07 >> $AUXFLAGS_MAK.in
+ 
+-  ../$0 CC="$CCAUX" CFLAGS="$CFLAGSAUX" LDFLAGS="$LDFLAGSAUX" CCAUX= CFLAGSAUX= CFLAGSAUX= MAKEFILE=$AUXFLAGS_MAK --host= --build= --without-libtiff --disable-contrib --disable-fontconfig --disable-dbus --disable-freetype --disable-fapi --disable-cups --disable-openjpeg --disable-gtk --with-libiconv=no --without-libidn --without-libpaper --without-pdftoraster --without-ijs --without-luratech --without-jbig2dec --without-x --with-drivers=""
++  AC_MSG_NOTICE([Begin recursive call to configure script (for auxiliary tools)])
++  "$absolute_source_path/configure" CC="$CCAUX" CFLAGS="$CFLAGSAUX" LDFLAGS="$LDFLAGSAUX" CCAUX= CFLAGSAUX= CFLAGSAUX= MAKEFILE=$AUXFLAGS_MAK --host=$build --build=$build --enable-auxtools_only --with-local-zlib --without-libtiff --disable-contrib --disable-fontconfig --disable-dbus --disable-freetype --disable-fapi --disable-cups --disable-openjpeg --disable-gtk --with-libiconv=no --without-libidn --without-libpaper --without-pdftoraster --without-ijs --without-luratech --without-jbig2dec --without-x --with-drivers=""
+   status=$?
+-  cp config.log ../configaux.log
++  cp config.log $olddir/configaux.log
+   if test $status -eq 0 ; then
+     CCAUX=$(grep CCAUX $AUXFLAGS_MAK | sed "s/CCAUX=//g")
+     GCFLAGSAUXTMP=$(grep GCFLAGSAUX $AUXFLAGS_MAK | sed "s/GCFLAGSAUX=//g")
+@@ -204,7 +209,7 @@ AC_PATH_TOOL(PKGCONFIG, pkg-config)
+ # but if we are cross compiling, and there isn't a matching
+ # pkconfig for the --host setting, then don't use the 'local'
+ # pkconfig at all
+-if test x"$cross_compiling" = x"yes"; then
++if test x"$host" != x"$build" ; then
+   AC_PATH_PROG(BUILD_PKGCONFIG, pkg-config)
+   if test x"$BUILD_PKGCONFIG" = x"$PKGCONFIG" ; then
+     PKGCONFIG=
+@@ -217,7 +222,7 @@ AC_PATH_TOOL(STRIP_XE, strip)
+ # but if we are cross compiling, and there isn't a matching
+ # pkconfig for the --host setting, then don't use the 'local'
+ # pkconfig at all
+-if test x"$cross_compiling" = x"yes"; then
++if test x"$host" != x"$build" ; then
+   AC_PATH_PROG(BUILD_STRIP_XE, strip)
+   if test x"$BUILD_STRIP_XE" = x"$STRIP_XE" ; then
+     STRIP_XE=
+@@ -234,18 +239,14 @@ CONTRIBINCLUDE="include $srcdir/contrib/contrib.mak"
+ INSTALL_CONTRIB="install-contrib-extras"
+ 
+ if test x"$enable_contrib" = x; then
+-  if test x"$cross_compiling" = x"yes"; then
+-    enable_contrib=
+-  else
+-    case `uname` in
+-      MINGW*|MSYS*)
++    case $host in
++      *-mingw*|*-msys*|*-cygwin*)
+         AC_MSG_WARN([disabling contrib devices])
+         enable_contrib=no
+       ;;
+       *)
+       ;;
+     esac
+-  fi
+ fi
+ 
+ if test x"$enable_contrib" != x"no"; then
+@@ -274,26 +275,27 @@ dnl --------------------------------------------------
+ CC_OPT_FLAGS_TO_TRY="-O"
+ SET_DT_SONAME="-soname="
+ 
+-if test x"$cross_compiling" = x"yes"; then
+-  if test $ac_cv_prog_gcc = yes; then
+-      CC_OPT_FLAGS_TO_TRY="-O2"
+-      CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
+-  fi
+-else
+-  case `uname` in
+-        Linux*|GNU*)
++  case $host in
++        *-mingw*|*-msys*|*-cygwin*)
+         if test $ac_cv_prog_gcc = yes; then
+             CC_OPT_FLAGS_TO_TRY="-O2"
+             CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
+         fi
++        SET_DT_SONAME=""
+         ;;
+-        *BSD)
++        *-linux*|*-gnu)
++        if test $ac_cv_prog_gcc = yes; then
++            CC_OPT_FLAGS_TO_TRY="-O2"
++            CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
++        fi
++        ;;
++        *bsd*)
+         if test $ac_cv_prog_gcc = yes; then
+             CC_OPT_FLAGS_TO_TRY="-O2"
+             CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
+         fi
+         ;;
+-        Darwin*)
++        *-darwin*)
+         if test $ac_cv_prog_gcc = yes; then
+             CC_OPT_FLAGS_TO_TRY="-O2"
+             CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
+@@ -321,7 +323,6 @@ else
+         fi
+         ;;
+   esac
+-fi
+ 
+ AC_SUBST(SET_DT_SONAME)
+ 
+@@ -368,18 +369,20 @@ AC_ARG_WITH([arch_h], AC_HELP_STRING([--with-arch_h=<arch.h to use>],
+ ARCH_CONF_HEADER=
+ 
+ if test x"$with_arch_h" = x""; then
+-  if test x"$cross_compiling" = x"yes"; then
+-    ARCH_CONF_HEADER="\$(GLSRCDIR)/../$ARCH_AUTOCONF_HEADER"
+-  else
+-    case `uname` in
+-          Darwin*)
++  case $host in
++          x86_64*-mingw*|x86_64*-msys*|x86_64*-cygwin*)
++            ARCH_CONF_HEADER="\$(GLSRCDIR)/../arch/windows-x64-msvc.h"
++          ;;
++          *-mingw*|*-msys*|*-cygwin*)
++            ARCH_CONF_HEADER="\$(GLSRCDIR)/../arch/windows-x86-msvc.h"
++          ;;
++          *-darwin*)
+             ARCH_CONF_HEADER="\$(GLSRCDIR)/../arch/osx-x86-x86_64-ppc-gcc.h"
+           ;;
+           *)
+             ARCH_CONF_HEADER=
+           ;;
+     esac
+-  fi
+ else
+   ARCH_CONF_HEADER=$with_arch_h
+ fi
+@@ -658,15 +661,7 @@ dnl Set options that we want to pass into all other
+ dnl configure scripts we might call
+ dnl --------------------------------------------------
+ 
+-SUBCONFIG_OPTS=""
+-
+-if test x"$build_alias" != x""; then
+-  SUBCONFIG_OPTS="$SUBCONFIG_OPTS --build=$build_alias"
+-fi
+-
+-if test x"$host_alias" != x""; then
+-  SUBCONFIG_OPTS="$SUBCONFIG_OPTS --host=$host_alias"
+-fi
++SUBCONFIG_OPTS="--build=$build --host=$host"
+ 
+ dnl --------------------------------------------------
+ dnl Check for libraries
+@@ -996,7 +991,7 @@ if test x"$enable_fapi" != xno; then
+             if $PKGCONFIG --atleast-version=12.0.6 freetype2; then
+                 AC_MSG_RESULT(yes)
+                 FT_CFLAGS="$CFLAGS `$PKGCONFIG --cflags freetype2`"
+-                FT_LIBS="`$PKGCONFIG --libs freetype2`"
++                FT_LIBS="`$PKGCONFIG --libs-only-l freetype2`"
+                 FT_BRIDGE=1
+                 SHARE_FT=1
+             else
+@@ -1047,6 +1042,14 @@ AC_SUBST(FTSRCDIR)
+ AC_SUBST(FT_CFLAGS)
+ AC_SUBST(FT_LIBS)
+ 
++if test x"$enable_auxtools_only" = x"yes" ; then
++  LIBJPEGDIR=
++  SHARE_LIBJPEG=0
++  AC_DEFINE([DONT_HAVE_JMEMSYS_H], 1, [])
++  AC_SUBST(SHARE_LIBJPEG)
++  AC_SUBST(LIBJPEGDIR)
++else
++
+ AC_MSG_CHECKING([for local jpeg library source])
+ dnl At present, we give the local source priority over the shared
+ dnl build, so that the D_MAX_BLOCKS_IN_MCU patch will be applied.
+@@ -1088,6 +1091,13 @@ else
+     [define if the libjpeg memory system prototypes aren't available])
+ fi
+ 
++fi # $enable_auxtools_only
++
++# this option is useful if you're cross-compiling and want to use
++# your toolchain's zlib for $host but the local one for $build
++AC_ARG_WITH([local-zlib], AC_HELP_STRING([--without-local-zlib],
++  [do not check for local zlib sources (has no effect on AUX toolchain when cross-building)]))
++
+ AC_MSG_CHECKING([for local zlib source])
+ dnl zlib is needed for language level 3, and libpng
+ # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
+@@ -1096,6 +1106,13 @@ ZLIBDIR=src
+ AUX_SHARED_ZLIB=
+ ZLIBCFLAGS=""
+ 
++if test x"$with_local_zlib" = x"no" ; then
++  AC_MSG_RESULT([skip])
++  AC_CHECK_LIB(z, deflate, [
++    AC_CHECK_HEADERS(zlib.h, [SHARE_ZLIB=1; AUX_SHARED_ZLIB="-l\$(ZLIB_NAME)"])
++  ])
++else
++
+ if test -d $srcdir/zlib; then
+         AC_MSG_RESULT([yes])
+         SHARE_ZLIB=0
+@@ -1110,6 +1127,9 @@ else
+           AC_CHECK_HEADERS(zlib.h, [SHARE_ZLIB=1; AUX_SHARED_ZLIB="-l\$(ZLIB_NAME)"])
+         ])
+ fi
++
++fi # $with_local_zlib
++
+ if test -z "$SHARE_ZLIB"; then
+   AC_MSG_ERROR([I did not find a copy of zlib on your system.
+   Please either install it, or unpack a copy of the source in a
+@@ -1136,6 +1156,11 @@ AC_SUBST(ZLIBDIR)
+ AC_SUBST(FT_SYS_ZLIB)
+ 
+ dnl png for the png output device; it also requires zlib
++if test x"$enable_auxtools_only" = x"yes" ; then
++  LIBPNGDIR=""
++  SHARE_LIBPNG=0
++else
++
+ LIBPNGDIR=src
+ PNGDEVS=''
+ PNGDEVS_ALL='png48 png16m pnggray pngmono pngmonod png256 png16 pngalpha'
+@@ -1157,12 +1182,21 @@ fi
+ if test -z "$PNGDEVS"; then
+   AC_MSG_NOTICE([disabling png output devices])
+ fi
++
++fi # $enable_auxtools_only
++
+ AC_SUBST(SHARE_LIBPNG)
+ AC_SUBST(LIBPNGDIR)
+ #AC_SUBST(PNGDEVS)
+ 
+ WHICHLCMS=
+ 
++if test x"$enable_auxtools_only" = x"yes" ; then
++  SHARELCMS=0
++  LCMS2DIR=
++  LCMS2MTDIR=
++else
++
+ AC_MSG_CHECKING([for local lcms2mt library source])
+ LCMS2DIR=src
+ LCMS2MTDIR=src
+@@ -1197,6 +1231,8 @@ else
+    fi
+ fi
+ 
++fi # $enable_auxtools_only
++
+ AC_SUBST(SHARELCMS)
+ AC_SUBST(WHICHLCMS)
+ AC_SUBST(LCMS2DIR)
+@@ -1349,7 +1385,7 @@ EXPATDIR=src
+ EXPAT_CFLAGS=
+ EXPAT_LIBS=
+ 
+-if test x"$with_xps" != x"no" ; then
++if test x"$with_xps" != x"no" -a x"$enable_auxtools_only" != x"yes" ; then
+   if test -f $srcdir/xps/xps.mak; then
+     AC_MSG_CHECKING([for local expat library source])
+     if test -f $srcdir/expat/lib/expat.h ; then
+@@ -1528,16 +1564,14 @@ dnl look for IJS implementation
+ AC_ARG_WITH([ijs], AC_HELP_STRING([--without-ijs],
+     [disable IJS driver support]))
+ 
+-if test x"$cross_compiling" != x"yes"; then
+-  case `uname` in
+-    MINGW*|MSYS*)
++  case $host in
++    *-mingw*|*-msys*|*-cygwin*)
+       AC_MSG_WARN([disabling the ijs device])
+       with_ijs=no
+     ;;
+     *)
+     ;;
+   esac
+-fi
+ 
+ dnl set safe defaults
+     IJSDIR=src
+@@ -1589,15 +1623,8 @@ if test x$with_luratech != xno; then
+     SHARE_JBIG2=0
+     JBIG2DIR=$srcdir/luratech/ldf_jb2
+ 
+-    if test x"$cross_compiling" = x"yes"; then
+-        if test x"$JBIG2_CFLAGS" != x""; then
+-          JBIG2_AUTOCONF_CFLAGS="-DUSE_LDF_JB2 -fsigned-char $JBIG2_CFLAGS"
+-        else
+-          JBIG2_AUTOCONF_CFLAGS="-DUSE_LDF_JB2 -fsigned-char -DLINUX=1 -DFORTE"
+-        fi
+-    else
+-      case `uname` in
+-        Darwin*)
++      case $host in
++        *-darwin*)
+           JBIG2_AUTOCONF_CFLAGS="-DUSE_LDF_JB2 -DMAC -DMAC_OS_X_BUILD -fsigned-char"
+         ;;
+         AIX)
+@@ -1611,7 +1638,6 @@ if test x$with_luratech != xno; then
+           JBIG2_AUTOCONF_CFLAGS="-DUSE_LDF_JB2 -fsigned-char -DLINUX=1 -DFORTE"
+         ;;
+       esac
+-    fi
+ 
+     JBIG2FILEDEVS='$(DD)gdevjbig2.dev'
+     JBIG2DEVS='$(PSD)jbig2.dev'
+@@ -1718,15 +1744,8 @@ if test x$with_luratech != xno; then
+     SHARE_JPX=0
+     JPXDIR=$srcdir/luratech/lwf_jp2
+ 
+-    if test x"$cross_compiling" = x"yes"; then
+-        if test x"$JPX_CFLAGS" != x""; then
+-          JPX_AUTOCONF_CFLAGS="-DUSE_LWF_JP2 $JPX_CFLAGS"
+-        else
+-          JPX_AUTOCONF_CFLAGS="-DUSE_LWF_JP2 -DLINUX=1 -DFORTE"
+-        fi
+-    else
+-      case `uname` in
+-        Darwin*)
++      case $host in
++        *-darwin*)
+           JPX_AUTOCONF_CFLAGS="-DUSE_LWF_JP2 -DMAC -DMAC_OS_X_BUILD"
+         ;;
+         AIX)
+@@ -1740,7 +1759,6 @@ if test x$with_luratech != xno; then
+           JPX_AUTOCONF_CFLAGS="-DUSE_LWF_JP2 -DLINUX=1 -DFORTE"
+         ;;
+       esac
+-    fi
+     JPXDEVS='$(PSD)jpx.dev'
+   else
+     AC_MSG_RESULT([no])
+@@ -2357,22 +2375,15 @@ SO_LIB_EXT=".so"
+ DLL_EXT=""
+ SO_LIB_VERSION_SEPARATOR="."
+ 
+-if test x"$cross_compiling" = x"yes"; then
+-  DYNAMIC_CFLAGS="-fPIC"
+-  GS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)"
+-  PCL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PCL_SONAME_MAJOR)"
+-  XPS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(XPS_SONAME_MAJOR)"
+-  PDL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GPDL_SONAME_MAJOR)"
+-  if test $ac_cv_prog_gcc = yes; then
+-    # GCC high level flag
+-    DYNAMIC_LIBS="-rdynamic"
+-  else
+-    DYNAMIC_LIBS=""
+-  fi
+-  SO_LIB_EXT=".so"
+-else
+-  case `uname` in
+-    Linux*|GNU*)
++libname1="_SO_BASE)\$(GS_SOEXT)\$(DLL_EXT)"
++libname2="_SO_BASE)\$(GS_SOEXT)\$(SO_LIB_VERSION_SEPARATOR)\$(GS_VERSION_MAJOR)\$(DLL_EXT)"
++libname3="_SO_BASE)\$(GS_SOEXT)\$(SO_LIB_VERSION_SEPARATOR)\$(GS_VERSION_MAJOR)\$(SO_LIB_VERSION_SEPARATOR)\$(GS_VERSION_MINOR)\$(DLL_EXT)"
++GS_SONAME="lib\$(GS${libname1}"
++GS_SONAME_MAJOR="lib\$(GS${libname2}"
++GS_SONAME_MAJOR_MINOR="lib\$(GS${libname3}"
++
++case $host in
++    *-linux*|*-gnu)
+       DYNAMIC_CFLAGS="-fPIC"
+       GS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)"
+       PCL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PCL_SONAME_MAJOR)"
+@@ -2386,17 +2397,21 @@ else
+       fi
+       SO_LIB_EXT=".so"
+     ;;
+-    MINGW*|MSYS*)
+-      DYNAMIC_CFLAGS=""
+-      GS_DYNAMIC_LDFLAGS="-shared  -Wl,--out-implib=\$(BINDIR)/lib\$(GS_SO_BASE).dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import"
++    *-mingw*|*-msys*|*-cygwin*)
++      DYNAMIC_CFLAGS="-fvisibility=hidden -DGSDLLEXPORT=\"__declspec(dllexport)\""
++      GS_DYNAMIC_LDFLAGS="-shared -Wl,--out-implib=\$(BINDIR)/lib\$(GS_SO_BASE).dll.a -Wl,--enable-auto-import"
+       PCL_DYNAMIC_LDFLAGS="-shared  -Wl,--out-implib=\$(BINDIR)/lib\$(PCL_SO_BASE).dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import"
+       XPS_DYNAMIC_LDFLAGS="-shared  -Wl,--out-implib=\$(BINDIR)/lib\$(XPS_SO_BASE).dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import"
+       PDL_DYNAMIC_LDFLAGS="-shared  -Wl,--out-implib=\$(BINDIR)/lib\$(PDL_SO_BASE).dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import"
+       SO_LIB_EXT=""
+       DLL_EXT=".dll"
+       SO_LIB_VERSION_SEPARATOR="-"
++      # make sure the import library doesn't link a program against the DLL with the minor version in it
++      GS_SONAME="lib\$(GS${libname1}"
++      GS_SONAME_MAJOR="lib\$(GS${libname3}"
++      GS_SONAME_MAJOR_MINOR="lib\$(GS${libname2}"
+     ;;
+-    *BSD)
++    *bsd*)
+       DYNAMIC_CFLAGS="-fPIC"
+       GS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)"
+       PCL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PCL_SONAME_MAJOR)"
+@@ -2404,7 +2419,7 @@ else
+       DYNAMIC_LIBS=""
+       SO_LIB_EXT=".so"
+     ;;
+-    Darwin*)
++    *-darwin*)
+       GS_DYNAMIC_LDFLAGS="-dynamiclib -install_name \$(GS_SONAME_MAJOR_MINOR)"
+       PCL_DYNAMIC_LDFLAGS="-dynamiclib -install_name \$(PCL_SONAME_MAJOR_MINOR)"
+       XPS_DYNAMIC_LDFLAGS="-dynamiclib -install_name \$(XPS_SONAME_MAJOR_MINOR)"
+@@ -2442,15 +2457,18 @@ else
+       fi
+       SO_LIB_EXT=".so"
+       ;;
+-  esac
+-fi
++esac
++
++AC_SUBST(GS_SONAME)
++AC_SUBST(GS_SONAME_MAJOR)
++AC_SUBST(GS_SONAME_MAJOR_MINOR)
+ 
+ AC_ARG_ENABLE([dynamic], AC_HELP_STRING([--enable-dynamic],
+     [Enable dynamically loaded drivers]),
+ [
+   if test "x$enable_dynamic" != xno; then
+-    case `uname` in
+-      Linux*|GNU*)
++    case $host in
++      *-linux*|*-gnu)
+       INSTALL_SHARED="install-shared"
+       if test "x$X_DEVS" != x; then
+               DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so"
+@@ -2462,14 +2480,14 @@ AC_ARG_ENABLE([dynamic], AC_HELP_STRING([--enable-dynamic],
+       OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS"
+       DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS"
+       ;;
+-      *BSD)
++      *bsd*)
+       DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so"
+       DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\""
+       X11_DEVS=""
+       OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS"
+       DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS"
+       ;;
+-      Darwin*)
++      *-darwin*)
+       INSTALL_SHARED="install-shared"
+       DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\""
+       X11_DEVS=""
+@@ -2814,23 +2832,31 @@ AC_SUBST(AUXDIRPOSTFIX)
+ # usually empty on Unix-like systems
+ # --------------------------------------------------
+ EXEEXT=""
++AUXEXEEXT=""
++
++case $host in
++    *-mingw*|*-msys*|*-cygwin*)
++      EXEEXT=".exe"
++    ;;
++    *)
++    ;;
++esac
+ 
+ AC_ARG_WITH([exe-ext],  AC_HELP_STRING([--with-exe-ext=EXT],
+-    [set the file name executable extension (must include any separator e.g. the period in ".exe")]),[], [exe_ext=])
++    [set the file name executable extension (must include any separator e.g. the period in ".exe")]),
++    [EXEEXT="$with_exe_ext"])
+ 
+-if test "x"$with_exe_ext != "x"; then
+-  EXEEXT="$with_exe_ext"
+-else
+-  if test x"$cross_compiling" != x"yes"; then
+-    case `uname` in
+-      MINGW*|MSYS*)
+-        EXEEXT=".exe"
+-      ;;
+-    esac
+-  fi
+-fi
++case $build in
++    *-mingw*|*-msys*|*-cygwin*)
++      AUXEXEEXT=".exe"
++    ;;
++    *)
++      AUXEXEEXT="$EXEEXT"
++    ;;
++esac
+ 
+ AC_SUBST(EXEEXT)
++AC_SUBST(AUXEXEEXT)
+ 
+ # --------------------------------------------------
+ # Check for disabling of versioned path option.
+@@ -2885,7 +2911,7 @@ fi
+ 
+ AC_SUBST(CLUSTER_CFLAGS)
+ 
+-if test x"$CCAUX" != x"$CC"; then
++if test x"$build" != x"$host"; then
+ 
+   ilog2()
+   {
+@@ -3025,7 +3051,7 @@ AC_SUBST(AUXEXTRALIBS)
+ 
+ CONFIG_FILES_LIST="$CONFIG_FILES_LIST $THEMAKEFILE"
+ 
+-if test x"$THEMAKEFILE" != x"$MAKEFILE" && test x"$CCAUX" = x"$CC"; then
++if test x"$THEMAKEFILE" != x"$MAKEFILE" && test x"$build" = x"$host"; then
+   CONFIG_FILES_LIST="$CONFIG_FILES_LIST"
+ fi
+ 
+diff --git a/psi/iapi.h b/psi/iapi.h
+index 1111111..2222222 100644
+--- a/psi/iapi.h
++++ b/psi/iapi.h
+@@ -68,6 +68,11 @@ extern "C" {
+ #    define GSDLLEXPORT
+ #  endif
+ # endif
++# ifdef __MINGW32__
++/* export stdcall functions as "name" instead of "_name@ordinal" */
++#  undef GSDLLAPI
++#  define GSDLLAPI
++# endif
+ # ifndef GSDLLAPI
+ #  define GSDLLAPI __stdcall
+# endif
--- a/src/ghostscript-mingw-i686-arch.h	Fri Feb 15 11:27:55 2019 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/* Parameters derived from machine and compiler architecture. */
-/* This file is generated mechanically by genarch.c. */
-
-	 /* ---------------- Scalar alignments ---------------- */
-
-#define ARCH_ALIGN_SHORT_MOD 2
-#define ARCH_ALIGN_INT_MOD 4
-#define ARCH_ALIGN_LONG_MOD 4
-#define ARCH_ALIGN_PTR_MOD 4
-#define ARCH_ALIGN_FLOAT_MOD 4
-#define ARCH_ALIGN_DOUBLE_MOD 8
-
-	 /* ---------------- Scalar sizes ---------------- */
-
-#define ARCH_LOG2_SIZEOF_CHAR 0
-#define ARCH_LOG2_SIZEOF_SHORT 1
-#define ARCH_LOG2_SIZEOF_INT 2
-#define ARCH_LOG2_SIZEOF_LONG 2
-#define ARCH_LOG2_SIZEOF_LONG_LONG 3
-#define ARCH_SIZEOF_GX_COLOR_INDEX 8
-#define ARCH_SIZEOF_PTR 4
-#define ARCH_SIZEOF_FLOAT 4
-#define ARCH_SIZEOF_DOUBLE 8
-#define ARCH_FLOAT_MANTISSA_BITS 24
-#define ARCH_DOUBLE_MANTISSA_BITS 53
-
-	 /* ---------------- Unsigned max values ---------------- */
-
-#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
-#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
-#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
-#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
-
-	 /* ---------------- Miscellaneous ---------------- */
-
-#define ARCH_IS_BIG_ENDIAN 0
-#define ARCH_PTRS_ARE_SIGNED 0
-#define ARCH_FLOATS_ARE_IEEE 1
-#define ARCH_ARITH_RSHIFT 2
-#define ARCH_DIV_NEG_POS_TRUNCATES 1
--- a/src/ghostscript-mingw-i686-gconfig_.h	Fri Feb 15 11:27:55 2019 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-/* This file was generated automatically by unix-aux.mak. */
-
-#ifndef HAVE_DIRENT_H
-#define HAVE_DIRENT_H 0
-#endif
-
-#ifndef HAVE_NDIR_H
-#define HAVE_NDIR_H 0
-#endif
-
-#ifndef HAVE_SYS_DIR_H
-#define HAVE_SYS_DIR_H 0
-#endif
-
-#ifndef HAVE_SYS_NDIR_H
-#define HAVE_SYS_NDIR_H 0
-#endif
-
-#ifndef HAVE_SYS_TIME_H
-#define HAVE_SYS_TIME_H 0
-#endif
-
-#ifndef HAVE_SYS_TIMES_H
-#define HAVE_SYS_TIMES_H 0
-#endif
-
--- a/src/ghostscript-mingw-i686-makefile	Fri Feb 15 11:27:55 2019 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,647 +0,0 @@
-# Copyright (C) 2001-2014 Artifex Software, Inc.
-# All Rights Reserved.
-#
-# This software is provided AS-IS with no warranty, either express or
-# implied.
-#
-# This software is distributed under license and may not be copied,
-# modified or distributed except as expressly authorized under the terms
-# of the license contained in the file LICENSE in this distribution.
-#
-# Refer to licensing information at http://www.artifex.com or contact
-# Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134, San Rafael,
-# CA  94903, U.S.A., +1(415)492-9861, for further information.
-#
-# makefile template for/from the autoconf build.
-# Makefile.  Generated from Makefile.in by configure.
-
-# ------------------------------- Options ------------------------------- #
-
-####### The following are the only parts of the file you should need to edit.
-
-# Define the directory for the final executable, and the
-# source, generated intermediate file, and object directories
-# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
-
-BINDIR=./$(BUILDDIRPREFIX)bin
-GLSRCDIR=./base
-DEVSRCDIR=./devices
-GLGENDIR=./$(BUILDDIRPREFIX)obj
-GLOBJDIR=./$(BUILDDIRPREFIX)obj
-DEVGENDIR=./$(BUILDDIRPREFIX)obj
-DEVOBJDIR=./$(BUILDDIRPREFIX)obj
-AUXDIR=$(GLGENDIR)/aux_
-PSSRCDIR=./psi
-PSLIBDIR=./lib
-PSRESDIR=./Resource
-PSGENDIR=./$(BUILDDIRPREFIX)obj
-PSOBJDIR=./$(BUILDDIRPREFIX)obj
-CONTRIBDIR=./contrib
-
-# Do not edit the next group of lines.
-
-include $(GLSRCDIR)/version.mak
-DD=$(GLGENDIR)/
-GLD=$(GLGENDIR)/
-PSD=$(PSGENDIR)/
-
-# ------ Generic options ------ #
-
-# Define the installation commands and target directories for
-# executables and files.  The commands are only relevant to `make install';
-# the directories also define the default search path for the
-# initialization files (gs_*.ps) and the fonts.
-
-INSTALL = $(GLSRCDIR)/instcopy -c
-INSTALL_PROGRAM = $(INSTALL) -m 755
-INSTALL_DATA = $(INSTALL) -m 644
-INSTALL_SHARED = 
-
-prefix = /usr/local
-exec_prefix = ${prefix}
-bindir = ${exec_prefix}/bin
-scriptdir = $(bindir)
-includedir = ${prefix}/include
-libdir = ${exec_prefix}/lib
-mandir = ${datarootdir}/man
-man1ext = 1
-man1dir = $(mandir)/man$(man1ext)
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-
-# The following must be substituted using ${datarootdir} and ${exec_prefix}/lib
-# to avoid adding RPM generation paths (CUPS STR #1112)
-gsdir = ${datarootdir}/ghostscript
-gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
-gssharedir = ${exec_prefix}/lib/ghostscript/$(GS_DOT_VERSION)
-gsincludedir = ${prefix}/include/ghostscript/
-
-docdir=$(gsdatadir)/doc
-exdir=$(gsdatadir)/examples
-GS_DOCDIR=/usr/share/ghostscript/$(GS_DOT_VERSION)/doc
-
-# Choose whether to compile the .ps initialization files into the executable.
-# See gs.mak for details.
-
-COMPILE_INITS=1
-
-# Define the default directory/ies for the runtime
-# initialization and font files.  Separate multiple directories with a :.
-
-GS_LIB_DEFAULT=/usr/share/ghostscript/$(GS_DOT_VERSION)/Resource/Init:/usr/share/ghostscript/$(GS_DOT_VERSION)/lib:/usr/share/ghostscript/$(GS_DOT_VERSION)/Resource/Font:/usr/share/ghostscript/fonts:/usr/share/fonts/default/ghostscript:/usr/share/fonts/default/Type1:/usr/share/fonts/default/TrueType:/usr/lib/DPS/outline/base
-
-# Define the default directory for cached data files
-# this must be a single path.
-
-GS_CACHE_DIR="~/.ghostscript/cache/"
-
-# Define whether or not searching for initialization files should always
-# look in the current directory first.  This leads to well-known security
-# and confusion problems,  but may be convenient sometimes.
-
-SEARCH_HERE_FIRST=0
-
-# Define the name of the interpreter initialization file.
-# (There is no reason to change this.)
-
-GS_INIT=gs_init.ps
-
-# Choose generic configuration options.
-
-TARGET_ARCH_FILE=
-
-# -DDEBUG
-#	includes debugging features (-Z switch) in the code.
-#	  Code runs substantially slower even if no debugging switches
-#	  are set.
-
-GENOPT=
-
-# Choose capability options.
-
-# -DHAVE_BSWAP32
-#       use bswap32 intrinsic
-# -DHAVE_BYTESWAP_H
-#       use byteswap.h functions
-#
-# -DHAVE_MKSTEMP
-#	uses mkstemp instead of mktemp
-#		This uses the more secure temporary file creation call
-#		Enable this if it is available on your platform.
-# -DHAVE_FILE64
-#	use marked versions of the stdio FILE calls, fopen64() et al.
-#
-# -DHAVE_MKSTEMP64
-#	use non-standard function mkstemp64()
-#
-# -DHAVE_LIBIDN
-#	use libidn to canonicalize Unicode passwords
-#
-# -DHAVE_SETLOCALE
-#	call setlocale(LC_CTYPE) when running as a standalone app
-# -DHAVE_SSE2
-#       use sse2 intrinsics
-
-CAPOPT=  -DHAVE_FILE64  -DHAVE_SETLOCALE -DHAVE_BSWAP32  -DHAVE_STRERROR
-
-# Define the name of the executable file.
-
-GS=gs.exe
-GS_SO_BASE=gs
-XE=.exe
-XEAUX=.exe
-
-# Define the directories for debugging and profiling binaries, relative to
-# the standard binaries.
-
-DEBUGDIRPREFIX=debug
-MEMENTODIRPREFIX=mem
-PGDIRPREFIX=pg
-
-# Define whether to compile in the FreeType library, and if so, where
-# the source tree is location. Otherwise, what library name to use
-# in linking to a shared implementation.
-
-FT_BRIDGE=1
-SHARE_FT=1
-FTSRCDIR=./freetype
-#FT_CFLAGS=-I./freetype/include
-FT_CFLAGS=-I$(prefix)/include/freetype2
-FT_LIBS=-lfreetype
-FT_CONFIG_SYSTEM_ZLIB=
-
-# Define whether to compile in UFST. Note that freetype will/must be disabled.
-# FAPI/UFST depends on UFST_BRIDGE being undefined - hence the construct below.
-# (i.e. use "UFST_BRIDGE=1" or *not to define UFST_BRIDGE to anything*)
-
-UFST_ROOT=
-UFST_LIB_EXT=
-
-UFST_ROMFS_ARGS?=-b \
- -P $(UFST_ROOT)/fontdata/mtfonts/pcl45/mt3/ -d fontdata/mtfonts/pcl45/mt3/ pcl___xj.fco plug__xi.fco wd____xh.fco \
- -P $(UFST_ROOT)/fontdata/mtfonts/pclps2/mt3/ -d fontdata/mtfonts/pclps2/mt3/ pclp2_xj.fco \
- -c -P $(PSSRCDIR)/../lib/ -d Resource/Init/ FAPIconfig-FCO
-
-UFSTROMFONTDIR=\"%rom%fontdata/\"
-UFSTDISCFONTDIR?=\"$(UFST_ROOT)/fontdata/\"
-
-
-UFST_CFLAGS=
-
-# Define the directory where the IJG JPEG library sources are stored,
-# and the major version of the library that is stored there.
-# You may need to change this if the IJG library version changes.
-# See jpeg.mak for more information.
-
-JSRCDIR=./jpeg
-
-# Note: if a shared library is used, it may not contain the
-# D_MAX_BLOCKS_IN_MCU patch, and thus may not be able to read
-# some older JPEG streams that violate the standard. If the JPEG
-# library built from local sources, the patch will be applied.
-
-SHARE_JPEG=1
-JPEG_NAME=jpeg
-
-# Define the directory where the PNG library sources are stored,
-# and the version of the library that is stored there.
-# You may need to change this if the libpng version changes.
-# See png.mak for more information.
-
-SHARE_LIBPNG=1
-PNGSRCDIR=libpng
-LIBPNG_NAME=png
-
-# libtiff
-SHARE_LIBTIFF=1
-TIFFSRCDIR=./tiff
-TIFFCONFDIR=
-TIFFPLATFORM=unix
-TIFFCONFIG_SUFFIX=
-LIBTIFF_NAME=tiff
-
-# Define the directory where the zlib sources are stored.
-# See zlib.mak for more information.
-
-SHARE_ZLIB=1
-ZSRCDIR=zlib
-#ZLIB_NAME=gz
-ZLIB_NAME=z
-
-# Choose shared or compiled in libjbig2dec and source location
-# JBIG2_LIB=jbig2dec
-JBIG2_LIB=jbig2dec
-SHARE_JBIG2=0
-JBIG2SRCDIR=./jbig2dec
-JBIG2_CFLAGS=-DHAVE_STDINT_H=1
-
-# uncomment the following three lines and one of the last two to
-# compile in the Luratech ldf_jb2 codec
-#JBIG2_LIB=luratech
-#SHARE_JBIG2=0
-#JBIG2SRCDIR=ldf_jb2
-#JBIG2_CFLAGS=-DUSE_LDF_JB2 -DLINUX
-#JBIG2_CFLAGS=-DUSE_LDF_JB2 -DMAC -DMAC_OS_X_BUILD
-
-
-# Choose the library to use for (JPXDecode support)
-# whether to link to an external build or compile in from source
-# and source location and configuration flags for compiling in
-JPX_LIB=openjpeg
-SHARE_JPX=0
-JPXSRCDIR=./openjpeg
-JPX_CFLAGS=-D"memalign(a,b)=malloc(b)" -DUSE_JPIP -DUSE_OPENJPEG_JP2  -DOPJ_HAVE_INTTYPES_H=1  
-
-# uncomment the following three lines and one of the last two to
-# compile in the Luratech lwf_jp2 codec
-#JPX_LIB=luratech
-#SHARE_JPX=0
-#JPXSRCDIR=lwf_jp2
-#JPX_CFLAGS=-DUSE_LWF_JP2 -DLINUX
-#JPX_CFLAGS=-DUSE_LWF_JP2 -DMAC -DMAC_OS_X_BUILD
-
-# Uncomment the following 4 lines to to compile in OpenJPEG codec
-#JPX_LIB=openjpeg
-#SHARE_JPX=0
-#JPXSRCDIR=openjpeg
-#JPX_CFLAGS=-DUSE_OPENJPEG_JP2 -DOPJ_STATIC
-
-# options for lcms color management library
-SHARE_LCMS=0
-LCMSSRCDIR=
-LCMS2SRCDIR=lcms2
-LCMS_CFLAGS=
-LCMS2_CFLAGS=
-
-# Which CMS are we using?
-# Options are currently lcms or lcms2
-WHICH_CMS=lcms2
-
-# Define the directory where the ijs source is stored,
-# and the process forking method to use for the server.
-# See ijs.mak for more information.
- 
-SHARE_IJS=0
-IJS_NAME=
-IJSSRCDIR=src
-IJSEXECTYPE=unix
-
-# Define install location for 'cups' device/filter support
-CUPSLIBS=
-CUPSLIBDIRS=
-CUPSSERVERBIN=
-CUPSSERVERROOT=
-CUPSDATA=
-CUPSPDFTORASTER=0
-
-SHARE_LCUPS=1
-LCUPS_NAME=cups
-LCUPSSRCDIR=./cups
-LCUPSBUILDTYPE=
-CUPS_CC=$(CC)
-
-SHARE_LCUPSI=1
-LCUPSI_NAME=cupsimage
-LCUPSISRCDIR=./cups
-CUPS_CC=$(CC)
-
-CUPSCFLAGS= -DSHARE_LCUPS=$(SHARE_LCUPS) -DSHARE_LCUPSI=$(SHARE_LCUPSI)
-
-TRIOSRCDIR=./trio
-AC_TRIO_CFLAGS=    
-TRIO_CFLAGS=$(TRIO_XCFLAGS) $(AC_TRIO_CFLAGS)
-SHARE_TRIO=0
-
-# Define how to build the library archives.  (These are not used in any
-# standard configuration.)
-
-AR=ar
-ARFLAGS=qc
-RANLIB=ranlib
-
-# ------ Platform-specific options ------ #
-
-# Define the name of the C compiler (target and host (AUX))
-
-CC=gcc
-CCAUX=gcc
-
-# Define the name of the linker for the final link step.
-# Normally this is the same as the C compiler.
-
-CCLD=$(CC)
-CCAUXLD=$(CCAUX)
-
-# Define the default gcc flags.
-GCFLAGS=-Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=2 -DHAVE_DIRENT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -DNOCONTRIB -DUSE_LIBICONV_GNU -DGS_NO_UTF8=1 -DHAVE_FSEEKO=1
-
-# Define the added flags for standard, debugging, profiling 
-# and shared object builds.
-
-CFLAGS_STANDARD= -O
-CFLAGS_DEBUG=
-CFLAGS_PROFILE=-pg  -O
-CFLAGS_SO=
-
-# Define the other compilation flags.  Add at most one of the following:
-#	-DBSD4_2 for 4.2bsd systems.
-#	-DSYSV for System V or DG/UX.
-# 	-DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
-#	   or any System III Unix, or System V release 3-or-older Unix.
-#	-DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
-#	-DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
-# XCFLAGS can be set from the command line.
-# We don't include -ansi, because this gets in the way of the platform-
-#   specific stuff that <math.h> typically needs; nevertheless, we expect
-#   gcc to accept ANSI-style function prototypes and function definitions.
-# CFLAGS from autoconf
-AC_CFLAGS=
-
-# fontconfig flags, used by unix-aux.mak
-FONTCONFIG_CFLAGS=
-FONTCONFIG_LIBS=
-
-# DBus flags, used by cups.mak
-DBUS_CFLAGS=
-DBUS_LIBS=
-
-# defines from autoconf; note that we don't use these at present.
-ACDEFS=-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_INTTYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_INT=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_LIBM=1 -DUSE_LIBICONV_GNU=1 -DX_DISPLAY_MISSING=1 -DHAVE_FOPEN64=1 -DHAVE_SETLOCALE=1 -DHAVE_STRERROR=1 -Dvfork=fork -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1
-
-CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(AC_CFLAGS) $(XCFLAGS)
-
-# Define platform flags for ld.
-# SunOS 4.n may need -Bstatic.
-# Solaris 2.6 (and possibly some other versions) with any of the SHARE_
-# parameters set to 1 may need
-#	-R /usr/local/xxx/lib:/usr/local/lib
-# giving the full path names of the shared library directories.
-# XLDFLAGS can be set from the command line.
-# AC_LDFLAGS from autoconf
-AC_LDFLAGS=
-
-LDFLAGS=$(AC_LDFLAGS) $(XLDFLAGS)
-
-LDFLAGS_SO=-shared  -Wl,--out-implib=$(BINDIR)/lib$(GS_SO_BASE).dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import
-
-# Define any extra libraries to link into the executable.
-# ISC Unix 2.2 wants -linet.
-# SCO Unix needs -lsocket if you aren't including the X11 driver.
-# SVR4 may need -lnsl.
-# Solaris may need -lnsl -lsocket -lposix4.
-# (Libraries required by individual drivers are handled automatically.)
-
-EXTRALIBS=$(XTRALIBS) -lm  -liconv -lfreetype
-AUXEXTRALIBS=$(XTRALIBS) -lm -lz
-
-# Define the standard libraries to search at the end of linking.
-# Most platforms require -lpthread for the POSIX threads library;
-# on FreeBSD, change -lpthread to -lc_r; BSDI and perhaps some others
-# include pthreads in libc and don't require any additional library.
-# All reasonable platforms require -lm, but Rhapsody and perhaps one or
-# two others fold libm into libc and don't require any additional library.
-
-STDLIBS= -lm
-
-# Define the include switch(es) for the X11 header files.
-# This can be null if handled in some other way (e.g., the files are
-# in /usr/include, or the directory is supplied by an environment variable)
-
-XINCLUDE=
-
-# Define the directory/ies and library names for the X11 library files.
-# XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
-# (dynamic libraries on SVR4) and should not include -L.
-# Newer SVR4 systems can use -R in XLIBDIRS rather than setting XLIBDIR.
-# Both can be null if these files are in the default linker search path.
-
-# Solaris and other SVR4 systems with dynamic linking probably want
-#XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
-# X11R6 (on any platform) may need
-#XLIBS=Xt SM ICE Xext X11
-
-# We use the autoconf macro AC_PATH_XTRA which defines X_LIBS with
-# the -L (or whatever). It also defines X_PRE_LIBS and X_EXTRA_LIBS 
-# all three of which are stripped and slotted into XLIBS below.
-# Usually however, all but X_LIBS are empty on modern platforms.
-XLIBDIRS=
-XLIBDIR=
-#XLIBS=Xt Xext X11
-XLIBS=
-
-# Define the .dev module that implements thread and synchronization
-# primitives for this platform.
-
-# If POSIX sync primitives are used, also change the STDLIBS to include
-# the pthread library. Otherwise use SYNC=nosync
-#SYNC=posync
-#SYNC=nosync
-SYNC=nosync
-
-# programs we use
-RM=rm -f
-
-# ------ Dynamic loader options ------- #
-SOC_CFLAGS	=	
-SOC_LIBS	=	
-SOC_LOADER	=	dxmainc.c
-
-# on virtually every Unix-a-like system, this is "so",
-# but Apple just had to be different, so it's now set
-# by configure
-SO_LIB_EXT=
-DLL_EXT=.dll
-SO_LIB_VERSION_SEPARATOR=-
-
-#CAIRO_CFLAGS	=	@CAIRO_CFLAGS@
-#CAIRO_LIBS	=	@CAIRO_LIBS@
-
-# ------ Devices and features ------ #
-
-# Choose the language feature(s) to include.  See gs.mak for details.
-
-FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(GLD)pipe.dev $(GLD)gsnogc.dev $(GLD)htxlib.dev $(PSD)jbig2.dev $(PSD)jpx.dev $(GLD)ramfs.dev
-#FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev
-#FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(GLD)pipe.dev
-# The following is strictly for testing.
-FEATURE_DEVS_ALL=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(PSD)double.dev $(PSD)trapping.dev $(PSD)stocht.dev $(GLD)pipe.dev $(GLD)gsnogc.dev $(GLD)htxlib.dev $(PSD)jbig2.dev $(PSD)jpx.dev $(GLD)ramfs.dev
-#FEATURE_DEVS=$(FEATURE_DEVS_ALL)
-
-# The list of resources to be included in the %rom% file system.
-# This is in the top makefile since the file descriptors are platform specific
-RESOURCE_LIST=Resource/CMap/ Resource/ColorSpace/ Resource/Decoding/ Resource/Font/ Resource/ProcSet/ Resource/IdiomSet/ Resource/CIDFont/
-
-# Choose whether to store band lists on files or in memory.
-# The choices are 'file' or 'memory'.
-
-BAND_LIST_STORAGE=file
-
-# Choose which compression method to use when storing band lists in memory.
-# The choices are 'lzw' or 'zlib'.
-
-BAND_LIST_COMPRESSOR=zlib
-
-# Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
-# See gs.mak and sfxfd.c for more details.
-
-FILE_IMPLEMENTATION=stdio
-
-# Choose the implementation of stdio: '' for file I/O and 'c' for callouts
-# See gs.mak and ziodevs.c/ziodevsc.c for more details.
-
-STDIO_IMPLEMENTATION=c
-
-# List of default devices, in order of priority. They need not be 
-# present in the actual build.
-GS_DEV_DEFAULT="x11alpha bbox"
-
-# Fallback default device.  This is set to 'display' by 
-# unix-dll.mak when building a shared object.
-DISPLAY_DEV=$(DD)bbox.dev
-
-# Choose the device(s) to include.  See devs.mak for details,
-# devs.mak and contrib.mak for the list of available devices.
-
-#DEVICE_DEVS=$(DISPLAY_DEV) $(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev
-#DEVICE_DEVS=$(DISPLAY_DEV) @X11DEVS@
-#DEVICE_DEVS=$(DISPLAY_DEV) @X_DEVS@
-
-#DEVICE_DEVS1=$(DD)bmpmono.dev $(DD)bmpgray.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16.dev $(DD)bmp256.dev $(DD)bmp16m.dev $(DD)bmp32b.dev
-#DEVICE_DEVS2=#$(DD)gdevjbig2.dev $(DD)gdevjpx.dev #$(DD)rinkj.dev
-#DEVICE_DEVS3=$(DD)deskjet.dev $(DD)djet500.dev $(DD)laserjet.dev $(DD)ljetplus.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev $(DD)lj5mono.dev $(DD)lj5gray.dev
-#DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev $(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev
-#DEVICE_DEVS5=$(DD)uniprint.dev @IJSDEVS@
-#DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev
-#DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev $(DD)cfax.dev
-#DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev
-#DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev
-#DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
-#DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiff48nc.dev $(DD)tiffgray.dev $(DD)tiff32nc.dev $(DD)tiff64nc $(DD)tiffsep.dev $(DD)tiffsep1.dev
-#DEVICE_DEVS12=$(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
-#DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev
-#DEVICE_DEVS13=@PNGDEVS@
-#DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev
-#DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)ps2write.dev $(DD)eps2write.dev $(DD)txtwrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
-#DEVICE_DEVS16=$(DD)bbox.dev
-
-#DEVICE_DEVS17=
-#DEVICE_DEVS18=
-#DEVICE_DEVS19=
-#DEVICE_DEVS20=$(DD)cljet5.dev $(DD)cljet5c.dev
-#DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)xcf.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev $(DD)psdcmykog.dev $(DD)fpng.dev
-DEVICE_DEVS=$(DISPLAY_DEV) 
-DEVICE_DEVS1=$(DD)bit.dev $(DD)bitcmyk.dev $(DD)bitrgb.dev $(DD)bitrgbtags.dev $(DD)bmp16.dev $(DD)bmp16m.dev $(DD)bmp256.dev $(DD)bmp32b.dev $(DD)bmpgray.dev $(DD)bmpmono.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)ccr.dev $(DD)cif.dev $(DD)devicen.dev $(DD)eps2write.dev $(DD)fpng.dev $(DD)inferno.dev $(DD)ink_cov.dev $(DD)inkcov.dev $(DD)jpeg.dev $(DD)jpegcmyk.dev $(DD)jpeggray.dev $(DD)mgr4.dev $(DD)mgr8.dev $(DD)mgrgray2.dev $(DD)mgrgray4.dev $(DD)mgrgray8.dev $(DD)mgrmono.dev $(DD)miff24.dev $(DD)pam.dev $(DD)pamcmyk32.dev $(DD)pamcmyk4.dev $(DD)pbm.dev $(DD)pbmraw.dev $(DD)pcx16.dev $(DD)pcx24b.dev $(DD)pcx256.dev $(DD)pcx2up.dev $(DD)pcxcmyk.dev $(DD)pcxgray.dev $(DD)pcxmono.dev $(DD)pdfwrite.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev $(DD)plan.dev $(DD)plan9bm.dev $(DD)planc.dev $(DD)plang.dev $(DD)plank.dev $(DD)planm.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)ps2write.dev $(DD)psdcmyk.dev $(DD)psdcmykog.dev $(DD)psdf.dev $(DD)psdrgb.dev $(DD)sgirgb.dev $(DD)spotcmyk.dev $(DD)sunhmono.dev $(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiff32nc.dev $(DD)tiff48nc.dev $(DD)tiff64nc.dev $(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tiffgray.dev $(DD)tifflzw.dev $(DD)tiffpack.dev $(DD)tiffs.dev $(DD)tiffscaled.dev $(DD)tiffsep.dev $(DD)tiffsep1.dev $(DD)txtwrite.dev $(DD)xcf.dev $(DD)xpswrite.dev 
-DEVICE_DEVS2=$(DD)ap3250.dev $(DD)appledmp.dev $(DD)atx23.dev $(DD)atx24.dev $(DD)atx38.dev $(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev $(DD)cdeskjet.dev $(DD)cdj500.dev $(DD)cdj550.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cljet5.dev $(DD)cljet5c.dev $(DD)cljet5pr.dev $(DD)coslw2p.dev $(DD)coslwxl.dev $(DD)cp50.dev $(DD)declj250.dev $(DD)deskjet.dev $(DD)dj505j.dev $(DD)djet500.dev $(DD)djet500c.dev $(DD)dnj650c.dev $(DD)eps9high.dev $(DD)eps9mid.dev $(DD)epson.dev $(DD)epsonc.dev $(DD)escp.dev $(DD)fs600.dev $(DD)hl7x0.dev $(DD)ibmpro.dev $(DD)imagen.dev $(DD)itk24i.dev $(DD)itk38.dev $(DD)iwhi.dev $(DD)iwlo.dev $(DD)iwlq.dev $(DD)jetp3852.dev $(DD)laserjet.dev $(DD)lbp8.dev $(DD)lips3.dev $(DD)lj250.dev $(DD)lj3100sw.dev $(DD)lj4dith.dev $(DD)lj4dithp.dev $(DD)lj5gray.dev $(DD)lj5mono.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev $(DD)ljet4pjl.dev $(DD)ljetplus.dev $(DD)lp2563.dev $(DD)lp8000.dev $(DD)lq850.dev $(DD)lxm5700m.dev $(DD)m8510.dev $(DD)necp6.dev $(DD)oce9050.dev $(DD)oki182.dev $(DD)okiibm.dev $(DD)paintjet.dev $(DD)photoex.dev $(DD)picty180.dev $(DD)pj.dev $(DD)pjetxl.dev $(DD)pjxl.dev $(DD)pjxl300.dev $(DD)pxlcolor.dev $(DD)pxlmono.dev $(DD)r4081.dev $(DD)rinkj.dev $(DD)sj48.dev $(DD)st800.dev $(DD)stcolor.dev $(DD)t4693d2.dev $(DD)t4693d4.dev $(DD)t4693d8.dev $(DD)tek4696.dev $(DD)uniprint.dev 
-DEVICE_DEVS3=
-DEVICE_DEVS4=
-DEVICE_DEVS5=
-DEVICE_DEVS6=$(DD)png16.dev $(DD)png16m.dev $(DD)png256.dev $(DD)png48.dev $(DD)pngalpha.dev $(DD)pnggray.dev $(DD)pngmono.dev 
-DEVICE_DEVS7=
-DEVICE_DEVS8=
-DEVICE_DEVS9=
-DEVICE_DEVS10=
-DEVICE_DEVS11=
-DEVICE_DEVS12=
-DEVICE_DEVS13=
-DEVICE_DEVS14=
-DEVICE_DEVS15=
-DEVICE_DEVS16=
-DEVICE_DEVS17=
-DEVICE_DEVS18=
-DEVICE_DEVS19=
-DEVICE_DEVS20=
-DEVICE_DEVS21=
-
-
-# Shared library target to build.
-GS_SHARED_OBJS=
-
-# ---------------------------- End of options --------------------------- #
-
-# Define the name of the partial makefile that specifies options --
-# used in dependencies.
-
-MAKEFILE=Makefile
-TOP_MAKEFILES=$(MAKEFILE) $(GLSRCDIR)/unixhead.mak
-
-# Define the auxiliary program dependency. We don't use this.
-
-AK=
-
-# Define the compilation rules and flags.
-
-CCFLAGS=$(GENOPT) $(CAPOPT) $(CFLAGS)
-CC_=$(CC) $(CCFLAGS)
-CCAUX_=$(CCAUX) $(CFLAGS)
-CC_LEAF=$(CC_)
-# note gcc can't use -fomit-frame-pointer with -pg.
-CC_LEAF_PG=$(CC_)
-# These are the specific warnings we have to turn off to compile those
-# specific few files that need this.  We may turn off others in the future.
-CC_NO_WARN=$(CC_)
-CCAUX_NO_WARN=$(CCAUX_)
-CC_SHARED=$(CC_) 
-
-LD_SET_DT_SONAME=-soname=
-
-# MAKEDIRS = the dependency on ALL object files (must be the last one on
-# the line. Requires GNU make to make it an 'order only' dependency
-# MAKEDIRSTOP = the topmost dependency - set this if you can't set MAKEDIRS
-
-MAKEDIRS=| directories
-MAKEDIRSTOP=
-
-# ---------------- End of platform-specific section ---------------- #
-
-INSTALL_CONTRIB=
-include $(GLSRCDIR)/unixhead.mak
-include $(GLSRCDIR)/gs.mak
-include $(GLSRCDIR)/trio.mak
-# psromfs.mak must precede lib.mak
-include $(PSSRCDIR)/psromfs.mak
-include $(GLSRCDIR)/lib.mak
-include $(PSSRCDIR)/int.mak
-include $(GLSRCDIR)/freetype.mak
-include $(GLSRCDIR)/stub.mak
-include $(GLSRCDIR)/jpeg.mak
-# zlib.mak must precede png.mak
-include $(GLSRCDIR)/zlib.mak
-include $(GLSRCDIR)/png.mak
-include $(GLSRCDIR)/tiff.mak
-include $(GLSRCDIR)/jbig2.mak
-include $(GLSRCDIR)/ldf_jb2.mak
-include $(GLSRCDIR)/lwf_jp2.mak
-include $(GLSRCDIR)/openjpeg.mak
-include $(GLSRCDIR)/$(WHICH_CMS).mak
-include $(GLSRCDIR)/ijs.mak
-
-
-include $(DEVSRCDIR)/devs.mak
-include $(DEVSRCDIR)/contrib.mak
-include $(GLSRCDIR)/unix-aux.mak
-include $(GLSRCDIR)/unixlink.mak
-include $(GLSRCDIR)/unix-dll.mak
-include $(GLSRCDIR)/unix-end.mak
-include $(GLSRCDIR)/unixinst.mak
-
-
-
-# Clean up after the autotools scripts
-distclean : clean config-clean soclean pgclean debugclean mementoclean
-	-$(RM_) -r $(BINDIR) $(GLOBJDIR) $(PSOBJDIR) $(AUXDIR)
-	-$(RM_) -r autom4te.cache
-	-$(RM_) config.log config.status
-	-$(RM_) -r $(TIFFCONFDIR)
-	-$(RM_) Makefile
-
-# a debug-clean target for consistency with the ghostpdl builds
-debug-clean : debugclean
-
-memento-clean : mementoclean
-
-maintainer-clean : distclean
-	-$(RM_) configure
-
-check : default
-	$(NO_OP)
-
--- a/src/ghostscript-mingw-x86_64-arch.h	Fri Feb 15 11:27:55 2019 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/* Parameters derived from machine and compiler architecture. */
-/* This file is generated mechanically by genarch.c. */
-
-	 /* ---------------- Scalar alignments ---------------- */
-
-#define ARCH_ALIGN_SHORT_MOD 2
-#define ARCH_ALIGN_INT_MOD 4
-#define ARCH_ALIGN_LONG_MOD 8
-#define ARCH_ALIGN_PTR_MOD 8
-#define ARCH_ALIGN_FLOAT_MOD 4
-#define ARCH_ALIGN_DOUBLE_MOD 8
-
-	 /* ---------------- Scalar sizes ---------------- */
-
-#define ARCH_LOG2_SIZEOF_CHAR 0
-#define ARCH_LOG2_SIZEOF_SHORT 1
-#define ARCH_LOG2_SIZEOF_INT 2
-#define ARCH_LOG2_SIZEOF_LONG 2
-#define ARCH_LOG2_SIZEOF_LONG_LONG 3
-#define ARCH_SIZEOF_GX_COLOR_INDEX 8
-#define ARCH_SIZEOF_PTR 8
-#define ARCH_SIZEOF_FLOAT 4
-#define ARCH_SIZEOF_DOUBLE 8
-#define ARCH_FLOAT_MANTISSA_BITS 24
-#define ARCH_DOUBLE_MANTISSA_BITS 53
-
-	 /* ---------------- Unsigned max values ---------------- */
-
-#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
-#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
-#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
-#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
-
-	 /* ---------------- Miscellaneous ---------------- */
-
-#define ARCH_IS_BIG_ENDIAN 0
-#define ARCH_PTRS_ARE_SIGNED 0
-#define ARCH_FLOATS_ARE_IEEE 1
-#define ARCH_ARITH_RSHIFT 2
-#define ARCH_DIV_NEG_POS_TRUNCATES 1
--- a/src/ghostscript-mingw-x86_64-gconfig_.h	Fri Feb 15 11:27:55 2019 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-/* This file was generated automatically by unix-aux.mak. */
-
-#ifndef HAVE_DIRENT_H
-#define HAVE_DIRENT_H 0
-#endif
-
-#ifndef HAVE_NDIR_H
-#define HAVE_NDIR_H 0
-#endif
-
-#ifndef HAVE_SYS_DIR_H
-#define HAVE_SYS_DIR_H 0
-#endif
-
-#ifndef HAVE_SYS_NDIR_H
-#define HAVE_SYS_NDIR_H 0
-#endif
-
-#ifndef HAVE_SYS_TIME_H
-#define HAVE_SYS_TIME_H 0
-#endif
-
-#ifndef HAVE_SYS_TIMES_H
-#define HAVE_SYS_TIMES_H 0
-#endif
-
--- a/src/ghostscript-mingw-x86_64-makefile	Fri Feb 15 11:27:55 2019 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,647 +0,0 @@
-# Copyright (C) 2001-2014 Artifex Software, Inc.
-# All Rights Reserved.
-#
-# This software is provided AS-IS with no warranty, either express or
-# implied.
-#
-# This software is distributed under license and may not be copied,
-# modified or distributed except as expressly authorized under the terms
-# of the license contained in the file LICENSE in this distribution.
-#
-# Refer to licensing information at http://www.artifex.com or contact
-# Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134, San Rafael,
-# CA  94903, U.S.A., +1(415)492-9861, for further information.
-#
-# makefile template for/from the autoconf build.
-# Makefile.  Generated from Makefile.in by configure.
-
-# ------------------------------- Options ------------------------------- #
-
-####### The following are the only parts of the file you should need to edit.
-
-# Define the directory for the final executable, and the
-# source, generated intermediate file, and object directories
-# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
-
-BINDIR=./$(BUILDDIRPREFIX)bin
-GLSRCDIR=./base
-DEVSRCDIR=./devices
-GLGENDIR=./$(BUILDDIRPREFIX)obj
-GLOBJDIR=./$(BUILDDIRPREFIX)obj
-DEVGENDIR=./$(BUILDDIRPREFIX)obj
-DEVOBJDIR=./$(BUILDDIRPREFIX)obj
-AUXDIR=$(GLGENDIR)/aux_
-PSSRCDIR=./psi
-PSLIBDIR=./lib
-PSRESDIR=./Resource
-PSGENDIR=./$(BUILDDIRPREFIX)obj
-PSOBJDIR=./$(BUILDDIRPREFIX)obj
-CONTRIBDIR=./contrib
-
-# Do not edit the next group of lines.
-
-include $(GLSRCDIR)/version.mak
-DD=$(GLGENDIR)/
-GLD=$(GLGENDIR)/
-PSD=$(PSGENDIR)/
-
-# ------ Generic options ------ #
-
-# Define the installation commands and target directories for
-# executables and files.  The commands are only relevant to `make install';
-# the directories also define the default search path for the
-# initialization files (gs_*.ps) and the fonts.
-
-INSTALL = $(GLSRCDIR)/instcopy -c
-INSTALL_PROGRAM = $(INSTALL) -m 755
-INSTALL_DATA = $(INSTALL) -m 644
-INSTALL_SHARED = 
-
-prefix = /usr/local
-exec_prefix = ${prefix}
-bindir = ${exec_prefix}/bin
-scriptdir = $(bindir)
-includedir = ${prefix}/include
-libdir = ${exec_prefix}/lib
-mandir = ${datarootdir}/man
-man1ext = 1
-man1dir = $(mandir)/man$(man1ext)
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-
-# The following must be substituted using ${datarootdir} and ${exec_prefix}/lib
-# to avoid adding RPM generation paths (CUPS STR #1112)
-gsdir = ${datarootdir}/ghostscript
-gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
-gssharedir = ${exec_prefix}/lib/ghostscript/$(GS_DOT_VERSION)
-gsincludedir = ${prefix}/include/ghostscript/
-
-docdir=$(gsdatadir)/doc
-exdir=$(gsdatadir)/examples
-GS_DOCDIR=/usr/share/ghostscript/$(GS_DOT_VERSION)/doc
-
-# Choose whether to compile the .ps initialization files into the executable.
-# See gs.mak for details.
-
-COMPILE_INITS=1
-
-# Define the default directory/ies for the runtime
-# initialization and font files.  Separate multiple directories with a :.
-
-GS_LIB_DEFAULT=/usr/share/ghostscript/$(GS_DOT_VERSION)/Resource/Init:/usr/share/ghostscript/$(GS_DOT_VERSION)/lib:/usr/share/ghostscript/$(GS_DOT_VERSION)/Resource/Font:/usr/share/ghostscript/fonts:/usr/share/fonts/default/ghostscript:/usr/share/fonts/default/Type1:/usr/share/fonts/default/TrueType:/usr/lib/DPS/outline/base
-
-# Define the default directory for cached data files
-# this must be a single path.
-
-GS_CACHE_DIR="~/.ghostscript/cache/"
-
-# Define whether or not searching for initialization files should always
-# look in the current directory first.  This leads to well-known security
-# and confusion problems,  but may be convenient sometimes.
-
-SEARCH_HERE_FIRST=0
-
-# Define the name of the interpreter initialization file.
-# (There is no reason to change this.)
-
-GS_INIT=gs_init.ps
-
-# Choose generic configuration options.
-
-TARGET_ARCH_FILE=
-
-# -DDEBUG
-#	includes debugging features (-Z switch) in the code.
-#	  Code runs substantially slower even if no debugging switches
-#	  are set.
-
-GENOPT=
-
-# Choose capability options.
-
-# -DHAVE_BSWAP32
-#       use bswap32 intrinsic
-# -DHAVE_BYTESWAP_H
-#       use byteswap.h functions
-#
-# -DHAVE_MKSTEMP
-#	uses mkstemp instead of mktemp
-#		This uses the more secure temporary file creation call
-#		Enable this if it is available on your platform.
-# -DHAVE_FILE64
-#	use marked versions of the stdio FILE calls, fopen64() et al.
-#
-# -DHAVE_MKSTEMP64
-#	use non-standard function mkstemp64()
-#
-# -DHAVE_LIBIDN
-#	use libidn to canonicalize Unicode passwords
-#
-# -DHAVE_SETLOCALE
-#	call setlocale(LC_CTYPE) when running as a standalone app
-# -DHAVE_SSE2
-#       use sse2 intrinsics
-
-CAPOPT=  -DHAVE_FILE64  -DHAVE_SETLOCALE -DHAVE_BSWAP32  -DHAVE_STRERROR
-
-# Define the name of the executable file.
-
-GS=gs.exe
-GS_SO_BASE=gs
-XE=.exe
-XEAUX=.exe
-
-# Define the directories for debugging and profiling binaries, relative to
-# the standard binaries.
-
-DEBUGDIRPREFIX=debug
-MEMENTODIRPREFIX=mem
-PGDIRPREFIX=pg
-
-# Define whether to compile in the FreeType library, and if so, where
-# the source tree is location. Otherwise, what library name to use
-# in linking to a shared implementation.
-
-FT_BRIDGE=1
-SHARE_FT=1
-FTSRCDIR=./freetype
-#FT_CFLAGS=-I./freetype/include
-FT_CFLAGS=-I$(prefix)/include/freetype2
-FT_LIBS=-lfreetype
-FT_CONFIG_SYSTEM_ZLIB=
-
-# Define whether to compile in UFST. Note that freetype will/must be disabled.
-# FAPI/UFST depends on UFST_BRIDGE being undefined - hence the construct below.
-# (i.e. use "UFST_BRIDGE=1" or *not to define UFST_BRIDGE to anything*)
-
-UFST_ROOT=
-UFST_LIB_EXT=
-
-UFST_ROMFS_ARGS?=-b \
- -P $(UFST_ROOT)/fontdata/mtfonts/pcl45/mt3/ -d fontdata/mtfonts/pcl45/mt3/ pcl___xj.fco plug__xi.fco wd____xh.fco \
- -P $(UFST_ROOT)/fontdata/mtfonts/pclps2/mt3/ -d fontdata/mtfonts/pclps2/mt3/ pclp2_xj.fco \
- -c -P $(PSSRCDIR)/../lib/ -d Resource/Init/ FAPIconfig-FCO
-
-UFSTROMFONTDIR=\"%rom%fontdata/\"
-UFSTDISCFONTDIR?=\"$(UFST_ROOT)/fontdata/\"
-
-
-UFST_CFLAGS=
-
-# Define the directory where the IJG JPEG library sources are stored,
-# and the major version of the library that is stored there.
-# You may need to change this if the IJG library version changes.
-# See jpeg.mak for more information.
-
-JSRCDIR=./jpeg
-
-# Note: if a shared library is used, it may not contain the
-# D_MAX_BLOCKS_IN_MCU patch, and thus may not be able to read
-# some older JPEG streams that violate the standard. If the JPEG
-# library built from local sources, the patch will be applied.
-
-SHARE_JPEG=1
-JPEG_NAME=jpeg
-
-# Define the directory where the PNG library sources are stored,
-# and the version of the library that is stored there.
-# You may need to change this if the libpng version changes.
-# See png.mak for more information.
-
-SHARE_LIBPNG=1
-PNGSRCDIR=libpng
-LIBPNG_NAME=png
-
-# libtiff
-SHARE_LIBTIFF=1
-TIFFSRCDIR=./tiff
-TIFFCONFDIR=
-TIFFPLATFORM=unix
-TIFFCONFIG_SUFFIX=
-LIBTIFF_NAME=tiff
-
-# Define the directory where the zlib sources are stored.
-# See zlib.mak for more information.
-
-SHARE_ZLIB=1
-ZSRCDIR=zlib
-#ZLIB_NAME=gz
-ZLIB_NAME=z
-
-# Choose shared or compiled in libjbig2dec and source location
-# JBIG2_LIB=jbig2dec
-JBIG2_LIB=jbig2dec
-SHARE_JBIG2=0
-JBIG2SRCDIR=./jbig2dec
-JBIG2_CFLAGS=-DHAVE_STDINT_H=1
-
-# uncomment the following three lines and one of the last two to
-# compile in the Luratech ldf_jb2 codec
-#JBIG2_LIB=luratech
-#SHARE_JBIG2=0
-#JBIG2SRCDIR=ldf_jb2
-#JBIG2_CFLAGS=-DUSE_LDF_JB2 -DLINUX
-#JBIG2_CFLAGS=-DUSE_LDF_JB2 -DMAC -DMAC_OS_X_BUILD
-
-
-# Choose the library to use for (JPXDecode support)
-# whether to link to an external build or compile in from source
-# and source location and configuration flags for compiling in
-JPX_LIB=openjpeg
-SHARE_JPX=0
-JPXSRCDIR=./openjpeg
-JPX_CFLAGS=-D"memalign(a,b)=malloc(b)" -DUSE_JPIP -DUSE_OPENJPEG_JP2  -DOPJ_HAVE_INTTYPES_H=1  
-
-# uncomment the following three lines and one of the last two to
-# compile in the Luratech lwf_jp2 codec
-#JPX_LIB=luratech
-#SHARE_JPX=0
-#JPXSRCDIR=lwf_jp2
-#JPX_CFLAGS=-DUSE_LWF_JP2 -DLINUX
-#JPX_CFLAGS=-DUSE_LWF_JP2 -DMAC -DMAC_OS_X_BUILD
-
-# Uncomment the following 4 lines to to compile in OpenJPEG codec
-#JPX_LIB=openjpeg
-#SHARE_JPX=0
-#JPXSRCDIR=openjpeg
-#JPX_CFLAGS=-DUSE_OPENJPEG_JP2 -DOPJ_STATIC
-
-# options for lcms color management library
-SHARE_LCMS=0
-LCMSSRCDIR=
-LCMS2SRCDIR=lcms2
-LCMS_CFLAGS=
-LCMS2_CFLAGS=
-
-# Which CMS are we using?
-# Options are currently lcms or lcms2
-WHICH_CMS=lcms2
-
-# Define the directory where the ijs source is stored,
-# and the process forking method to use for the server.
-# See ijs.mak for more information.
- 
-SHARE_IJS=0
-IJS_NAME=
-IJSSRCDIR=src
-IJSEXECTYPE=unix
-
-# Define install location for 'cups' device/filter support
-CUPSLIBS=
-CUPSLIBDIRS=
-CUPSSERVERBIN=
-CUPSSERVERROOT=
-CUPSDATA=
-CUPSPDFTORASTER=0
-
-SHARE_LCUPS=1
-LCUPS_NAME=cups
-LCUPSSRCDIR=./cups
-LCUPSBUILDTYPE=
-CUPS_CC=$(CC)
-
-SHARE_LCUPSI=1
-LCUPSI_NAME=cupsimage
-LCUPSISRCDIR=./cups
-CUPS_CC=$(CC)
-
-CUPSCFLAGS= -DSHARE_LCUPS=$(SHARE_LCUPS) -DSHARE_LCUPSI=$(SHARE_LCUPSI)
-
-TRIOSRCDIR=./trio
-AC_TRIO_CFLAGS=    
-TRIO_CFLAGS=$(TRIO_XCFLAGS) $(AC_TRIO_CFLAGS)
-SHARE_TRIO=0
-
-# Define how to build the library archives.  (These are not used in any
-# standard configuration.)
-
-AR=ar
-ARFLAGS=qc
-RANLIB=ranlib
-
-# ------ Platform-specific options ------ #
-
-# Define the name of the C compiler (target and host (AUX))
-
-CC=gcc
-CCAUX=gcc
-
-# Define the name of the linker for the final link step.
-# Normally this is the same as the C compiler.
-
-CCLD=$(CC)
-CCAUXLD=$(CCAUX)
-
-# Define the default gcc flags.
-GCFLAGS=-Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=2 -DHAVE_DIRENT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -DNOCONTRIB -DUSE_LIBICONV_GNU -DGS_NO_UTF8=1 -DHAVE_FSEEKO=1
-
-# Define the added flags for standard, debugging, profiling 
-# and shared object builds.
-
-CFLAGS_STANDARD= -O
-CFLAGS_DEBUG=
-CFLAGS_PROFILE=-pg  -O
-CFLAGS_SO=
-
-# Define the other compilation flags.  Add at most one of the following:
-#	-DBSD4_2 for 4.2bsd systems.
-#	-DSYSV for System V or DG/UX.
-# 	-DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
-#	   or any System III Unix, or System V release 3-or-older Unix.
-#	-DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
-#	-DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
-# XCFLAGS can be set from the command line.
-# We don't include -ansi, because this gets in the way of the platform-
-#   specific stuff that <math.h> typically needs; nevertheless, we expect
-#   gcc to accept ANSI-style function prototypes and function definitions.
-# CFLAGS from autoconf
-AC_CFLAGS=
-
-# fontconfig flags, used by unix-aux.mak
-FONTCONFIG_CFLAGS=
-FONTCONFIG_LIBS=
-
-# DBus flags, used by cups.mak
-DBUS_CFLAGS=
-DBUS_LIBS=
-
-# defines from autoconf; note that we don't use these at present.
-ACDEFS=-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_INTTYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_LIBM=1 -DUSE_LIBICONV_GNU=1 -DX_DISPLAY_MISSING=1 -DHAVE_FOPEN64=1 -DHAVE_SETLOCALE=1 -DHAVE_STRERROR=1 -Dvfork=fork -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1
-
-CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(AC_CFLAGS) $(XCFLAGS)
-
-# Define platform flags for ld.
-# SunOS 4.n may need -Bstatic.
-# Solaris 2.6 (and possibly some other versions) with any of the SHARE_
-# parameters set to 1 may need
-#	-R /usr/local/xxx/lib:/usr/local/lib
-# giving the full path names of the shared library directories.
-# XLDFLAGS can be set from the command line.
-# AC_LDFLAGS from autoconf
-AC_LDFLAGS=
-
-LDFLAGS=$(AC_LDFLAGS) $(XLDFLAGS)
-
-LDFLAGS_SO=-shared  -Wl,--out-implib=$(BINDIR)/lib$(GS_SO_BASE).dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import
-
-# Define any extra libraries to link into the executable.
-# ISC Unix 2.2 wants -linet.
-# SCO Unix needs -lsocket if you aren't including the X11 driver.
-# SVR4 may need -lnsl.
-# Solaris may need -lnsl -lsocket -lposix4.
-# (Libraries required by individual drivers are handled automatically.)
-
-EXTRALIBS=$(XTRALIBS) -lm  -liconv -lfreetype
-AUXEXTRALIBS=$(XTRALIBS) -lm -lz
-
-# Define the standard libraries to search at the end of linking.
-# Most platforms require -lpthread for the POSIX threads library;
-# on FreeBSD, change -lpthread to -lc_r; BSDI and perhaps some others
-# include pthreads in libc and don't require any additional library.
-# All reasonable platforms require -lm, but Rhapsody and perhaps one or
-# two others fold libm into libc and don't require any additional library.
-
-STDLIBS= -lm
-
-# Define the include switch(es) for the X11 header files.
-# This can be null if handled in some other way (e.g., the files are
-# in /usr/include, or the directory is supplied by an environment variable)
-
-XINCLUDE=
-
-# Define the directory/ies and library names for the X11 library files.
-# XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
-# (dynamic libraries on SVR4) and should not include -L.
-# Newer SVR4 systems can use -R in XLIBDIRS rather than setting XLIBDIR.
-# Both can be null if these files are in the default linker search path.
-
-# Solaris and other SVR4 systems with dynamic linking probably want
-#XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
-# X11R6 (on any platform) may need
-#XLIBS=Xt SM ICE Xext X11
-
-# We use the autoconf macro AC_PATH_XTRA which defines X_LIBS with
-# the -L (or whatever). It also defines X_PRE_LIBS and X_EXTRA_LIBS 
-# all three of which are stripped and slotted into XLIBS below.
-# Usually however, all but X_LIBS are empty on modern platforms.
-XLIBDIRS=
-XLIBDIR=
-#XLIBS=Xt Xext X11
-XLIBS=
-
-# Define the .dev module that implements thread and synchronization
-# primitives for this platform.
-
-# If POSIX sync primitives are used, also change the STDLIBS to include
-# the pthread library. Otherwise use SYNC=nosync
-#SYNC=posync
-#SYNC=nosync
-SYNC=nosync
-
-# programs we use
-RM=rm -f
-
-# ------ Dynamic loader options ------- #
-SOC_CFLAGS	=	
-SOC_LIBS	=	
-SOC_LOADER	=	dxmainc.c
-
-# on virtually every Unix-a-like system, this is "so",
-# but Apple just had to be different, so it's now set
-# by configure
-SO_LIB_EXT=
-DLL_EXT=.dll
-SO_LIB_VERSION_SEPARATOR=-
-
-#CAIRO_CFLAGS	=	@CAIRO_CFLAGS@
-#CAIRO_LIBS	=	@CAIRO_LIBS@
-
-# ------ Devices and features ------ #
-
-# Choose the language feature(s) to include.  See gs.mak for details.
-
-FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(GLD)pipe.dev $(GLD)gsnogc.dev $(GLD)htxlib.dev $(PSD)jbig2.dev $(PSD)jpx.dev $(GLD)ramfs.dev
-#FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev
-#FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(GLD)pipe.dev
-# The following is strictly for testing.
-FEATURE_DEVS_ALL=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(PSD)double.dev $(PSD)trapping.dev $(PSD)stocht.dev $(GLD)pipe.dev $(GLD)gsnogc.dev $(GLD)htxlib.dev $(PSD)jbig2.dev $(PSD)jpx.dev $(GLD)ramfs.dev
-#FEATURE_DEVS=$(FEATURE_DEVS_ALL)
-
-# The list of resources to be included in the %rom% file system.
-# This is in the top makefile since the file descriptors are platform specific
-RESOURCE_LIST=Resource/CMap/ Resource/ColorSpace/ Resource/Decoding/ Resource/Font/ Resource/ProcSet/ Resource/IdiomSet/ Resource/CIDFont/
-
-# Choose whether to store band lists on files or in memory.
-# The choices are 'file' or 'memory'.
-
-BAND_LIST_STORAGE=file
-
-# Choose which compression method to use when storing band lists in memory.
-# The choices are 'lzw' or 'zlib'.
-
-BAND_LIST_COMPRESSOR=zlib
-
-# Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
-# See gs.mak and sfxfd.c for more details.
-
-FILE_IMPLEMENTATION=stdio
-
-# Choose the implementation of stdio: '' for file I/O and 'c' for callouts
-# See gs.mak and ziodevs.c/ziodevsc.c for more details.
-
-STDIO_IMPLEMENTATION=c
-
-# List of default devices, in order of priority. They need not be 
-# present in the actual build.
-GS_DEV_DEFAULT="x11alpha bbox"
-
-# Fallback default device.  This is set to 'display' by 
-# unix-dll.mak when building a shared object.
-DISPLAY_DEV=$(DD)bbox.dev
-
-# Choose the device(s) to include.  See devs.mak for details,
-# devs.mak and contrib.mak for the list of available devices.
-
-#DEVICE_DEVS=$(DISPLAY_DEV) $(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev
-#DEVICE_DEVS=$(DISPLAY_DEV) @X11DEVS@
-#DEVICE_DEVS=$(DISPLAY_DEV) @X_DEVS@
-
-#DEVICE_DEVS1=$(DD)bmpmono.dev $(DD)bmpgray.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16.dev $(DD)bmp256.dev $(DD)bmp16m.dev $(DD)bmp32b.dev
-#DEVICE_DEVS2=#$(DD)gdevjbig2.dev $(DD)gdevjpx.dev #$(DD)rinkj.dev
-#DEVICE_DEVS3=$(DD)deskjet.dev $(DD)djet500.dev $(DD)laserjet.dev $(DD)ljetplus.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev $(DD)lj5mono.dev $(DD)lj5gray.dev
-#DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev $(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev
-#DEVICE_DEVS5=$(DD)uniprint.dev @IJSDEVS@
-#DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev
-#DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev $(DD)cfax.dev
-#DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev
-#DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev
-#DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
-#DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiff48nc.dev $(DD)tiffgray.dev $(DD)tiff32nc.dev $(DD)tiff64nc $(DD)tiffsep.dev $(DD)tiffsep1.dev
-#DEVICE_DEVS12=$(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
-#DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev
-#DEVICE_DEVS13=@PNGDEVS@
-#DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev
-#DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)ps2write.dev $(DD)eps2write.dev $(DD)txtwrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
-#DEVICE_DEVS16=$(DD)bbox.dev
-
-#DEVICE_DEVS17=
-#DEVICE_DEVS18=
-#DEVICE_DEVS19=
-#DEVICE_DEVS20=$(DD)cljet5.dev $(DD)cljet5c.dev
-#DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)xcf.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev $(DD)psdcmykog.dev $(DD)fpng.dev
-DEVICE_DEVS=$(DISPLAY_DEV) 
-DEVICE_DEVS1=$(DD)bit.dev $(DD)bitcmyk.dev $(DD)bitrgb.dev $(DD)bitrgbtags.dev $(DD)bmp16.dev $(DD)bmp16m.dev $(DD)bmp256.dev $(DD)bmp32b.dev $(DD)bmpgray.dev $(DD)bmpmono.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)ccr.dev $(DD)cif.dev $(DD)devicen.dev $(DD)eps2write.dev $(DD)fpng.dev $(DD)inferno.dev $(DD)ink_cov.dev $(DD)inkcov.dev $(DD)jpeg.dev $(DD)jpegcmyk.dev $(DD)jpeggray.dev $(DD)mgr4.dev $(DD)mgr8.dev $(DD)mgrgray2.dev $(DD)mgrgray4.dev $(DD)mgrgray8.dev $(DD)mgrmono.dev $(DD)miff24.dev $(DD)pam.dev $(DD)pamcmyk32.dev $(DD)pamcmyk4.dev $(DD)pbm.dev $(DD)pbmraw.dev $(DD)pcx16.dev $(DD)pcx24b.dev $(DD)pcx256.dev $(DD)pcx2up.dev $(DD)pcxcmyk.dev $(DD)pcxgray.dev $(DD)pcxmono.dev $(DD)pdfwrite.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev $(DD)plan.dev $(DD)plan9bm.dev $(DD)planc.dev $(DD)plang.dev $(DD)plank.dev $(DD)planm.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)ps2write.dev $(DD)psdcmyk.dev $(DD)psdcmykog.dev $(DD)psdf.dev $(DD)psdrgb.dev $(DD)sgirgb.dev $(DD)spotcmyk.dev $(DD)sunhmono.dev $(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiff32nc.dev $(DD)tiff48nc.dev $(DD)tiff64nc.dev $(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tiffgray.dev $(DD)tifflzw.dev $(DD)tiffpack.dev $(DD)tiffs.dev $(DD)tiffscaled.dev $(DD)tiffsep.dev $(DD)tiffsep1.dev $(DD)txtwrite.dev $(DD)xcf.dev $(DD)xpswrite.dev 
-DEVICE_DEVS2=$(DD)ap3250.dev $(DD)appledmp.dev $(DD)atx23.dev $(DD)atx24.dev $(DD)atx38.dev $(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev $(DD)cdeskjet.dev $(DD)cdj500.dev $(DD)cdj550.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cljet5.dev $(DD)cljet5c.dev $(DD)cljet5pr.dev $(DD)coslw2p.dev $(DD)coslwxl.dev $(DD)cp50.dev $(DD)declj250.dev $(DD)deskjet.dev $(DD)dj505j.dev $(DD)djet500.dev $(DD)djet500c.dev $(DD)dnj650c.dev $(DD)eps9high.dev $(DD)eps9mid.dev $(DD)epson.dev $(DD)epsonc.dev $(DD)escp.dev $(DD)fs600.dev $(DD)hl7x0.dev $(DD)ibmpro.dev $(DD)imagen.dev $(DD)itk24i.dev $(DD)itk38.dev $(DD)iwhi.dev $(DD)iwlo.dev $(DD)iwlq.dev $(DD)jetp3852.dev $(DD)laserjet.dev $(DD)lbp8.dev $(DD)lips3.dev $(DD)lj250.dev $(DD)lj3100sw.dev $(DD)lj4dith.dev $(DD)lj4dithp.dev $(DD)lj5gray.dev $(DD)lj5mono.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev $(DD)ljet4pjl.dev $(DD)ljetplus.dev $(DD)lp2563.dev $(DD)lp8000.dev $(DD)lq850.dev $(DD)lxm5700m.dev $(DD)m8510.dev $(DD)necp6.dev $(DD)oce9050.dev $(DD)oki182.dev $(DD)okiibm.dev $(DD)paintjet.dev $(DD)photoex.dev $(DD)picty180.dev $(DD)pj.dev $(DD)pjetxl.dev $(DD)pjxl.dev $(DD)pjxl300.dev $(DD)pxlcolor.dev $(DD)pxlmono.dev $(DD)r4081.dev $(DD)rinkj.dev $(DD)sj48.dev $(DD)st800.dev $(DD)stcolor.dev $(DD)t4693d2.dev $(DD)t4693d4.dev $(DD)t4693d8.dev $(DD)tek4696.dev $(DD)uniprint.dev 
-DEVICE_DEVS3=
-DEVICE_DEVS4=
-DEVICE_DEVS5=
-DEVICE_DEVS6=$(DD)png16.dev $(DD)png16m.dev $(DD)png256.dev $(DD)png48.dev $(DD)pngalpha.dev $(DD)pnggray.dev $(DD)pngmono.dev 
-DEVICE_DEVS7=
-DEVICE_DEVS8=
-DEVICE_DEVS9=
-DEVICE_DEVS10=
-DEVICE_DEVS11=
-DEVICE_DEVS12=
-DEVICE_DEVS13=
-DEVICE_DEVS14=
-DEVICE_DEVS15=
-DEVICE_DEVS16=
-DEVICE_DEVS17=
-DEVICE_DEVS18=
-DEVICE_DEVS19=
-DEVICE_DEVS20=
-DEVICE_DEVS21=
-
-
-# Shared library target to build.
-GS_SHARED_OBJS=
-
-# ---------------------------- End of options --------------------------- #
-
-# Define the name of the partial makefile that specifies options --
-# used in dependencies.
-
-MAKEFILE=Makefile
-TOP_MAKEFILES=$(MAKEFILE) $(GLSRCDIR)/unixhead.mak
-
-# Define the auxiliary program dependency. We don't use this.
-
-AK=
-
-# Define the compilation rules and flags.
-
-CCFLAGS=$(GENOPT) $(CAPOPT) $(CFLAGS)
-CC_=$(CC) $(CCFLAGS)
-CCAUX_=$(CCAUX) $(CFLAGS)
-CC_LEAF=$(CC_)
-# note gcc can't use -fomit-frame-pointer with -pg.
-CC_LEAF_PG=$(CC_)
-# These are the specific warnings we have to turn off to compile those
-# specific few files that need this.  We may turn off others in the future.
-CC_NO_WARN=$(CC_)
-CCAUX_NO_WARN=$(CCAUX_)
-CC_SHARED=$(CC_) 
-
-LD_SET_DT_SONAME=-soname=
-
-# MAKEDIRS = the dependency on ALL object files (must be the last one on
-# the line. Requires GNU make to make it an 'order only' dependency
-# MAKEDIRSTOP = the topmost dependency - set this if you can't set MAKEDIRS
-
-MAKEDIRS=| directories
-MAKEDIRSTOP=
-
-# ---------------- End of platform-specific section ---------------- #
-
-INSTALL_CONTRIB=
-include $(GLSRCDIR)/unixhead.mak
-include $(GLSRCDIR)/gs.mak
-include $(GLSRCDIR)/trio.mak
-# psromfs.mak must precede lib.mak
-include $(PSSRCDIR)/psromfs.mak
-include $(GLSRCDIR)/lib.mak
-include $(PSSRCDIR)/int.mak
-include $(GLSRCDIR)/freetype.mak
-include $(GLSRCDIR)/stub.mak
-include $(GLSRCDIR)/jpeg.mak
-# zlib.mak must precede png.mak
-include $(GLSRCDIR)/zlib.mak
-include $(GLSRCDIR)/png.mak
-include $(GLSRCDIR)/tiff.mak
-include $(GLSRCDIR)/jbig2.mak
-include $(GLSRCDIR)/ldf_jb2.mak
-include $(GLSRCDIR)/lwf_jp2.mak
-include $(GLSRCDIR)/openjpeg.mak
-include $(GLSRCDIR)/$(WHICH_CMS).mak
-include $(GLSRCDIR)/ijs.mak
-
-
-include $(DEVSRCDIR)/devs.mak
-include $(DEVSRCDIR)/contrib.mak
-include $(GLSRCDIR)/unix-aux.mak
-include $(GLSRCDIR)/unixlink.mak
-include $(GLSRCDIR)/unix-dll.mak
-include $(GLSRCDIR)/unix-end.mak
-include $(GLSRCDIR)/unixinst.mak
-
-
-
-# Clean up after the autotools scripts
-distclean : clean config-clean soclean pgclean debugclean mementoclean
-	-$(RM_) -r $(BINDIR) $(GLOBJDIR) $(PSOBJDIR) $(AUXDIR)
-	-$(RM_) -r autom4te.cache
-	-$(RM_) config.log config.status
-	-$(RM_) -r $(TIFFCONFDIR)
-	-$(RM_) Makefile
-
-# a debug-clean target for consistency with the ghostpdl builds
-debug-clean : debugclean
-
-memento-clean : mementoclean
-
-maintainer-clean : distclean
-	-$(RM_) configure
-
-check : default
-	$(NO_OP)
-
--- a/src/ghostscript.mk	Fri Feb 15 11:27:55 2019 -0500
+++ b/src/ghostscript.mk	Sat Feb 16 16:03:02 2019 +0100
@@ -3,12 +3,14 @@
 
 PKG             := ghostscript
 $(PKG)_IGNORE   :=
-$(PKG)_VERSION  := 9.16
-$(PKG)_CHECKSUM := cc06fbf8244b9e8d0694cee5bf3be5bdd444b888
+$(PKG)_VERSION  := 9.26
+$(PKG)_NODOTVER := $(subst .,,$($(PKG)_VERSION))
+$(PKG)_CHECKSUM := 2727000ebee0d08311705859a31a504e259f0d98
 $(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
-$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.gz
-$(PKG)_URL      := http://downloads.ghostscript.com/public/old-gs-releases/$($(PKG)_FILE)
-$(PKG)_DEPS     := jpeg lcms libpng tiff zlib
+$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.xz
+$(PKG)_URL      := https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$($(PKG)_NODOTVER)/$($(PKG)_FILE)
+$(PKG)_DEPS     := dbus fontconfig freetype libiconv libidn libpaper libpng tiff zlib
+
 ifeq ($(MXE_WINDOWS_BUILD),no)
   ifeq ($(USE_SYSTEM_X11_LIBS),no)
     $(PKG)_DEPS += x11 xext
@@ -20,70 +22,24 @@
 endif
 
 define $(PKG)_UPDATE
-    echo 'Warning: Updates are temporarily disabled for package ghostscript.' >&2;
-    echo $($(PKG)_VERSION)
+    $(WGET) -q -O- 'https://api.github.com/repos/ArtifexSoftware/ghostpdl-downloads/releases' | \
+    $(SED) -n 's,.*"ghostscript-\([0-9\.]*\)\.tar.xz".*,\1,p' | \
+    head -1
 endef
 
-## Currently only works for native builds and i686 mingw cross builds.
-
-ifeq ($(MXE_NATIVE_BUILD),yes)
-  define $(PKG)_BUILD
-    # force external lcm2
-    mv '$(1)/lcms2' '$(1)/lcms2.x'
-    # force external libpng
-    mv '$(1)/libpng' '$(1)/libpng.x'
-    cd '$(1)' && autoreconf
-    cd '$(1)' && '$(1)/configure' \
-        $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
+define $(PKG)_BUILD
+    cp -f `automake --print-libdir`/{config.guess,config.sub,install-sh} '$(1)'
+    cd '$(1)' && rm -rf freetype jpeg libpng openjpeg tiff
+    cd '$(1)' && autoreconf -f -i
+    mkdir '$(1)/.build'
+    cd '$(1)/.build' && $(1)/configure \
+        CPPFLAGS='$(CPPFLAGS) -DHAVE_SYS_TIMES_H=0' \
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
         --prefix='$(HOST_PREFIX)' \
-        --with-system-libtiff \
-        && $(CONFIGURE_POST_HOOK)
+        --without-local-zlib \
+        --with-system-libtiff
 
-    if [ "$(MXE_SYSTEM)" == "mingw" ]; then \
-        $(MAKE) -C '$(1)' -j '$(JOBS)' GS_LIB_DEFAULT=""; \
-    else \
-        $(MAKE) -C '$(1)' -j '$(JOBS)'; \
-    fi
-    $(MAKE) -C '$(1)' install
-  endef
-else
-  ifeq ($(MXE_SYSTEM),mingw)
-    ## Ghostscript configure script is not cross-compiler friendly,
-    ## so instead of running it, copying configuration files from a
-    ## native mingw build.  Some configuration is done by compiling
-    ## and running programs during the build, but those programs
-    ## probe the build system and don't know about cross compiling,
-    ## so we generate the files then replace them with files from a
-    ## mingw native build.
-    ifeq ($(ENABLE_WINDOWS_64),yes)
-      define $(PKG)_BUILD
-        mv '$(1)/freetype' '$(1)/freetype.x'
-        mv '$(1)/libpng' '$(1)/libpng.x'
-        cp '$(TOP_DIR)/src/ghostscript-mingw-x86_64-makefile' '$(1)/Makefile'
-        $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h
-        cp '$(TOP_DIR)/src/ghostscript-mingw-x86_64-arch.h' '$(1)/obj/arch.h'
-        cp '$(TOP_DIR)/src/ghostscript-mingw-x86_64-arch.h' '$(1)/obj/gconfig_.h'
-        $(MAKE) -C '$(1)' -j '$(JOBS)' \
-          TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)'
-        $(MAKE) -C '$(1)' \
-          TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \
-          install
-      endef
-    else
-      define $(PKG)_BUILD
-        mv '$(1)/freetype' '$(1)/freetype.x'
-        cp '$(TOP_DIR)/src/ghostscript-mingw-i686-makefile' '$(1)/Makefile'
-        $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h
-        cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/arch.h'
-        cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/gconfig_.h'
-        $(MAKE) -C '$(1)' -j '$(JOBS)' \
-          TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)'
-        $(MAKE) -C '$(1)' \
-          TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \
-          install
-      endef
- 
-    endif
-  endif
-endif
+    $(MAKE) -C '$(1)/.build' -j '$(JOBS)' $(if $(BUILD_STATIC),libgs,so)
+    $(MAKE) -C '$(1)/.build' prefix='$(HOST_PREFIX)' install
+endef
+
--- a/src/glpk.mk	Fri Feb 15 11:27:55 2019 -0500
+++ b/src/glpk.mk	Sat Feb 16 16:03:02 2019 +0100
@@ -17,13 +17,12 @@
 endef
 
 define $(PKG)_BUILD
-    cd '$(1)' && aclocal && libtoolize && autoreconf
     mkdir '$(1)/.build'
     cd '$(1)/.build' && '$(1)/configure' \
         $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
         $(ENABLE_SHARED_OR_STATIC) \
-	--with-gmp \
+        --with-gmp \
         --prefix='$(HOST_PREFIX)' && $(CONFIGURE_POST_HOOK)
     $(MAKE) -C '$(1)/.build' -j '$(JOBS)'
     $(MAKE) -C '$(1)/.build' -j 1 install DESTDIR='$(3)'
--- a/src/jasper.mk	Fri Feb 15 11:27:55 2019 -0500
+++ b/src/jasper.mk	Sat Feb 16 16:03:02 2019 +0100
@@ -18,7 +18,7 @@
 endef
 
 define $(PKG)_BUILD
-    cd '$(1)' && autoreconf && ./configure \
+    cd '$(1)' && aclocal && automake --add-missing && autoreconf && ./configure \
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
         $(CONFIGURE_CPPFLAGS) \
         $(CONFIGURE_LDFLAGS) \
--- a/src/libidn.mk	Fri Feb 15 11:27:55 2019 -0500
+++ b/src/libidn.mk	Sat Feb 16 16:03:02 2019 +0100
@@ -3,8 +3,8 @@
 
 PKG             := libidn
 $(PKG)_IGNORE   :=
-$(PKG)_VERSION  := 1.33
-$(PKG)_CHECKSUM := 57872fdc665dcc585e16f4ac0bb35374b1103f7e
+$(PKG)_VERSION  := 1.35
+$(PKG)_CHECKSUM := d06a1e04caf5478cfb3ce525a83701a73b564fca
 $(PKG)_SUBDIR   := libidn-$($(PKG)_VERSION)
 $(PKG)_FILE     := libidn-$($(PKG)_VERSION).tar.gz
 $(PKG)_URL      := ftp://ftp.gnu.org/gnu/libidn/$($(PKG)_FILE)
@@ -26,6 +26,6 @@
         --disable-csharp \
         --prefix='$(HOST_PREFIX)' \
         --with-libiconv-prefix='$(HOST_PREFIX)' && $(CONFIGURE_POST_HOOK)
-    $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DIABLE_PROGS) DESTDIR='$(3)'
+    $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) DESTDIR='$(3)'
     $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)'
 endef
--- a/src/librsb.mk	Fri Feb 15 11:27:55 2019 -0500
+++ b/src/librsb.mk	Sat Feb 16 16:03:02 2019 +0100
@@ -17,7 +17,7 @@
 endef
 
 define $(PKG)_BUILD
-    cd '$(1)' && automake && ./configure \
+    cd '$(1)' && autoreconf -fi && ./configure \
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
         --prefix='$(HOST_PREFIX)' \
         $(ENABLE_SHARED_OR_STATIC) \
--- a/src/pstoedit.mk	Fri Feb 15 11:27:55 2019 -0500
+++ b/src/pstoedit.mk	Sat Feb 16 16:03:02 2019 +0100
@@ -16,7 +16,7 @@
 endef
 
 define $(PKG)_BUILD
-    cd '$(1)' && autoreconf
+    cd '$(1)' && aclocal && automake --add-missing && autoreconf
     mkdir '$(1)/.build'
     cd '$(1)/.build' && '$(1)/configure' \
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
--- a/src/qrupdate.mk	Fri Feb 15 11:27:55 2019 -0500
+++ b/src/qrupdate.mk	Sat Feb 16 16:03:02 2019 +0100
@@ -26,7 +26,7 @@
 define $(PKG)_BUILD
     mkdir '$(1)/.build'
     touch '$(1)/NEWS' '$(1)/AUTHORS'
-    cd '$(1)' && autoreconf -W none
+    cd '$(1)' && aclocal && automake --add-missing && autoreconf -W none
     chmod a+rx '$(1)/configure'
     cd '$(1)/.build' && '$(1)/configure' \
         F77=$(MXE_F77) \