Skip to content

Instantly share code, notes, and snippets.

@rzl24ozi
Last active April 10, 2018 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rzl24ozi/9642540821aaf0bec30b806c86e2a3d9 to your computer and use it in GitHub Desktop.
Save rzl24ozi/9642540821aaf0bec30b806c86e2a3d9 to your computer and use it in GitHub Desktop.
add svg support to cygwin emacs-w32
--- ./configure.ac.orig 2018-04-05 18:55:25.000000000 +0900
+++ ./configure.ac 2018-04-10 23:10:34.731914900 +0900
@@ -2498,7 +2498,7 @@
### Use -lrsvg-2 if available, unless '--with-rsvg=no' is specified.
HAVE_RSVG=no
-if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
+if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${HAVE_W32}" = "yes"; then
if test "${with_rsvg}" != "no"; then
RSVG_REQUIRED=2.11.0
RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
--- ./src/image.c.orig 2018-03-13 00:59:18.000000000 +0900
+++ ./src/image.c 2018-04-10 23:10:34.775011100 +0900
@@ -9964,7 +9964,7 @@
#if defined (HAVE_RSVG)
DEFSYM (Qsvg, "svg");
ADD_IMAGE_TYPE (Qsvg);
-#ifdef HAVE_NTGUI
+#if defined HAVE_NTGUI && !defined CYGWIN
/* Other libraries used directly by svg code. */
DEFSYM (Qgdk_pixbuf, "gdk-pixbuf");
DEFSYM (Qglib, "glib");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment