提交 0fe20392 authored 作者: Travis Cross's avatar Travis Cross

Require libedit-dev be available unless disabled

Previously we enabled libedit support opportunistically if it was
neither enabled nor disabled explicitly.  But this can result in
people being confused by libedit features not being available when
they really just need to install dependencies.  With this change,
we'll break on configure if libedit-dev isn't there.  If the user
really wants to build without libedit they just need to explicitly
disable it.

Cc: Ken Rice <krice@freeswitch.org>
上级 89094cfc
......@@ -1102,8 +1102,10 @@ AC_ARG_ENABLE(core-libedit-support,
case x$enable_core_libedit_support in
xno) ;;
xyes) PKG_CHECK_MODULES([LIBEDIT], [libedit >= 2.11]) ;;
*) PKG_CHECK_MODULES([LIBEDIT], [libedit >= 2.11],, [AC_MSG_RESULT([no]); enable_core_libedit_support=no]) ;;
xyes|*)
PKG_CHECK_MODULES([LIBEDIT], [libedit >= 2.11],,
[AC_MSG_ERROR([You need to either install libedit-dev (>= 2.11) or configure with --disable-core-libedit-support])])
;;
esac
AS_IF([test "x$enable_core_libedit_support" != "xno"], [
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论