]> git.proxmox.com Git - mirror_frr.git/commitdiff
*: Add --enable-datacenter to turn on datacenter defaults
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 4 May 2017 15:26:22 +0000 (11:26 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 4 May 2017 15:52:45 +0000 (11:52 -0400)
Compile in DataCenter Defaults if --enable-datacenter
is configured instead of --enable-cumulus

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
configure.ac
defaults.h

index c7dc641afee45c4fe5f92ae533b96d2cec033467..d376bf1464286f05206d7d1a87f353c4b366d842 100755 (executable)
@@ -313,6 +313,8 @@ AC_ARG_ENABLE(werror,
   AS_HELP_STRING([--enable-werror], [enable -Werror (recommended for developers only)]))
 AC_ARG_ENABLE(cumulus,
   AS_HELP_STRING([--enable-cumulus], [enable Cumulus Switch Special Extensions]))
+AC_ARG_ENABLE(datacenter,
+  AS_HELP_STRING([--enable-datacenter], [enable Compilation for Data Center Extensions]))
 AC_ARG_ENABLE(rr-semantics,
   AS_HELP_STRING([--disable-rr-semantics], [disable the v6 Route Replace semantics]))
 AC_ARG_ENABLE([protobuf],
@@ -381,12 +383,17 @@ case "$host" in
 esac
 AC_SUBST(MPLS_METHOD)
 
-if test "${enable_cumulus}" = "yes" ; then
-  AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in)
+if test "${enable_datacenter}" = "yes" ; then
+  AC_DEFINE(HAVE_DATACENTER,,Compile extensions for a DataCenter)
   DFLT_NAME="datacenter"
 else
   DFLT_NAME="traditional"
 fi
+
+if test "${enable_cumulus}" = "yes" ; then
+  AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in)
+fi
+
 AC_SUBST(DFLT_NAME)
 AC_DEFINE_UNQUOTED(DFLT_NAME,["$DFLT_NAME"], Name of the configuration default set)
 
index 57e35f3ce6c4ba69b50f7315ba48e2e7619cfb94..4a5cc8252a66af1c25570b9575db60f9e0faa43c 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "config.h"
 
-#ifdef HAVE_CUMULUS
+#ifdef HAVE_DATACENTER
 
 #define DFLT_BGP_IMPORT_CHECK                  1
 #define DFLT_BGP_TIMERS_CONNECT                        10
@@ -36,7 +36,7 @@
 #define DFLT_OSPF_LOG_ADJACENCY_CHANGES                1
 #define DFLT_OSPF6_LOG_ADJACENCY_CHANGES       1
 
-#else /* !HAVE_CUMULUS */
+#else /* !HAVE_DATACENTER */
 
 #define DFLT_BGP_IMPORT_CHECK                  0
 #define DFLT_BGP_TIMERS_CONNECT                        120
@@ -49,6 +49,6 @@
 #define DFLT_OSPF_LOG_ADJACENCY_CHANGES                0
 #define DFLT_OSPF6_LOG_ADJACENCY_CHANGES       0
 
-#endif /* !HAVE_CUMULUS */
+#endif /* !HAVE_DATACENTER */
 
 #endif /* _FRR_DEFAULTS_H */