2008-10-28 20:22:29 +03:00
|
|
|
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.
|
2014-10-02 18:31:47 +04:00
|
|
|
dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2008-10-28 20:22:29 +03:00
|
|
|
dnl University of Stuttgart. All rights reserved.
|
|
|
|
dnl Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
dnl All rights reserved.
|
2014-10-02 18:31:47 +04:00
|
|
|
dnl Copyright (c) 2008-2014 Cisco Systems, Inc. All rights reserved.
|
2008-10-28 20:22:29 +03:00
|
|
|
dnl $COPYRIGHT$
|
2014-10-02 18:31:47 +04:00
|
|
|
dnl
|
2008-10-28 20:22:29 +03:00
|
|
|
dnl Additional copyrights may follow
|
2014-10-02 18:31:47 +04:00
|
|
|
dnl
|
2008-10-28 20:22:29 +03:00
|
|
|
dnl $HEADER$
|
|
|
|
dnl
|
|
|
|
|
2014-10-02 18:31:47 +04:00
|
|
|
# OPAL_SAVE_VERSION(project_short, project-long,
|
2008-10-28 20:22:29 +03:00
|
|
|
# version_file, header_file])
|
|
|
|
# ----------------------------------------------
|
|
|
|
# creates version information for project from version_file, using
|
2010-09-18 03:04:06 +04:00
|
|
|
# OPAL_GET_VERSION(). Information is AC_SUBSTed and put in
|
2008-10-28 20:22:29 +03:00
|
|
|
# header_file.
|
2010-09-18 03:04:06 +04:00
|
|
|
AC_DEFUN([OPAL_SAVE_VERSION], [
|
|
|
|
OPAL_GET_VERSION([$3], [$1])
|
2008-10-28 20:22:29 +03:00
|
|
|
|
|
|
|
AC_SUBST($1[_MAJOR_VERSION])
|
|
|
|
AC_SUBST($1[_MINOR_VERSION])
|
|
|
|
AC_SUBST($1[_RELEASE_VERSION])
|
|
|
|
AC_SUBST($1[_GREEK_VERSION])
|
2011-02-17 01:53:23 +03:00
|
|
|
AC_SUBST($1[_REPO_REV])
|
2014-10-02 18:31:47 +04:00
|
|
|
AC_SUBST($1[_TARBALL_VERSION])
|
2008-10-28 20:22:29 +03:00
|
|
|
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])
|
2014-10-02 18:31:47 +04:00
|
|
|
AC_MSG_CHECKING([$2 repository version])
|
2011-02-17 01:53:23 +03:00
|
|
|
AC_MSG_RESULT([$]$1[_REPO_REV])
|
2008-10-28 20:22:29 +03:00
|
|
|
|
|
|
|
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)
|
2014-10-02 18:31:47 +04:00
|
|
|
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)
|
2008-10-28 20:22:29 +03:00
|
|
|
AC_DEFINE_UNQUOTED($1[_VERSION], ["$]$1[_RELEASE_VERSION"],
|
|
|
|
[Complete release number of ]$2)
|
|
|
|
AC_DEFINE_UNQUOTED($1[_RELEASE_DATE], ["$]$1[_RELEASE_DATE"],
|
|
|
|
[Release date of ]$2)
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([$4])
|
|
|
|
])dnl
|