Fix librsvg build on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Sun, 8 Dec 2013 19:28:29 +0000 (21:28 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 8 Dec 2013 19:28:29 +0000 (21:28 +0200)
 configure.ac (HAVE_RSVG) [mingw32]: Don't link against librsvg statically.

ChangeLog
configure.ac

index 2b1d363..9e47a2a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-08  Eli Zaretskii  <eliz@gnu.org>
+
+       * configure.ac (HAVE_RSVG) [mingw32]: Don't link against librsvg
+       statically.
+
 2013-12-08  Paul Eggert  <eggert@cs.ucla.edu>
 
        * configure.ac: Simplify supression of GTK deprecation warning.
index 5240afa..1f99a65 100644 (file)
@@ -2136,6 +2136,10 @@ if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" =
     if test $HAVE_RSVG = yes; then
       AC_DEFINE(HAVE_RSVG, 1, [Define to 1 if using librsvg.])
       CFLAGS="$CFLAGS $RSVG_CFLAGS"
+      # Windows loads librsvg dynamically
+      if test "${opsys}" = "mingw32"; then
+               RSVG_LIBS=
+      fi
       LIBS="$RSVG_LIBS $LIBS"
     fi
   fi