dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "C. McEnroe" <june@causal.agency>
To: dash@vger.kernel.org
Cc: "C. McEnroe" <june@causal.agency>
Subject: [PATCH] Fail if building --with-libedit and can't find libedit
Date: Tue, 22 Dec 2020 19:46:50 -0500	[thread overview]
Message-ID: <20201223004650.33486-1-june@causal.agency> (raw)

Previously, configure --with-libedit would only fail in the case where
libedit is available but its header file histedit.h is not.
---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 33f0b08..9d96f5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -175,7 +175,8 @@ if test "$with_libedit" = "yes"; then
 	AC_CHECK_LIB(edit, history_init, [
 		AC_CHECK_HEADER([histedit.h], [use_libedit="yes"],
 				AC_MSG_ERROR(
-					[Can't find required header files.]))])
+					[Can't find required header files.]))], [
+		AC_MSG_ERROR([Can't find libedit.])])
 fi
 if test "$use_libedit" != "yes"; then
 	AC_DEFINE([SMALL], 1, [Define if you build with -DSMALL])
-- 
2.29.2


             reply	other threads:[~2020-12-23  0:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-23  0:46 C. McEnroe [this message]
2021-01-13  6:22 ` [PATCH] Fail if building --with-libedit and can't find libedit Herbert Xu

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=20201223004650.33486-1-june@causal.agency \
    --to=june@causal.agency \
    --cc=dash@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).