]> gitweb.michael.orlitzky.com - libsvgtiny-pixbuf.git/commitdiff
Makefile.am,configure.ac: prepare for libxml2
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 7 Aug 2023 21:50:07 +0000 (17:50 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 7 Aug 2023 21:50:07 +0000 (17:50 -0400)
I'm going to write my awful strstr-based XML parser with libxml2
soon. Have ./configure look for it and "make" use it.

Makefile.am
configure.ac

index 7d7e48e56e8a733559e9927f5401421889b29a63..9032a536e702534864b718a597f2583c2e40d7c8 100644 (file)
@@ -8,11 +8,13 @@ libpixbufloader_svg_la_CPPFLAGS = $(CAIRO_CFLAGS) \
                                   $(GDKPIXBUF_CFLAGS) \
                                   $(GTK4_CFLAGS) \
                                   $(LIBSVGTINY_CFLAGS) \
+                                  $(LIBXML2_CFLAGS) \
                                   -DGDK_PIXBUF_ENABLE_BACKEND
 libpixbufloader_svg_la_LIBADD = $(CAIRO_LIBS) \
                                 $(GDKPIXBUF_LIBS) \
                                 $(GTK4_LIBS) \
-                                $(LIBSVGTINY_LIBS)
+                                $(LIBSVGTINY_LIBS) \
+                                $(LIBXML2_LIBS)
 
 # Create foo.so instead of foo.so.x.y.z, and allow it to be
 # dlopen()ed.
index 0e6978defd8790bed3ee9ff996a997b7531d19d5..bca5c7ce7bf0c5067c65ea96048009584c3193ab 100644 (file)
@@ -10,6 +10,7 @@ PKG_CHECK_MODULES([CAIRO], [cairo])
 PKG_CHECK_MODULES([GDKPIXBUF], [gdk-pixbuf-2.0])
 PKG_CHECK_MODULES([GTK4], [gtk4])
 PKG_CHECK_MODULES([LIBSVGTINY], [libsvgtiny])
+PKG_CHECK_MODULES([LIBXML2], [libxml-2.0])
 
 AC_MSG_CHECKING([for gdk-pixbuf module location])
 # Hack alert: we need to install our module into this specific