[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2c33409: Warn the user if we can't find pkg-config
From: |
Lars Ingebrigtsen |
Subject: |
master 2c33409: Warn the user if we can't find pkg-config |
Date: |
Fri, 19 Mar 2021 03:58:42 -0400 (EDT) |
branch: master
commit 2c3340909abd4f88be6ab814247a6dcd5da0a899
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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 1802c1b..2c62a9f 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?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 2c33409: Warn the user if we can't find pkg-config,
Lars Ingebrigtsen <=