[ofa-general] Re: [PATCH 2/7] Add option to change the default "opensm" dir under sysconfdir as the config dir
Sasha Khapyorsky
sashak at voltaire.com
Wed Nov 14 09:43:33 PST 2007
Hi Ira,
On 16:08 Tue 13 Nov , Ira Weiny wrote:
> 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
For some reason my autoconf doesn't like this comment after blank (and
generates broken script). I will move it, something like:
--- a/opensm/configure.in
+++ b/opensm/configure.in
@@ -71,7 +71,7 @@ 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
+OPENSM_CONF_SUB_DIR=opensm
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],
Sasha
> +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
>
More information about the general
mailing list