فهرست منبع

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

- GH #2199

(cherry picked from commit 80f2eb33a967ede3e70fef572dc9b42172ad067c)
Daniel-Constantin Mierla 5 سال پیش
والد
کامیت
d684dd3862
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      src/modules/ims_icscf/Makefile

+ 6 - 0
src/modules/ims_icscf/Makefile

@@ -9,6 +9,12 @@ NAME=ims_icscf.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),)