[PATCH] Fail if building --with-libedit and can't find libedit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux