From 5200b6b3daceaf9de0d4f866e0b755dbe6864e0c Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Sat, 14 Jan 2017 18:32:22 +0100 Subject: [PATCH] build: drop redundant version variables Just use the variable defined by AC_INIT(). Signed-off-by: Bartosz Golaszewski --- Makefile.am | 2 +- configure.ac | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9c817f1..9e734fc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,7 +17,7 @@ include_HEADERS = gpiod.h lib_LTLIBRARIES = libgpiod.la libgpiod_la_SOURCES = core.c libgpiod_la_CFLAGS = -g -libgpiod_la_LDFLAGS = -version-number $(VERSION_MAJOR):$(VERSION_MINOR):$(VERSION_RELEASE) +libgpiod_la_LDFLAGS = -version-number $(subst .,:,$(PACKAGE_VERSION)) if WITH_TOOLS diff --git a/configure.ac b/configure.ac index dbf76a7..5420682 100644 --- a/configure.ac +++ b/configure.ac @@ -13,10 +13,6 @@ AM_INIT_AUTOMAKE([foreign -Wall -Werror subdir-objects]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) -AC_SUBST(VERSION_MAJOR, 0) -AC_SUBST(VERSION_MINOR, 0) -AC_SUBST(VERSION_RELEASE, 0) - AC_CONFIG_HEADER([config.h]) AC_ARG_ENABLE([tools], -- 2.30.2