Browse Source

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

- GH #2199

(cherry picked from commit 4d3496fb82df1d249a78365e0c50b4ec13989261)
Daniel-Constantin Mierla 5 years ago
parent
commit
b4d5bd208d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/modules/ims_auth/Makefile

+ 6 - 0
src/modules/ims_auth/Makefile

@@ -10,6 +10,12 @@ NAME=ims_auth.so
 
 ifeq ($(CROSS_COMPILE),)
 XML2CFG=$(shell which xml2-config)
+ifeq ($(XML2CFG),)
+XML2CFG=$(shell \
+	if pkg-config --exists libxml-2.0; then \
+		echo 'pkg-config libxml-2.0'; \
+	fi)
+endif
 endif
 
 ifneq ($(XML2CFG),)