All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] config: Stop config if it cannot find the required program
@ 2021-02-04  5:21 Tedd Ho-Jeong An
  0 siblings, 0 replies; only message in thread
From: Tedd Ho-Jeong An @ 2021-02-04  5:21 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

From: Tedd Ho-Jeong An <tedd.an@intel.com>

This patch stops the config and displays an error message if the
config cannot find the required program like xxd or openssl when
the maintainer mode is enabled.
---
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index 9924aac..a815f6f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,7 +126,13 @@ AM_CONDITIONAL(GLIB, test "${enable_glib}" = "yes")
 
 if (test "$USE_MAINTAINER_MODE" = "yes"); then
 	AC_CHECK_PROG(have_openssl, [openssl], [yes], [no])
+	if (test "${have_openssl}" != "yes"); then
+		AC_MSG_ERROR(openssl is required)
+	fi
 	AC_CHECK_PROG(have_xxd, [xxd], [yes], [no])
+	if (test "${have_xxd}" != "yes"); then
+		AC_MSG_ERROR(xxd is required)
+	fi
 fi
 
 AM_CONDITIONAL(DBUS_TESTS, test "${little_endian}" = "yes")
-- 
2.29.2

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

only message in thread, other threads:[~2021-02-04  5:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04  5:21 [PATCH] config: Stop config if it cannot find the required program Tedd Ho-Jeong An

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.