mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 09:42:54 +03:00
configure.ac: use m4 macros to define package version
To reduce the places to define the package versions setting up the version string by m4_define macros. The complete substitution through the config files will be done automatically by autoconf.
This commit is contained in:
1 parent
45760a922d
commit
d6bc9dba10
1 file changed
+10
-2
+10
-2
@@ -5,7 +5,15 @@
|
||||
#
|
||||
# Please run 'autogen.sh' to let autoconf produce a configure script.
|
||||
|
||||
AC_INIT([libcoap], [4.1.2], [libcoap-developers@lists.sourceforge.net], [libcoap], [http://libcoap.sourceforge.net/])
|
||||
# Define the libcoap software version here. Note! The libtool versions are
|
||||
# defined later.
|
||||
m4_define([libcoap_major_version], [4])
|
||||
m4_define([libcoap_minor_version], [1])
|
||||
m4_define([libcoap_micro_version], [2])
|
||||
|
||||
m4_define([libcoap_version],[libcoap_major_version.libcoap_minor_version.libcoap_micro_version])
|
||||
|
||||
AC_INIT([libcoap], [libcoap_version], [libcoap-developers@lists.sourceforge.net], [libcoap], [http://libcoap.sourceforge.net/])
|
||||
AC_PREREQ([2.59])
|
||||
AM_INIT_AUTOMAKE([1.10 -Wall no-define])
|
||||
|
||||
@@ -47,5 +55,5 @@ AC_OUTPUT
|
||||
|
||||
AC_MSG_RESULT([
|
||||
libcoap configuration summary:
|
||||
libcoap package version : 4.1.2
|
||||
libcoap package version : "$PACKAGE_VERSION"
|
||||
]);
|
||||
Reference in new issue
Block a user