2003-12-22 19:29:21 +03:00
|
|
|
dnl -*- shell-script -*-
|
|
|
|
dnl
|
2004-01-07 10:47:13 +03:00
|
|
|
dnl $HEADER$
|
2003-12-22 19:29:21 +03:00
|
|
|
dnl
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
AC_DEFUN([OMPI_GET_VERSION],[
|
2003-12-22 19:29:21 +03:00
|
|
|
gv_glv_dir="$1"
|
|
|
|
gv_ver_file="$2"
|
|
|
|
gv_prefix="$3"
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
# Find the get_ompi_version program
|
2003-12-22 19:29:21 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
gv_prog="sh $gv_glv_dir/ompi_get_version.sh $gv_ver_file"
|
2003-12-22 19:29:21 +03:00
|
|
|
|
|
|
|
dnl quote eval to suppress macro expansion with non-GNU m4
|
|
|
|
|
|
|
|
gv_run() {
|
|
|
|
[eval] ${gv_prefix}_${2}=`$gv_prog --${1}`
|
|
|
|
}
|
|
|
|
|
|
|
|
gv_run full VERSION
|
|
|
|
gv_run major MAJOR_VERSION
|
|
|
|
gv_run minor MINOR_VERSION
|
|
|
|
gv_run release RELEASE_VERSION
|
|
|
|
gv_run alpha ALPHA_VERSION
|
|
|
|
gv_run beta BETA_VERSION
|
2004-03-19 09:05:27 +03:00
|
|
|
gv_run svn SVN_VERSION
|
2003-12-22 19:29:21 +03:00
|
|
|
|
|
|
|
# Clean up
|
|
|
|
|
|
|
|
unset gv_glv_dir gv_ver_file gv_prefix gv_prog gv_run
|
|
|
|
])
|