[ofa-general] [PATCH] management/*/configure: RELEASE and TARBALL for spec files
Sasha Khapyorsky
sashak at voltaire.com
Tue Sep 18 19:16:03 PDT 2007
RELEASE and TARBALL variables are used as substitution pattern in
*.spec.in files, but never defines. As result ./configure script
produces invalid *.spec files for management sub-projects. This patch
fixes this.
Values are defined as "unknown" and "$PACKAGE-$VERSION.tar.gz", but
could be overwritten with environment variables, like this:
RELEASE=ofed_7.8 TARBALL=opensm-7.8.9-customized.tar.gz ./configure
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
infiniband-diags/configure.in | 3 +++
libibcommon/configure.in | 3 +++
libibmad/configure.in | 3 +++
libibumad/configure.in | 3 +++
opensm/configure.in | 3 +++
5 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/infiniband-diags/configure.in b/infiniband-diags/configure.in
index 171dec7..2da23de 100644
--- a/infiniband-diags/configure.in
+++ b/infiniband-diags/configure.in
@@ -6,6 +6,9 @@ AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(infiniband-diags, 1.3.1)
+AC_SUBST(RELEASE, ${RELEASE:-unknown})
+AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
+
AC_ARG_ENABLE(libcheck, [ --disable-libcheck do not test for presence of ib libraries],
[ if test x$enableval = xno ; then
disable_libcheck=yes
diff --git a/libibcommon/configure.in b/libibcommon/configure.in
index 78f615d..5d08725 100644
--- a/libibcommon/configure.in
+++ b/libibcommon/configure.in
@@ -7,6 +7,9 @@ AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE
+AC_SUBST(RELEASE, ${RELEASE:-unknown})
+AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
+
dnl the library version info is available in the file: libibcommon.ver
ibcommon_api_version=`grep LIBVERSION $srcdir/libibcommon.ver | sed 's/LIBVERSION=//'`
if test -z $ibcommon_api_version; then
diff --git a/libibmad/configure.in b/libibmad/configure.in
index 83d4bfc..3232472 100644
--- a/libibmad/configure.in
+++ b/libibmad/configure.in
@@ -7,6 +7,9 @@ AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE
+AC_SUBST(RELEASE, ${RELEASE:-unknown})
+AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
+
dnl the library version info is available in the file: libibmad.ver
ibmad_api_version=`grep LIBVERSION $srcdir/libibmad.ver | sed 's/LIBVERSION=//'`
if test -z $ibmad_api_version; then
diff --git a/libibumad/configure.in b/libibumad/configure.in
index d5ebe5b..c42a2b3 100644
--- a/libibumad/configure.in
+++ b/libibumad/configure.in
@@ -7,6 +7,9 @@ AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE
+AC_SUBST(RELEASE, ${RELEASE:-unknown})
+AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
+
dnl the library version info is available in the file: libibumad.ver
ibumad_api_version=`grep LIBVERSION $srcdir/libibumad.ver | sed 's/LIBVERSION=//'`
if test -z $ibumad_api_version; then
diff --git a/opensm/configure.in b/opensm/configure.in
index 6c4db9f..cb27ffd 100644
--- a/opensm/configure.in
+++ b/opensm/configure.in
@@ -7,6 +7,9 @@ AC_CONFIG_AUX_DIR(config)
AC_CONFIG_HEADERS(include/config.h)
AM_INIT_AUTOMAKE(opensm, 3.1.1)
+AC_SUBST(RELEASE, ${RELEASE:-unknown})
+AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
+
dnl Defines the Language
AC_LANG_C
--
1.5.3.1.91.gd3392
More information about the general
mailing list