Provide numeric version defines
This commit is contained in:
parent
b5c474e533
commit
d8d67c0a4c
2 changed files with 12 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
# License as published by the Free Software Foundation version 2.1
|
||||
# of the License.
|
||||
#
|
||||
# Copyright (c) 2003-2010 Thomas Graf <tgraf@suug.ch>
|
||||
# Copyright (c) 2003-2011 Thomas Graf <tgraf@suug.ch>
|
||||
#
|
||||
|
||||
AC_INIT(libnl, 2.1, tgraf@suug.ch)
|
||||
|
@ -15,6 +15,11 @@ AC_CONFIG_MACRO_DIR([m4])
|
|||
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)], [])
|
||||
|
||||
MAJ_VERSION=2
|
||||
AC_SUBST([MAJ_VERSION])
|
||||
MIN_VERSION=1
|
||||
AC_SUBST([MIN_VERSION])
|
||||
|
||||
AC_PROG_CC
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_INSTALL
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* License as published by the Free Software Foundation version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* Copyright (c) 2008 Thomas Graf <tgraf@suug.ch>
|
||||
* Copyright (c) 2008-2011 Thomas Graf <tgraf@suug.ch>
|
||||
*/
|
||||
|
||||
#ifndef NETLINK_VERSION_H_
|
||||
|
@ -15,4 +15,9 @@
|
|||
#define LIBNL_STRING "@PACKAGE_STRING@"
|
||||
#define LIBNL_VERSION "@PACKAGE_VERSION@"
|
||||
|
||||
#define LIBNL_VER_MAJ @MAJ_VERSION@
|
||||
#define LIBNL_VER_MIN @MIN_VERSION@
|
||||
#define LIBNL_VER(maj,min) ((maj) << 8 | (min))
|
||||
#define LIBNL_VER_NUM LIBNL_VER(LIBNL_VER_MAJ, LIBNL_VER_MIN)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue