]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1990] report error if NETCONF was not enabled
authorAndrei Pavel <andrei@isc.org>
Wed, 11 Aug 2021 09:35:09 +0000 (12:35 +0300)
committerAndrei Pavel <andrei@isc.org>
Thu, 12 Aug 2021 15:33:27 +0000 (18:33 +0300)
m4macros/ax_sysrepo.m4

index 1f3d5be2e5c9b5d7a0e2bee6a8a87c5265651903..9511eac305bcdce1bb83f20c6c7f7c689dc88252 100644 (file)
@@ -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)