mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Use common 3-digit package version number.
This commit is contained in:
parent
1d5d2a166f
commit
7de20e3915
@ -24,7 +24,8 @@ AC_PREREQ([2.63])
|
|||||||
# libserialport package version number (NOT the same as shared lib version!).
|
# libserialport package version number (NOT the same as shared lib version!).
|
||||||
m4_define([sp_package_version_major], [0])
|
m4_define([sp_package_version_major], [0])
|
||||||
m4_define([sp_package_version_minor], [1])
|
m4_define([sp_package_version_minor], [1])
|
||||||
m4_define([sp_package_version], [sp_package_version_major.sp_package_version_minor])
|
m4_define([sp_package_version_micro], [0])
|
||||||
|
m4_define([sp_package_version], [sp_package_version_major.sp_package_version_minor.sp_package_version_micro])
|
||||||
|
|
||||||
AC_INIT([libserialport], [sp_package_version], [martin-libserialport@earth.li],
|
AC_INIT([libserialport], [sp_package_version], [martin-libserialport@earth.li],
|
||||||
[libserialport], [http://sigrok.org/wiki/Libserialport])
|
[libserialport], [http://sigrok.org/wiki/Libserialport])
|
||||||
@ -118,10 +119,12 @@ AC_SUBST(AM_LIBTOOLFLAGS, '--silent')
|
|||||||
|
|
||||||
SP_PACKAGE_VERSION_MAJOR=sp_package_version_major
|
SP_PACKAGE_VERSION_MAJOR=sp_package_version_major
|
||||||
SP_PACKAGE_VERSION_MINOR=sp_package_version_minor
|
SP_PACKAGE_VERSION_MINOR=sp_package_version_minor
|
||||||
|
SP_PACKAGE_VERSION_MICRO=sp_package_version_micro
|
||||||
SP_PACKAGE_VERSION=sp_package_version
|
SP_PACKAGE_VERSION=sp_package_version
|
||||||
|
|
||||||
AC_SUBST(SP_PACKAGE_VERSION_MAJOR)
|
AC_SUBST(SP_PACKAGE_VERSION_MAJOR)
|
||||||
AC_SUBST(SP_PACKAGE_VERSION_MINOR)
|
AC_SUBST(SP_PACKAGE_VERSION_MINOR)
|
||||||
|
AC_SUBST(SP_PACKAGE_VERSION_MICRO)
|
||||||
AC_SUBST(SP_PACKAGE_VERSION)
|
AC_SUBST(SP_PACKAGE_VERSION)
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile libserialport.h libserialport.pc])
|
AC_CONFIG_FILES([Makefile libserialport.h libserialport.pc])
|
||||||
@ -131,7 +134,7 @@ AC_OUTPUT
|
|||||||
echo
|
echo
|
||||||
echo "libserialport configuration summary:"
|
echo "libserialport configuration summary:"
|
||||||
echo
|
echo
|
||||||
echo " - Package version (major.minor): $SP_PACKAGE_VERSION"
|
echo " - Package version (major.minor.micro): $SP_PACKAGE_VERSION"
|
||||||
echo " - Library version (current:revision:age): $SP_LIB_VERSION"
|
echo " - Library version (current:revision:age): $SP_LIB_VERSION"
|
||||||
echo " - Prefix: $prefix"
|
echo " - Prefix: $prefix"
|
||||||
echo " - Building on: $build"
|
echo " - Building on: $build"
|
||||||
|
@ -78,6 +78,7 @@ extern "C" {
|
|||||||
/* Package version macros (e.g. for conditional compilation). */
|
/* Package version macros (e.g. for conditional compilation). */
|
||||||
#define SP_PACKAGE_VERSION_MAJOR @SP_PACKAGE_VERSION_MAJOR@
|
#define SP_PACKAGE_VERSION_MAJOR @SP_PACKAGE_VERSION_MAJOR@
|
||||||
#define SP_PACKAGE_VERSION_MINOR @SP_PACKAGE_VERSION_MINOR@
|
#define SP_PACKAGE_VERSION_MINOR @SP_PACKAGE_VERSION_MINOR@
|
||||||
|
#define SP_PACKAGE_VERSION_MICRO @SP_PACKAGE_VERSION_MICRO@
|
||||||
#define SP_PACKAGE_VERSION_STRING "@SP_PACKAGE_VERSION@"
|
#define SP_PACKAGE_VERSION_STRING "@SP_PACKAGE_VERSION@"
|
||||||
|
|
||||||
/* Library/libtool version macros (e.g. for conditional compilation). */
|
/* Library/libtool version macros (e.g. for conditional compilation). */
|
||||||
|
Loading…
Reference in New Issue
Block a user