Module: kamailio
Branch: master
Commit: 02cf454fc601dd3b246a8886ec6d86103ad87a6e
URL:
https://github.com/kamailio/kamailio/commit/02cf454fc601dd3b246a8886ec6d861…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-02-12T21:30:09+01:00
utils: Makefile - try to use pkg-config if xml2-config is not found
---
Modified: src/modules/utils/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/02cf454fc601dd3b246a8886ec6d861…
Patch:
https://github.com/kamailio/kamailio/commit/02cf454fc601dd3b246a8886ec6d861…
---
diff --git a/src/modules/utils/Makefile b/src/modules/utils/Makefile
index cfcfdd1f3d..85d0eb065c 100644
--- a/src/modules/utils/Makefile
+++ b/src/modules/utils/Makefile
@@ -10,6 +10,12 @@ NAME=utils.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),)