]> git.proxmox.com Git - mirror_frr.git/commitdiff
configure: add enable-evpn support
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 12 Jan 2017 10:04:06 +0000 (11:04 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 14 Feb 2017 12:58:57 +0000 (13:58 +0100)
By default, EVPN is disabled by default. In order to support it, the
configure command has been made available in order to introduce a define
that is used for compilation.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
configure.ac

index 1436b2fc7c56ccf9f77f869ac49bd238b9f38fab..83250776f9f958fadcb9a219020c0f1dfc5e8bcd 100755 (executable)
@@ -285,6 +285,8 @@ AC_ARG_ENABLE([protobuf],
   AS_HELP_STRING([--enable-protobuf], [Enable experimental protobuf support]))
 AC_ARG_ENABLE([oldvpn_commands],
   AS_HELP_STRING([--enable-old-vpn-commands], [Keep old vpn commands]))
+AC_ARG_ENABLE(evpn,
+  AS_HELP_STRING([--enable-evpn], [enable EVPN support)]))
 
 AC_CHECK_HEADERS(json-c/json.h)
 AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c")
@@ -397,6 +399,13 @@ if test "$enable_old_vpn_commands" = "yes"; then
    AC_DEFINE(KEEP_OLD_VPN_COMMANDS,, [Define for compiling with old vpn commands])
 fi
 
+# Logic for evpn support.
+#
+if test "$enable_evpn" = "yes"; then
+   have_evpn=yes
+   AC_DEFINE(HAVE_EVPN,, [Define for compiling with EVPN])
+fi
+
 # Fail if the user explicity enabled protobuf support and we couldn't
 # find the compiler or libraries.
 if test "x$have_protobuf" = "xno" && test "x$enable_protobuf" = "xyes"; then