aboutsummaryrefslogtreecommitdiffstats
path: root/version.h.in
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2014-12-09 15:58:11 +0100
committerDavid Sterba <dsterba@suse.cz>2015-01-28 18:00:59 +0100
commit04743d00436c8f0db9bd8e17775c37abaadab2dd (patch)
tree296cc6b6c3c81315cc953f46ff559665dd9edaad /version.h.in
parent33f2d6b84da88139b2b7ff53e470cb198d425381 (diff)
downloadbtrfs-progs-04743d00436c8f0db9bd8e17775c37abaadab2dd.tar.gz
btrfs-progs-04743d00436c8f0db9bd8e17775c37abaadab2dd.tar.xz
btrfs-progs-04743d00436c8f0db9bd8e17775c37abaadab2dd.zip
btrfs-progs: autoconf: use ./configure to generate version.h
The original homemade solution is unnecessary, autotools provides better infrastructure to generate files. Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'version.h.in')
-rw-r--r--version.h.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/version.h.in b/version.h.in
new file mode 100644
index 0000000..012d265
--- /dev/null
+++ b/version.h.in
@@ -0,0 +1,11 @@
+#ifndef __LIBBTRFS_VERSION_H__
+#define __LIBBTRFS_VERSION_H__
+
+#define BTRFS_LIB_MAJOR @LIBBTRFS_MAJOR@
+#define BTRFS_LIB_MINOR @LIBBTRFS_MINOR@
+#define BTRFS_LIB_PATCHLEVEL @LIBBTRFS_PATCHLEVEL@
+
+#define BTRFS_LIB_VERSION ( BTRFS_LIB_MAJOR * 10000 + \
+ BTRFS_LIB_MINOR * 100 + \
+ BTRFS_LIB_PATCHLEVEL )
+#endif