Explorar o código

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

- GH #2199
Daniel-Constantin Mierla %!s(int64=5) %!d(string=hai) anos
pai
achega
20d9453cd3
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/modules/pua_usrloc/Makefile

+ 6 - 0
src/modules/pua_usrloc/Makefile

@@ -8,6 +8,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),)