configure.ac: Update libtool versioning
authorEdward Hervey <bilboed@bilboed.com>
Wed, 28 Nov 2012 16:36:55 +0000 (17:36 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 28 Nov 2012 17:21:00 +0000 (18:21 +0100)
In order for 1.x and 1.(x+1) versions to not invade on each other
we need to have different lib versions.

So we need a consistent and predictable scheme:
  library version number = MINOR * 100 + MICRO

Ex:
  1.0.0 => 0 (duh)
  1.0.3 => 3
  1.1.0 => 100
  1.1.1 => 101
  1.2.0 => 120
  1.10.5 => 1005
  ....

configure.ac

index b92112c..f566241 100644 (file)
@@ -55,8 +55,16 @@ dnl - library source changed -> increment REVISION
 dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
 dnl - interfaces added -> increment AGE
 dnl - interfaces removed -> AGE = 0
+dnl
+dnl Keep CURRENT as MINOR * 100 + MICRO
+dnl Ex : 1.0.0 => 0
+dnl      1.0.3 => 3
+dnl      1.1.0 => 100
+dnl      1.2.5 => 205
+dnl      1.10.9 (who knows) => 1009
+dnl
 dnl sets GST_LT_LDFLAGS
-AS_LIBTOOL(GST, 2, 0, 2)
+AS_LIBTOOL(GST, 100, 0, 100)
 
 dnl *** autotools stuff ****