Module: kamailio
Branch: master
Commit: 5ce9690245e0a075742c7cb8eac1786622c976f4
URL:
https://github.com/kamailio/kamailio/commit/5ce9690245e0a075742c7cb8eac1786…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-02-12T21:29:25+01:00
presence: Makefile - try to use pkg-config if xml2-config is not found
---
Modified: src/modules/presence/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/5ce9690245e0a075742c7cb8eac1786…
Patch:
https://github.com/kamailio/kamailio/commit/5ce9690245e0a075742c7cb8eac1786…
---
diff --git a/src/modules/presence/Makefile b/src/modules/presence/Makefile
index bf5586a32f..3cc6ae6c19 100644
--- a/src/modules/presence/Makefile
+++ b/src/modules/presence/Makefile
@@ -7,6 +7,12 @@ NAME=presence.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
ifeq ($(OS), darwin)
ICU_BUILDER = $(shell \
if pkg-config --exists icu-uc; then \