All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ismael Luceno <ismael@iodev.co.uk>
To: alsa-devel@alsa-project.org
Cc: Ismael Luceno <ismael@iodev.co.uk>
Subject: [PATCH] configure: Improve failures due to missing pkg-config
Date: Thu, 26 Nov 2020 21:30:17 +0100	[thread overview]
Message-ID: <20201126203017.11936-1-ismael@iodev.co.uk> (raw)

Output a warning at the beginning, and fill PKG_CONFIG with "false" so
that any auto-configuration attempts fail without bogus messages.

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index 1f119c5baeeb..29d043f18950 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,9 @@ AC_PROG_MKDIR_P
 AC_PROG_LN_S
 AC_PROG_SED
 PKG_PROG_PKG_CONFIG
+AS_IF([test -z "$PKG_CONFIG"],
+  [AC_MSG_WARN([pkg-config is needed for auto-configuration of dependencies])
+   PKG_CONFIG=false])
 AM_PATH_ALSA(1.0.27)
 if test "x$enable_alsatest" = "xyes"; then
 AC_CHECK_FUNC([snd_ctl_elem_add_enumerated],
-- 
2.28.0


                 reply	other threads:[~2020-11-26 20:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201126203017.11936-1-ismael@iodev.co.uk \
    --to=ismael@iodev.co.uk \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.