浏览代码

presence_dialoginfo: Makefile - try to use pkg-config if xml2-config is not found

Daniel-Constantin Mierla 5 年之前
父节点
当前提交
517283c245
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/modules/presence_dialoginfo/Makefile

+ 7 - 1
src/modules/presence_dialoginfo/Makefile

@@ -1,4 +1,4 @@
-# 
+#
 # WARNING: do not run this directly, it should be run by the master Makefile
 
 include ../../Makefile.defs
@@ -7,6 +7,12 @@ NAME=presence_dialoginfo.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),)