summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-12-08 16:34:04 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-12-08 19:02:39 +0100
commit7a6da5bad3be23d6d6d7f98e6e81450d16a0c7a1 (patch)
tree09390f0e7382a23e3f4a86dd13a215f0c49005c4 /configure.ac
parentZEBRA: Remove NEXTHOP_TYPE_XXX_IFNAME (diff)
downloadfrr-7a6da5bad3be23d6d6d7f98e6e81450d16a0c7a1.tar.xz
frr-7a6da5bad3be23d6d6d7f98e6e81450d16a0c7a1.zip
build: Make MULTIPATH_NUM a config.h value
MULTIPATH_NUM is setup inside of the Makefile.am DEFS to pass in on the command line. This fix moves the MULTIPATH_NUM from there into config.h. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 40c11e7fb..4d9007d06 100755
--- a/configure.ac
+++ b/configure.ac
@@ -412,14 +412,14 @@ AC_DEFINE_UNQUOTED(CONFIGFILE_MASK, ${enable_configfile_mask}, Mask for config f
enable_logfile_mask=${enable_logfile_mask:-0600}
AC_DEFINE_UNQUOTED(LOGFILE_MASK, ${enable_logfile_mask}, Mask for log files)
-MULTIPATH_NUM=1
+MPATH_NUM=1
case "${enable_multipath}" in
0)
- MULTIPATH_NUM=64
+ MPATH_NUM=64
;;
[[1-9]|[1-9][0-9]])
- MULTIPATH_NUM="${enable_multipath}"
+ MPATH_NUM="${enable_multipath}"
;;
"")
;;
@@ -428,7 +428,7 @@ case "${enable_multipath}" in
;;
esac
-AC_SUBST(MULTIPATH_NUM)
+AC_DEFINE_UNQUOTED(MULTIPATH_NUM, $MPATH_NUM, Maximum number of paths for a route)
dnl -----------------------------------
dnl Add extra version string to package