[sr-dev] git:master:02cf454f: utils: Makefile - try to use pkg-config if xml2-config is not found
Daniel-Constantin Mierla
miconda at gmail.com
Wed Feb 12 21:31:16 CET 2020
Module: kamailio
Branch: master
Commit: 02cf454fc601dd3b246a8886ec6d86103ad87a6e
URL: https://github.com/kamailio/kamailio/commit/02cf454fc601dd3b246a8886ec6d86103ad87a6e
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/02cf454fc601dd3b246a8886ec6d86103ad87a6e.diff
Patch: https://github.com/kamailio/kamailio/commit/02cf454fc601dd3b246a8886ec6d86103ad87a6e.patch
---
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),)
More information about the sr-dev
mailing list