]> git.puffer.fish Git - matthieu/frr.git/commitdiff
configure.ac: add --with-yangmodelsdir=DIR and
authorLou Berger <lberger@labn.net>
Tue, 30 Oct 2018 21:39:47 +0000 (17:39 -0400)
committerLou Berger <lberger@labn.net>
Tue, 30 Oct 2018 21:48:04 +0000 (17:48 -0400)
      --with-libyang-pluginsdir=DIR config options

Signed-off-by: Lou Berger <lberger@labn.net>
configure.ac

index aa2d8736d2142a8755cd39d494cfe43024c51346..5a1b759699f938f3a6e64179f992ce8a7741d214 100755 (executable)
@@ -91,10 +91,19 @@ AC_ARG_WITH([moduledir], [AS_HELP_STRING([--with-moduledir=DIR], [module directo
 ])
 AC_SUBST([moduledir], [$moduledir])
 
-yangmodelsdir="\${datarootdir}/yang"
-AC_SUBST([yangmodelsdir], [$yangmodelsdir])
 
-libyang_pluginsdir="\${libdir}/frr/libyang_plugins"
+AC_ARG_WITH([yangmodelsdir], [AS_HELP_STRING([--with-yangmodelsdir=DIR], [yang models directory (${datarootdir}/yang)])], [
+       yangmodelsdir="$withval"
+], [
+       yangmodelsdir="\${datarootdir}/yang"
+])
+AC_SUBST(yangmodelsdir)
+
+AC_ARG_WITH([libyang_pluginsdir], [AS_HELP_STRING([--with-libyang-pluginsdir=DIR], [yangmodule plugins directory (${libdir}/frr/libyang_plugins)])], [
+       libyang_pluginsdir="$withval"
+], [
+   libyang_pluginsdir="\${libdir}/frr/libyang_plugins"
+])
 AC_SUBST(libyang_pluginsdir)
 
 AC_ARG_ENABLE(tcmalloc,