Browse code

rls: Makefile - use pkg-config if xml2-config is not found

- GH #2199

Daniel-Constantin Mierla authored on 13/02/2020 09:25:51
Showing 1 changed files
... ...
@@ -10,6 +10,12 @@ NAME=rls.so
10 10
 
11 11
 ifeq ($(CROSS_COMPILE),)
12 12
 XML2CFG=$(shell which xml2-config)
13
+ifeq ($(XML2CFG),)
14
+XML2CFG=$(shell \
15
+	if pkg-config --exists libxml-2.0; then \
16
+		echo 'pkg-config libxml-2.0'; \
17
+	fi)
18
+endif
13 19
 ifeq ($(OS), darwin)
14 20
 ICU_BUILDER = $(shell \
15 21
 	if pkg-config --exists icu-uc; then \