maint: remove SED_FEATURE_VERSION; use PACKAGE_VERSION instead

* configure.ac (SED_FEATURE_VERSION): Remove definition et al.
* sed/compile.c (compile_program): Remove sole use.
Use PACKAGE_VERSION instead.
This commit is contained in:
Jim Meyering committed 2015-05-02 19:28:38 -07:00
1 parent 29baca551b
commit 3277f269a2
2 files changed
+1 -6

No files matched your search

-5
View File
@@ -10,11 +10,6 @@ AM_INIT_AUTOMAKE([1.11.1 no-dist-gzip dist-xz color-tests parallel-tests])
AM_SILENT_RULES([yes]) # make --enable-silent-rules the default.
AC_CONFIG_MACRO_DIRS([m4])
SED_FEATURE_VERSION=4.2.2
AC_DEFINE_UNQUOTED([SED_FEATURE_VERSION], "$SED_FEATURE_VERSION",
[Define to the version of GNU sed whose features are supported by this sed.])
AC_SUBST(SED_FEATURE_VERSION)
AC_PROG_CC_STDC
AM_PROG_CC_C_O
gl_EARLY
+1 -1
View File
@@ -1070,7 +1070,7 @@ compile_program(struct vector *vector)
char *version = read_label ();
char const *compared_version;
compared_version = (*version == '\0') ? "4.0" : version;
if (strverscmp (compared_version, SED_FEATURE_VERSION) > 0)
if (strverscmp (compared_version, PACKAGE_VERSION) > 0)
bad_prog(_(ANCIENT_VERSION));
free (version);