summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorC. McEnroe <june@causal.agency>2020-12-22 19:46:50 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2021-01-13 17:20:45 +1100
commitc1166e98c119f187a2a0377a063fe66640980aee (patch)
tree8e52b6d7539736f536c9775a0800b7a4f68834f4
parent6359d7aa739b9f02f622805f4dbddeaf0ae61981 (diff)
downloaddash-c1166e98c119f187a2a0377a063fe66640980aee.tar.gz
shell: 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. Fixes: 13537aaa484b ("[BUILD] Added --with-libedit option to...") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e9ae792..44f2f95 100644
--- a/configure.ac
+++ b/configure.ac
@@ -182,7 +182,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])