From 2c3340909abd4f88be6ab814247a6dcd5da0a899 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 19 Mar 2021 08:58:32 +0100 Subject: [PATCH] Warn the user if we can't find pkg-config * configure.ac (WITH_IFAVAILABLE): Warn the user if we can't find a usable pkg-config (bug#47159). --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 1802c1baa12..2c62a9fe6f7 100644 --- a/configure.ac +++ b/configure.ac @@ -3897,6 +3897,11 @@ case $with_json,$HAVE_JSON in WITH_IFAVAILABLE="$WITH_IFAVAILABLE --with-json=ifavailable";; esac if test "X${MISSING}" != X; then + # If we have a missing library, and we don't have pkg-config installed, + # the missing pkg-config may be the reason. Give the user a hint. + if test "X${PKG_CONFIG}" = X; then + AC_MSG_WARN([Unable to locate a usable pkg-config]) + fi AC_MSG_ERROR([The following required libraries were not found: $MISSING Maybe some development libraries/packages are missing? -- 2.39.5