From: Travis Cross Date: Fri, 28 Mar 2014 15:17:00 +0000 (+0000) Subject: Require libedit-dev be available unless disabled X-Git-Tag: v1.5.12~291 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0fe20392198145d0613b40428a393547d1a420a2;p=thirdparty%2Ffreeswitch.git 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 --- diff --git a/configure.ac b/configure.ac index 4c52bb86de..835b1b6654 100644 --- a/configure.ac +++ b/configure.ac @@ -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"], [