mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] configure: abort when pkg-config isn't found
@ 2018-05-16 13:24 Uwe Kleine-König
  0 siblings, 0 replies; only message in thread
From: Uwe Kleine-König @ 2018-05-16 13:24 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-16 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16 13:24 [ptxdist] [PATCH] configure: abort when pkg-config isn't found Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox