summary refs log tree commit diff
path: root/bin/dash
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-22 19:26:16 -0500
committerJune McEnroe <june@causal.agency>2020-12-22 19:28:22 -0500
commite2c09904b9b9bece1350cc736fed723732dfc0e0 (patch)
treecd792c2b86fbca4b597696ecf63880458094f07b /bin/dash
parentMerge commit '9e55e38997ed4d6998af9e113e215a926c24988e' as 'bin/dash' (diff)
downloadsrc-e2c09904b9b9bece1350cc736fed723732dfc0e0.tar.gz
src-e2c09904b9b9bece1350cc736fed723732dfc0e0.zip
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.
Diffstat (limited to 'bin/dash')
-rw-r--r--bin/dash/configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/dash/configure.ac b/bin/dash/configure.ac
index 33f0b08c..9d96f5af 100644
--- a/bin/dash/configure.ac
+++ b/bin/dash/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])