Add configuration ability for prefix routes config file, similar to other
OpenSM config files.
Signed-off-by: Sasha Khapyorsky <[EMAIL PROTECTED]>
---
opensm/configure.in | 20 ++++++++++++++++++++
opensm/man/opensm.8.in | 2 +-
2 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/opensm/configure.in b/opensm/configure.in
index 1f2bed5..7cf7076 100644
--- a/opensm/configure.in
+++ b/opensm/configure.in
@@ -166,6 +166,26 @@ AC_DEFINE_UNQUOTED(HAVE_DEFAULT_QOS_POLICY_FILE,
[Define a QOS policy config file])
AC_SUBST(QOS_POLICY_FILE)
+dnl Check for a different prefix-routes file
+PREFIX_ROUTES_FILE=prefix-routes.conf
+AC_MSG_CHECKING(for --with-prefix-routes-conf)
+AC_ARG_WITH(prefix-routes-conf,
+ AC_HELP_STRING([--with-prefix-routes-conf=file],
+ [define a Prefix Routes config file (default is
prefix-routes.conf)]),
+ [ case "$withval" in
+ no)
+ ;;
+ *)
+ PREFIX_ROUTES_FILE=$withval
+ ;;
+ esac ]
+)
+AC_MSG_RESULT($PREFIX_ROUTES_FILE)
+AC_DEFINE_UNQUOTED(HAVE_DEFAULT_PREFIX_ROUTES_FILE,
+ ["$OPENSM_CONFIG/$PREFIX_ROUTES_FILE"],
+ [Define a Prefix Routes config file])
+AC_SUBST(PREFIX_ROUTES_FILE)
+
dnl select example event plugin or not
OPENIB_OSM_DEFAULT_EVENT_PLUGIN_SEL
diff --git a/opensm/man/opensm.8.in b/opensm/man/opensm.8.in
index e93844d..1c47160 100644
--- a/opensm/man/opensm.8.in
+++ b/opensm/man/opensm.8.in
@@ -938,7 +938,7 @@ default partition config file
default QOS policy config file
.TP
-.B @OPENSM_CONFIG_DIR@/prefix-routes.conf
+.B @OPENSM_CONFIG_DIR@/@PREFIX_ROUTES_FILE@
default prefix routes file.
.SH AUTHORS
--
1.5.4.1.122.gaa8d
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general