Skip to contentSkip to conversation

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

PATCH In review C. McEnroe 2 participants 2 messages Dec 23, 2020 – Jan 13, 2021

lore
Share & tools
lore

C. McEnroe

author
#0 lore raw

PATCH 1/1 Fail if building --with-libedit and can't find libedit

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(-)
configure.ac +2 -1
index 33f0b08..9d96f5a 100644
@@ -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])
Signature · 1 line
2.29.2
#1 lore raw
Quoted 5 lines · C. McEnroe

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.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt