1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
https://bugs.gentoo.org/852884
From: orbea <orbea@riseup.net>
Date: Sat, 18 Jun 2022 10:00:21 -0700
Subject: [PATCH] configure: Set version directly in AC_INIT
This avoids a command not found error in config.status.
--- a/Makefile.in
+++ b/Makefile.in
@@ -20,7 +20,7 @@
# Add a _letter_ if you change the version number and release your own version.
# Numbers are for the original author(s) only.
-DICT_VERSION=@DICT_VERSION@
+DICT_VERSION=@PACKAGE_VERSION@
ifneq (,)
This makefile requires GNU Make.
--- a/configure.in
+++ b/configure.in
@@ -23,14 +23,10 @@ dnl CFLAGS and LDFLAGS should be settable on the make commandline
dnl for optimization and stripping.
dnl LIBOBJS is an automatically-generated list of extra objects we need
-
-define(VERSION, 1.13.1)
-
-
AC_PREREQ(2.53)
AC_REVISION($Revision: 1.144 $)
-AC_INIT([dict],[VERSION],[dict-beta@dict.org])
+AC_INIT([dict],[1.13.1],[dict-beta@dict.org])
AC_CONFIG_SRCDIR([dictd.c])
AC_CONFIG_HEADER(config.h)
@@ -40,8 +36,6 @@ LT_INIT
echo Configuring for dict
echo .
-DICT_VERSION=VERSION
-
AC_CANONICAL_HOST
AC_PROG_CC
@@ -183,7 +177,6 @@ SBINDIR=`eval3 $sbindir`
LIBEXECDIR=`eval3 $libexecdir`
DATADIR=`eval3 $datadir`
-AC_SUBST(DICT_VERSION)
AC_SUBST(USE_PLUGIN)
AC_SUBST(EXEEXT)
AC_SUBST(allsubdirs)
--- a/dictdplugin-config.in
+++ b/dictdplugin-config.in
@@ -24,7 +24,7 @@ while test $# -ne 0; do
usage
exit;;
--version)
- echo @DICT_VERSION@
+ echo @PACKAGE_VERSION@
exit;;
--libs)
echo -L@libdir@
|