1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
dnl -*- shell-script -*-
dnl
dnl Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
dnl University Research and Technology
dnl Corporation. All rights reserved.
dnl Copyright (c) 2004-2005 The University of Tennessee and The University
dnl of Tennessee Research Foundation. All rights
dnl reserved.
dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved.
dnl Copyright (c) 2008-2014 Cisco Systems, Inc. All rights reserved.
dnl Copyright (c) 2022-2023 IBM Corporation. All rights reserved.
dnl $COPYRIGHT$
dnl
dnl Additional copyrights may follow
dnl
dnl $HEADER$
dnl
# OPAL_SAVE_VERSION(project_short, project-long,
# version_file, header_file])
# ----------------------------------------------
# creates version information for project from version_file, using
# OPAL_GET_VERSION(). Information is AC_SUBSTed and put in
# header_file.
AC_DEFUN([OPAL_SAVE_VERSION], [
OPAL_GET_VERSION([$3], [$1])
AC_SUBST($1[_MAJOR_VERSION])
AC_SUBST($1[_MINOR_VERSION])
AC_SUBST($1[_RELEASE_VERSION])
AC_SUBST($1[_GREEK_VERSION])
AC_SUBST($1[_REPO_REV])
AC_SUBST($1[_TARBALL_VERSION])
AC_SUBST($1[_VERSION])
AC_SUBST($1[_RELEASE_DATE])
AC_MSG_CHECKING([$2 version])
AC_MSG_RESULT([$]$1[_VERSION])
AC_MSG_CHECKING([$2 release date])
AC_MSG_RESULT([$]$1[_RELEASE_DATE])
AC_MSG_CHECKING([$2 repository version])
AC_MSG_RESULT([$]$1[_REPO_REV])
AC_DEFINE_UNQUOTED($1[_MAJOR_VERSION], [$]$1[_MAJOR_VERSION],
[Major release number of ]$2)
AC_DEFINE_UNQUOTED($1[_MINOR_VERSION], [$]$1[_MINOR_VERSION],
[Minor release number of ]$2)
AC_DEFINE_UNQUOTED($1[_RELEASE_VERSION], [$]$1[_RELEASE_VERSION],
[Release release number of ]$2)
AC_DEFINE_UNQUOTED($1[_GREEK_VERSION], ["$]$1[_GREEK_VERSION"],
[Greek - alpha, beta, etc - release number of ]$2)
AC_DEFINE_UNQUOTED($1[_REPO_REV], ["$]$1[_REPO_REV"],
[The repository version ]$2)
AC_DEFINE_UNQUOTED($1[_TARBALL_VERSION], ["$]$1[_TARBALL_VERSION"],
[Tarball filename version string of ]$2)
AC_DEFINE_UNQUOTED($1[_VERSION], ["$]$1[_VERSION"],
[Complete release number of ]$2)
AC_DEFINE_UNQUOTED($1[_RELEASE_DATE], ["$]$1[_RELEASE_DATE"],
[Release date of ]$2)
AC_CONFIG_FILES([$4])
])dnl
# OPAL_SAVE_MPI_STANDARD_VERSION(version_file)
# ----------------------------------------------
# Export MPI versions.
AC_DEFUN([OPAL_SAVE_MPI_STANDARD_VERSION], [
AC_DEFINE_UNQUOTED([MPI_VERSION], [MPI_VERSION_NUM],
[MPI Standard Major version number])
AC_DEFINE_UNQUOTED([MPI_SUBVERSION], [MPI_SUBVERSION_NUM],
[MPI Standard Minor version number])
AC_SUBST([MPI_VERSION], [MPI_VERSION_NUM])
AC_SUBST([MPI_SUBVERSION], [MPI_SUBVERSION_NUM])
AC_MSG_CHECKING([MPI Standard version])
AC_MSG_RESULT([MPI_VERSION_NUM.MPI_SUBVERSION_NUM])
])dnl
|