util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Provide libmount version as int for better compiletime test.
@ 2014-10-01 14:14 Søren Holm
  2014-10-14 10:09 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Søren Holm @ 2014-10-01 14:14 UTC (permalink / raw)
  To: util-linux; +Cc: Søren Holm

Signed-off-by: Søren Holm <sgh@sgh.dk>
---
 Makefile.am                | 3 +++
 configure.ac               | 3 +++
 libmount/src/libmount.h.in | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 08269e2..122344e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -120,6 +120,9 @@ edit_cmd = sed \
 	 -e 's|@ADJTIME_PATH[@]|$(ADJTIME_PATH)|g' \
 	 -e 's|@LIBUUID_VERSION[@]|$(LIBUUID_VERSION)|g' \
 	 -e 's|@LIBMOUNT_VERSION[@]|$(LIBMOUNT_VERSION)|g' \
+	 -e 's|@LIBMOUNT_MAJOR_VERSION[@]|$(LIBMOUNT_MAJOR_VERSION)|g' \
+	 -e 's|@LIBMOUNT_MINOR_VERSION[@]|$(LIBMOUNT_MINOR_VERSION)|g' \
+	 -e 's|@LIBMOUNT_PATCH_VERSION[@]|$(LIBMOUNT_PATCH_VERSION)|g' \
 	 -e 's|@LIBSMARTCOLS_VERSION[@]|$(LIBSMARTCOLS_VERSION)|g' \
 	 -e 's|@LIBBLKID_VERSION[@]|$(LIBBLKID_VERSION)|g'
 
diff --git a/configure.ac b/configure.ac
index 974ac0b..215d8cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -806,6 +806,9 @@ AM_CONDITIONAL([BUILD_LIBMOUNT], [test "x$build_libmount" = xyes])
 AM_CONDITIONAL([BUILD_LIBMOUNT_TESTS], [test "x$build_libmount" = xyes -a "x$enable_static" = xyes])
 
 AC_SUBST([LIBMOUNT_VERSION])
+AC_SUBST([LIBMOUNT_MAJOR_VERSION], $PACKAGE_VERSION_MAJOR)
+AC_SUBST([LIBMOUNT_MINOR_VERSION], $PACKAGE_VERSION_MINOR)
+AC_SUBST([LIBMOUNT_PATCH_VERSION], $PACKAGE_VERSION_RELEASE)
 AC_SUBST([LIBMOUNT_VERSION_INFO])
 AC_DEFINE_UNQUOTED([LIBMOUNT_VERSION], ["$LIBMOUNT_VERSION"], [libmount version string])
 
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in
index d54e876..91e2287 100644
--- a/libmount/src/libmount.h.in
+++ b/libmount/src/libmount.h.in
@@ -30,6 +30,9 @@ extern "C" {
 #include <sys/types.h>
 
 #define LIBMOUNT_VERSION   "@LIBMOUNT_VERSION@"
+#define LIBMOUNT_MAJOR_VERSION   @LIBMOUNT_MAJOR_VERSION@
+#define LIBMOUNT_MINOR_VERSION   @LIBMOUNT_MINOR_VERSION@
+#define LIBMOUNT_PATCH_VERSION   @LIBMOUNT_PATCH_VERSION@
 
 /**
  * libmnt_cache:
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Provide libmount version as int for better compiletime test.
  2014-10-01 14:14 [PATCH] Provide libmount version as int for better compiletime test Søren Holm
@ 2014-10-14 10:09 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2014-10-14 10:09 UTC (permalink / raw)
  To: Søren Holm; +Cc: util-linux

On Wed, Oct 01, 2014 at 04:14:02PM +0200, Søren Holm wrote:
>  Makefile.am                | 3 +++
>  configure.ac               | 3 +++
>  libmount/src/libmount.h.in | 3 +++
>  3 files changed, 9 insertions(+)

 Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-14 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-01 14:14 [PATCH] Provide libmount version as int for better compiletime test Søren Holm
2014-10-14 10:09 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).