~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to m4/libdrizzle_version.m4

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Version information for libdrizzle
 
3
#
 
4
#
 
5
LIBDRIZZLE_VERSION=1.0.1
 
6
LIBDRIZZLE_LIBRARY_VERSION=4:0:0
 
7
#                             | | |
 
8
#                      +------+ | +---+
 
9
#                      |        |     |
 
10
#                   current:revision:age
 
11
#                      |        |     |
 
12
#                      |        |     +- increment if interfaces have been added
 
13
#                      |        |        set to zero if interfaces have been
 
14
#                      |        |        removed or changed
 
15
#                      |        +- increment if source code has changed
 
16
#                      |           set to zero if current is incremented
 
17
#                      +- increment if interfaces have been added, removed or
 
18
#                         changed
 
19
AC_SUBST(LIBDRIZZLE_LIBRARY_VERSION)
 
20
AC_SUBST(LIBDRIZZLE_VERSION)
 
21
AC_DEFINE_UNQUOTED([LIBDRIZZLE_VERSION],[$LIBDRIZZLE_VERSION], [libdrizzle version])
 
22
 
 
23
# libdrizzle versioning when linked with GNU ld.
 
24
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
 
25
  LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/config/drizzle.ver"
 
26
  ])
 
27
AC_SUBST(LD_VERSION_SCRIPT)
 
28
 
 
29
LIBDRIZZLE_HEX_VERSION=`echo $LIBDRIZZLE_VERSION | sed 's|[\-a-z0-9]*$||' | awk -F. '{printf "0x%0.2d%0.3d%0.3d", $[]1, $[]2, $[]3}'`
 
30
AC_SUBST([LIBDRIZZLE_HEX_VERSION])