summary refs log tree commit diff
path: root/bin
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
commit34abc0aa8f05539164b6f3f27f4cd9fdf66e636b (patch)
tree9d2f8c695a9f5430393dd52d2cfac00e7b793796 /bin
parentMerge commit '71c7cbab2b50436db940721a10d6ea1ca5d75f89' as 'bin/dash' (diff)
downloadsrc-34abc0aa8f05539164b6f3f27f4cd9fdf66e636b.tar.gz
src-34abc0aa8f05539164b6f3f27f4cd9fdf66e636b.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')
-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])