[ofa-general] [PATCH 1/7] Break out a "CONF_DIR" variable in configure to base other config files on.
Ira Weiny
weiny2 at llnl.gov
Tue Nov 13 16:08:04 PST 2007
>From fcbc593bf2cf1cdb41aadd8153901e5a10bc62ac Mon Sep 17 00:00:00 2001
From: Ira K. Weiny <weiny2 at llnl.gov>
Date: Sun, 11 Nov 2007 09:04:47 -0800
Subject: [PATCH] Break out a "CONF_DIR" variable in configure to base other config files on.
Signed-off-by: Ira K. Weiny <weiny2 at llnl.gov>
---
opensm/configure.in | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/opensm/configure.in b/opensm/configure.in
index 2d5d72c..1a637fa 100644
--- a/opensm/configure.in
+++ b/opensm/configure.in
@@ -70,6 +70,11 @@ OPENIB_OSM_CONSOLE_SOCKET_SEL
dnl select performance manager or not
OPENIB_OSM_PERF_MGR_SEL
+dnl Set up <sysconfdir>/opensm config dir.
+CONF_DIR_TMP1="`eval echo ${sysconfdir}/opensm`"
+CONF_DIR_TMP2="`echo $CONF_DIR_TMP1 | sed 's/^NONE/$ac_default_prefix/'`"
+CONF_DIR="`eval echo $CONF_DIR_TMP2`"
+
dnl Check for a different default node name map file
dnl default {sysconfdir}/ib-node-name-map
NODENAMEMAPFILE=ib-node-name-map
@@ -87,12 +92,8 @@ AC_ARG_WITH(node-name-map,
esac ]
)
AC_MSG_RESULT(${withnodenamemap=no})
-
-NODENAMEMAP_TMP1="`eval echo ${sysconfdir}/$NODENAMEMAPFILE`"
-NODENAMEMAP_TMP2="`echo $NODENAMEMAP_TMP1 | sed 's/^NONE/$ac_default_prefix/'`"
-NODENAMEMAP="`eval echo $NODENAMEMAP_TMP2`"
AC_DEFINE_UNQUOTED(HAVE_DEFAULT_NODENAME_MAP,
- ["$NODENAMEMAP"],
+ ["$CONF_DIR/$NODENAMEMAPFILE"],
[Define a default node name map file])
dnl select example event plugin or not
--
1.5.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Break-out-a-CONF_DIR-variable-in-configure-to-base.patch
Type: application/octet-stream
Size: 1459 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20071113/6f36c2aa/attachment.obj>
More information about the general
mailing list