From: Andrei Pavel Date: Wed, 11 Aug 2021 09:35:09 +0000 (+0300) Subject: [#1990] report error if NETCONF was not enabled X-Git-Tag: Kea-1.9.11~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7ecc6ca0df90464666e7fd9905c3ff6dbef576b;p=thirdparty%2Fkea.git [#1990] report error if NETCONF was not enabled --- diff --git a/m4macros/ax_sysrepo.m4 b/m4macros/ax_sysrepo.m4 index 1f3d5be2e5..9511eac305 100644 --- a/m4macros/ax_sysrepo.m4 +++ b/m4macros/ax_sysrepo.m4 @@ -205,6 +205,12 @@ AC_DEFUN([AX_SYSREPO], [ else HAVE_SYSREPO=false fi + + # Report error if sysrepo was requested but not enabled. + if test -n "${with_sysrepo}" && test "${with_sysrepo}" != 'no' && ! "${HAVE_SYSREPO}"; then + AC_MSG_ERROR([Could not enable NETCONF support.]) + fi + AM_CONDITIONAL(HAVE_SYSREPO, "${HAVE_SYSREPO}") AC_SUBST(HAVE_SYSREPO) AC_SUBST(SYSREPO_CPPFLAGS)