Parcourir la source

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

- GH #2199
Daniel-Constantin Mierla il y a 5 ans
Parent
commit
fe173b2af1
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      src/modules/xhttp_pi/Makefile

+ 6 - 0
src/modules/xhttp_pi/Makefile

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