Commit 8b9fe86b authored by Daniel Salzman's avatar Daniel Salzman

Add 'soname' variable to pkg-config files

parent b0e79dff
......@@ -7,6 +7,12 @@ m4_include([m4/knot-version.m4])
AC_INIT([knot], knot_PKG_VERSION, [knot-dns@labs.nic.cz])
# Update library versions
# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
KNOT_LIB_VERSION([libknot], 8, 0, 0)
KNOT_LIB_VERSION([libdnssec], 6, 0, 0)
KNOT_LIB_VERSION([libzscanner], 2, 0, 0)
# Store ./configure parameters and CFLAGS
AC_DEFINE_UNQUOTED([CONFIGURE_PARAMS],["$*"],[Params passed to configure])
AC_DEFINE_UNQUOTED([CONFIGURE_CFLAGS],["$CFLAGS"],[Passed CFLAGS from environment])
......@@ -19,13 +25,6 @@ AC_CONFIG_MACRO_DIR([m4])
AC_USE_SYSTEM_EXTENSIONS
AC_CANONICAL_HOST
# Update library versions
# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
AC_SUBST([python_libknot_VERSION], ["8"])
AC_SUBST([libknot_VERSION_INFO], ["-version-info 8:0:0"])
AC_SUBST([libdnssec_VERSION_INFO], ["-version-info 6:0:0"])
AC_SUBST([libzscanner_VERSION_INFO], ["-version-info 2:0:0"])
AC_SUBST([KNOT_VERSION_MAJOR], knot_VERSION_MAJOR)
AC_SUBST([KNOT_VERSION_MINOR], knot_VERSION_MINOR)
AC_SUBST([KNOT_VERSION_PATCH], knot_VERSION_PATCH)
......
# KNOT_LIB_VERSION([library-name], [current], [revision], [age])
# --------------------------------------------------------------
# See https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
AC_DEFUN([KNOT_LIB_VERSION],
[
AC_SUBST([$1_VERSION_INFO], ["-version-info $2:$3:$4"])
AC_SUBST([$1_SOVERSION], ["$2"])
AS_CASE([$host_os],
[darwin*], [AC_SUBST([$1_SONAME], ["$1.$2.dylib"])],
[*], [AC_SUBST([$1_SONAME], ["$1.so.$2"])]
)
])
"""Python libknot interface."""
LIBKNOT_VERSION = "@python_libknot_VERSION@"
LIBKNOT_VERSION = "@libknot_SOVERSION@"
......@@ -2,6 +2,7 @@ prefix=@prefix@
exec_prefix=@prefix@
libdir=@libdir@
includedir=@includedir@
soname=@libdnssec_SONAME@
Name: libdnssec
Description: Knot DNS DNSSEC library
......
......@@ -2,6 +2,7 @@ prefix=@prefix@
exec_prefix=@prefix@
libdir=@libdir@
includedir=@includedir@
soname=@libknot_SONAME@
Name: libknot
Description: Knot DNS library
......
......@@ -2,6 +2,7 @@ prefix=@prefix@
exec_prefix=@prefix@
libdir=@libdir@
includedir=@includedir@
soname=@libzscanner_SONAME@
Name: libzscanner
Description: Knot DNS Zone Parsing library
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment