diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2015-10-08 20:50:15 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2015-10-08 20:50:15 (GMT) |
commit | 1f1081e039bea766161cb7055589b74267764c9b (patch) | |
tree | 4322b8502e18562d6c88535ee83c8f0e1720138e /test/tcheck_version.c | |
parent | 74ab402e3eb08b53dbf2ad7d3a27b51cfae87f5b (diff) | |
download | hdf5-1f1081e039bea766161cb7055589b74267764c9b.zip hdf5-1f1081e039bea766161cb7055589b74267764c9b.tar.gz hdf5-1f1081e039bea766161cb7055589b74267764c9b.tar.bz2 |
[svn-r28009] HDFFV-9536: Changed H5check_version() to use libtool shared library version numbers instead of the library version numbers.
bin/h5vers:
Changed to copy the shared lib version from lt_vers.am to H5public.h
(Thanks to Larry who made the changes.)
src/H5public.h:
Changed by bin/h5vers.
src/H5.c:
Changed H5check_version() to use shared library version for compatibility
checking.
test/tcheck_version.c:
test/testcheck_version.sh.in:
Changed to use shared library version numbers instead of the HDF5 library
version numbers for testing.
Tested: tested in Jam and Kituo.
Diffstat (limited to 'test/tcheck_version.c')
-rw-r--r-- | test/tcheck_version.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/tcheck_version.c b/test/tcheck_version.c index a75d642..67c45fd 100644 --- a/test/tcheck_version.c +++ b/test/tcheck_version.c @@ -39,9 +39,9 @@ void parse(int ac, char **av); void abort_intercept (int H5_ATTR_UNUSED sig); /* global variables */ -unsigned major = H5_VERS_MAJOR; -unsigned minor = H5_VERS_MINOR; -unsigned release = H5_VERS_RELEASE; +unsigned major = LT_VERS_INTERFACE; +unsigned minor = LT_VERS_REVISION; +unsigned release = LT_VERS_AGE; void showhelp(void) @@ -50,9 +50,9 @@ showhelp(void) printf("\t-h\tShow this page and version information\n"); printf("\t-t<vers>: Test by changing (adding 1 to) the <vers> to trigger\n"); printf("\t\t the warning. <vers> can be:\n"); - printf("\t\t\tM for Major version number (%d)\n", H5_VERS_MAJOR); - printf("\t\t\tm for Minor version number (%d)\n", H5_VERS_MINOR); - printf("\t\t\tr for Release number (%d)\n", H5_VERS_RELEASE); + printf("\t\t\tM for Major version number (%d)\n", LT_VERS_INTERFACE); + printf("\t\t\tm for Minor version number (%d)\n", LT_VERS_REVISION); + printf("\t\t\tr for Release number (%d)\n", LT_VERS_AGE); } |