Last active
September 13, 2017 12:17
-
-
Save rzl24ozi/b0165eaf404a0c5a47ae to your computer and use it in GitHub Desktop.
add svg support to cygwin emacs-w32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./configure.ac.orig 2017-09-12 01:55:00.000000000 +0900 | |
+++ ./configure.ac 2017-09-13 21:00:13.353677900 +0900 | |
@@ -2382,7 +2382,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 2017-04-15 00:02:47.000000000 +0900 | |
+++ ./src/image.c 2017-09-13 21:00:13.364700900 +0900 | |
@@ -9907,7 +9907,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