From 48f2c2b875c31247405609c3698dbabc4e8d227f Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Sun, 25 Jul 2021 11:03:09 +0200 Subject: [PATCH] configure.ac: Adding version string for LIB_NGSPICE_API This isn't currently used but can be used in various places to automatically provide the internal API version that is used. Normally developers doesn't want to break the API by introducing a version bump as this means the new library isn't backward compatible any more. E.g. the API version can be used to enhance the name of the library, quite often libraries with an API version 0 don't add this version to library name (like ngspice is doing this too right now). --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 6df07067a..35a7dfa47 100644 --- a/configure.ac +++ b/configure.ac @@ -127,6 +127,10 @@ AC_SUBST(LT_NGSPICE_REVISION) AC_SUBST(LT_NGSPICE_AGE) AC_SUBST(LIBNGSPICE_SO_VERSION) +# Defining the API Version +LIBNGSPICE_API_VERSION=0 +AC_SUBST(LIBNGSPICE_API_VERSION) + # Package Options # ---------------