configure.ac: Add enable_btpclient and enable_mesh for internal ELL
authorKoba Ko <koba.ko@canonical.com>
Sun, 17 Sep 2023 17:25:20 +0000 (01:25 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:04 +0000 (19:04 +0530)
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.

configure.ac

index b0833d4..1a15e55 100755 (executable)
@@ -265,7 +265,8 @@ if (test "${enable_external_ell}" = "yes"); then
         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)