From 43c1f57eee3ef99cbb620b5a92b7bfa02753bbd1 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Tue, 25 Feb 2020 17:26:54 +0100
Subject: [PATCH] The next version of libxml2 will no longer ship the
 xml2-config script in Debian. This changes gridsit to use pkg-config
 libxml-2.0 instead.

See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949154
---
 src/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 4e72b7f..67d467f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -54,8 +54,8 @@ endif
 
 CURL_CFLAGS=`curl-config --cflags`
 CURL_LIBS=`curl-config --libs`
-XML2_CFLAGS=`xml2-config --cflags`
-XML2_LIBS=`xml2-config --libs`
+XML2_CFLAGS=`pkg-config libxml-2.0 --cflags`
+XML2_LIBS=`pkg-config libxml-2.0 --libs`
 HTTPD_FLAGS=-I/usr/include/httpd -I/usr/include/apache2 -I/usr/include/apr-0 -I/usr/include/apr-1 -I/usr/include/apr-1.0
 GSOAP_CFLAGS=`pkg-config gsoap --cflags`
 GSOAP_LIBS=`pkg-config gsoap --libs`
-- 
2.24.1

