From 02cf454fc601dd3b246a8886ec6d86103ad87a6e Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 12 Feb 2020 21:30:09 +0100 Subject: [PATCH] utils: Makefile - try to use pkg-config if xml2-config is not found --- src/modules/utils/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/utils/Makefile b/src/modules/utils/Makefile index cfcfdd1f3d1..85d0eb065cc 100644 --- a/src/modules/utils/Makefile +++ b/src/modules/utils/Makefile @@ -10,6 +10,12 @@ NAME=utils.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),)