mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] configure: abort when pkg-config isn't found
Date: Wed, 16 May 2018 15:24:29 +0200	[thread overview]
Message-ID: <20180516132429.17961-1-u.kleine-koenig@pengutronix.de> (raw)

When pkg-config isn't installed ./configure fails in the end with:

	error: Cannot find ncurses library.

way after

	checking for pkg-config... no

. Instead break immediatly if pkg-config isn't found to make it easier
for people installing ptxdist to diagnose the actual problem.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index bee3afd0f7e1..0549c38da7ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,7 @@ dnl
 dnl Check for pkg-config
 dnl
 PKG_PROG_PKG_CONFIG
+AS_IF([test -z "$PKG_CONFIG"], AC_MSG_ERROR([pkg-config not found.]))
 
 dnl
 dnl Check header files, mostly for lxdialog & kconfig
-- 
2.17.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2018-05-16 13:24 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=20180516132429.17961-1-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox