]> git.sur5r.net Git - kconfig-frontends/commitdiff
parser: generate a versioned shared library
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue, 14 Feb 2012 00:00:52 +0000 (01:00 +0100)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Tue, 14 Feb 2012 00:00:52 +0000 (01:00 +0100)
Use the kernel version to version the parser shared library.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
configure.ac
libs/parser/Makefile.am

index 8ee8fd5d83763f8b69f8114dfa4a859eec53f10c..f4ce2ca3c719a83063eca3a093d8136d7d29a4d6 100644 (file)
@@ -266,6 +266,12 @@ AM_CONDITIONAL(
 # Prepare libtool
 LT_INIT([disable-static])
 
+#----------------------------------------
+# Get the version to apply to the parser shared library
+AC_SUBST(
+    [KCONFIGPARSER_LIB_VERSION],
+    [m4_esyscmd_s([./scripts/version.sh --plain])])
+
 #----------------------------------------
 # Finalise
 AC_CONFIG_FILES([
@@ -298,3 +304,9 @@ AS_IF([test "$enable_nconf" = "yes"],
 AS_IF([test "$enable_qconf" = "yes"],
       [AC_MSG_NOTICE([  - qconf: yes])],
       [AC_MSG_NOTICE([  - qconf: no])])
+AS_IF([test "$enable_shared" = "yes"],
+      [AC_MSG_NOTICE([  - parser shared library: yes, $KCONFIGPARSER_LIB_VERSION])],
+      [AC_MSG_NOTICE([  - parser shared library: no])])
+AS_IF([test "$enable_static" = "yes"],
+      [AC_MSG_NOTICE([  - parser static library: yes])],
+      [AC_MSG_NOTICE([  - parser static library: no])])
index 40fe4b87d7a3a694c15270a5aa9871f5d51438f7..8e0602acceeb28cefbd5bd327e66205f2b0ddda4 100644 (file)
@@ -6,6 +6,7 @@ dist_EXTRA_libkconfigparser_la_SOURCES =  \
     hconf.gperf lconf.l                   \
     confdata.c menu.c symbol.c util.c     \
     expr.c expr.h lkc.h lkc_proto.h
+libkconfigparser_la_LDFLAGS = -release $(KCONFIGPARSER_LIB_VERSION)
 
 include_HEADERS = expr.h lkc.h lkc_proto.h