From: Uwe Hermann Date: Tue, 3 Jan 2012 23:05:43 +0000 (+0100) Subject: sr: configure.ac: Fix version number magic. X-Git-Tag: libsigrok-0.1.0~193 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3af71f0da646de1e61ccbed2e85e3fca9798565c;p=libsigrok.git sr: configure.ac: Fix version number magic. --- diff --git a/Makefile.am b/Makefile.am index 3078cce6..ae85f48c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -43,7 +43,7 @@ libsigrok_la_LIBADD = \ input/libsigrokinput.la \ output/libsigrokoutput.la -libsigrok_la_LDFLAGS = $(SIGROK_LT_LDFLAGS) +libsigrok_la_LDFLAGS = $(LIBSIGROK_LT_LDFLAGS) include_HEADERS = sigrok.h sigrok-proto.h noinst_HEADERS = sigrok-internal.h diff --git a/configure.ac b/configure.ac index 4402259a..7c1ee441 100644 --- a/configure.ac +++ b/configure.ac @@ -19,12 +19,11 @@ AC_PREREQ(2.61) -# TODO: Should be libsigrok, no sigrok. -m4_define([sigrok_major_version], [0]) -m4_define([sigrok_minor_version], [2]) -m4_define([sigrok_micro_version], [0]) -m4_define([sigrok_version], - [sigrok_major_version.sigrok_minor_version.sigrok_micro_version]) +# libsigrok package version number (NOT the same as shared lib version!). +m4_define([libsigrok_major_version], [0]) +m4_define([libsigrok_minor_version], [2]) +m4_define([libsigrok_micro_version], [0]) +m4_define([libsigrok_version], [libsigrok_major_version.libsigrok_minor_version.libsigrok_micro_version]) AC_INIT([libsigrok], [libsigrok_version], [sigrok-devel@lists.sourceforge.net], [libsigrok], [http://www.sigrok.org]) @@ -55,16 +54,16 @@ LT_INIT # We require at least 0.22, as "Requires.private" behaviour changed there. PKG_PROG_PKG_CONFIG([0.22]) -# Library version for libsigrok. +# Library version for libsigrok (NOT the same as the package version). # Carefully read the libtool docs before updating these numbers! # The algorithm for determining which number to change (and how) is nontrivial! # http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info -SIGROK_LT_CURRENT=0 -SIGROK_LT_REVISION=0 -SIGROK_LT_AGE=0 -SIGROK_LT_VERSION="$SIGROK_LT_CURRENT:$SIGROK_LT_REVISION:$SIGROK_LT_AGE" -SIGROK_LT_LDFLAGS="-version-info $SIGROK_LT_VERSION" -AC_SUBST(SIGROK_LT_LDFLAGS) +LIBSIGROK_LT_CURRENT=0 +LIBSIGROK_LT_REVISION=0 +LIBSIGROK_LT_AGE=0 +LIBSIGROK_LT_VERSION="$LIBSIGROK_LT_CURRENT:$LIBSIGROK_LT_REVISION:$LIBSIGROK_LT_AGE" +LIBSIGROK_LT_LDFLAGS="-version-info $LIBSIGROK_LT_VERSION" +AC_SUBST(LIBSIGROK_LT_LDFLAGS) # Logic analyzer hardware support '--enable' options. @@ -241,24 +240,24 @@ AC_SUBST(FIRMWARE_DIR, "$datadir/libsigrok/firmware") AC_SUBST(MAKEFLAGS, '--no-print-directory') AC_SUBST(AM_LIBTOOLFLAGS, '--silent') -SIGROK_MAJOR_VERSION=sigrok_major_version -SIGROK_MINOR_VERSION=sigrok_minor_version -SIGROK_MICRO_VERSION=sigrok_micro_version -SIGROK_VERSION=sigrok_version - -AC_SUBST(SIGROK_MAJOR_VERSION) -AC_SUBST(SIGROK_MINOR_VERSION) -AC_SUBST(SIGROK_MICRO_VERSION) -AC_SUBST(SIGROK_VERSION) - -AC_DEFINE(SIGROK_MAJOR_VERSION, [sigrok_major_version], - [Define to the sigrok major version]) -AC_DEFINE(SIGROK_MINOR_VERSION, [sigrok_minor_version], - [Define to the sigrok minor version]) -AC_DEFINE(SIGROK_MICRO_VERSION, [sigrok_micro_version], - [Define to the sigrok micro version]) -AC_DEFINE(SIGROK_VERSION, [sigrok_version], - [Define to the sigrok version]) +LIBSIGROK_MAJOR_VERSION=libsigrok_major_version +LIBSIGROK_MINOR_VERSION=libsigrok_minor_version +LIBSIGROK_MICRO_VERSION=libsigrok_micro_version +LIBSIGROK_VERSION=libsigrok_version + +AC_SUBST(LIBSIGROK_MAJOR_VERSION) +AC_SUBST(LIBSIGROK_MINOR_VERSION) +AC_SUBST(LIBSIGROK_MICRO_VERSION) +AC_SUBST(LIBSIGROK_VERSION) + +AC_DEFINE(LIBSIGROK_MAJOR_VERSION, [libsigrok_major_version], + [Define to the libsigrok major package version]) +AC_DEFINE(LIBSIGROK_MINOR_VERSION, [libsigrok_minor_version], + [Define to the libsigrok minor package version]) +AC_DEFINE(LIBSIGROK_MICRO_VERSION, [libsigrok_micro_version], + [Define to the libsigrok micro package version]) +AC_DEFINE(LIBSIGROK_VERSION, [libsigrok_version], + [Define to the libsigrok package version]) AC_CONFIG_FILES([Makefile sigrok.h