diff mbox series

Fail if building --with-libedit and can't find libedit

Message ID 20201223004650.33486-1-june@causal.agency (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series Fail if building --with-libedit and can't find libedit | expand

Commit Message

june Dec. 23, 2020, 12:46 a.m. UTC
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(-)

Comments

Herbert Xu Jan. 13, 2021, 6:22 a.m. UTC | #1
C. McEnroe <june@causal.agency> wrote:
> 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(-)

Patch applied.  Thanks.
diff mbox series

Patch

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])