Module: kamailio Branch: master Commit: 5ce9690245e0a075742c7cb8eac1786622c976f4 URL: https://github.com/kamailio/kamailio/commit/5ce9690245e0a075742c7cb8eac1786622c976f4
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> 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/5ce9690245e0a075742c7cb8eac1786622c976f4.diff Patch: https://github.com/kamailio/kamailio/commit/5ce9690245e0a075742c7cb8eac1786622c976f4.patch --- 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 \ _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
