when checking enable_external_ell != 'yes',
even enable_btpclient and enable_mesh are not enabled.
configure still prompt the error.
Then ELL must be installed to pass the configure.
AC_SUBST(ELL_CFLAGS)
AC_SUBST(ELL_LIBS)
fi
-if (test "${enable_external_ell}" != "yes"); then
+if (test "${enable_external_ell}" != "yes" &&
+ (test "${enable_btpclient}" = "yes" || test "${enable_mesh}" = "yes")); then
if (test ! -f ${srcdir}/ell/ell.h) &&
(test ! -f ${srcdir}/../ell/ell/ell.h); then
AC_MSG_ERROR(ELL source is required or use --enable-external-ell)