[ofa-general] [PATCH 2/7] Add option to change the default "opensm" dir under sysconfdir as the config dir

Ira Weiny weiny2 at llnl.gov
Tue Nov 13 16:08:36 PST 2007


>From 126ea6a37634d93ea3a91b33f3e308cb931210fa Mon Sep 17 00:00:00 2001
From: Ira K. Weiny <weiny2 at llnl.gov>
Date: Sun, 11 Nov 2007 09:22:30 -0800
Subject: [PATCH] Add option to change the default "opensm" dir under sysconfdir as the config dir.

Signed-off-by: Ira K. Weiny <weiny2 at llnl.gov>
---
 opensm/configure.in |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/opensm/configure.in b/opensm/configure.in
index 1a637fa..dcec910 100644
--- a/opensm/configure.in
+++ b/opensm/configure.in
@@ -70,8 +70,25 @@ OPENIB_OSM_CONSOLE_SOCKET_SEL
 dnl select performance manager or not
 OPENIB_OSM_PERF_MGR_SEL
 
+dnl Check for a different subdir for the config files.
+OPENSM_CONF_SUB_DIR=opensm dnl define a default
+AC_MSG_CHECKING(for --with-opensm-conf-sub-dir)
+AC_ARG_WITH(opensm-conf-sub-dir,
+    AC_HELP_STRING([--with-opensm-conf-sub-dir=dir],
+                   [define a directory name for opensm's conf files <sysconfdir>/<dir> (default "opensm")]),
+    [ case "$withval" in
+    no)
+        ;;
+    *)
+        withopensmconfsubdir=yes
+        OPENSM_CONF_SUB_DIR=$withval
+        ;;
+    esac ]
+)
+AC_MSG_RESULT(${withopensmconfsubdir=no})
+
 dnl Set up <sysconfdir>/opensm config dir.
-CONF_DIR_TMP1="`eval echo ${sysconfdir}/opensm`"
+CONF_DIR_TMP1="`eval echo ${sysconfdir}/$OPENSM_CONF_SUB_DIR`"
 CONF_DIR_TMP2="`echo $CONF_DIR_TMP1 | sed 's/^NONE/$ac_default_prefix/'`"
 CONF_DIR="`eval echo $CONF_DIR_TMP2`"
 
-- 
1.5.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-option-to-change-the-default-opensm-dir-under.patch
Type: application/octet-stream
Size: 1484 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20071113/818d877c/attachment.obj>


More information about the general mailing list