blob: 17c42acb6687def586a52dda7be218ca233a53ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- modules/presence_dfks/Makefile.orig 2020-10-15 10:22:35 UTC
+++ modules/presence_dfks/Makefile
@@ -6,8 +6,12 @@ auto_gen=
NAME=presence_dfks.so
ifeq ($(CROSS_COMPILE),)
-LIBS=-lxml2
-DEFS+=-I$(SYSBASE)/include/libxml2
+HAS_XML2CFG=$(shell if which xml2-config >/dev/null 2>/dev/null;then echo YES; fi)
+endif
+
+ifeq ($(HAS_XML2CFG),YES)
+LIBS=$(shell xml2-config --libs)
+DEFS+=$(shell xml2-config --cflags)
else
DEFS+=-I$(SYSBASE)/include/libxml2 -I$(LOCALBASE)/include/libxml2 \
-I$(LOCALBASE)/include
|