From: Christian Franke Date: Thu, 1 Nov 2018 12:41:14 +0000 (+0100) Subject: configure: Check whether libyang has ENABLE_LYD_PRIV X-Git-Tag: frr-7.1-dev~223^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=397b1dff48859b936f97605a3745c278249c437f;p=matthieu%2Ffrr.git configure: Check whether libyang has ENABLE_LYD_PRIV Signed-off-by: Christian Franke --- diff --git a/configure.ac b/configure.ac index e0ab752a0b..6782c539ed 100755 --- a/configure.ac +++ b/configure.ac @@ -1595,6 +1595,12 @@ dnl --------------- PKG_CHECK_MODULES(libyang, [libyang >= 0.16.7], , [ AC_MSG_ERROR([libyang (>= 0.16.7) was not found on your system.]) ]) +AC_CHECK_MEMBER([struct lyd_node.priv], [], [ + AC_MSG_ERROR([m4_normalize([ + libyang needs to be compiled with ENABLE_LYD_PRIV=ON. + See http://docs.frrouting.org/projects/dev-guide/en/latest/building-libyang.html for details.]) + ]) +], [[#include ]]) dnl --------------- dnl configuration rollbacks