From ea10f7de0a37282047630b2e84a52a5605269b26 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Mon, 23 Sep 2024 02:09:29 +0000 Subject: [PATCH] Bug 5428: Warn if pkg-config is not found (#1902) Squid builds without pkg-config, but results are likely to surprise administrators because many optional features will not be default-enabled despite properly installed libraries. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 19a5cbe7f85..58481fed7fb 100644 --- a/configure.ac +++ b/configure.ac @@ -117,6 +117,10 @@ dnl Libtool 2.2.6 requires: rm -f RM="$RM -f" PKG_PROG_PKG_CONFIG +AS_IF([test "x$PKG_CONFIG" = "x"],[ + AC_MSG_WARN([pkg-config not found. Many optional features with external dependencies will not be enabled by default, usually without further warnings.]) +]) + AC_PATH_PROG(PERL, perl, none) AS_IF([test "x$ac_cv_path_PERL" = "xnone"],[