SDL_mixer: configure.ac: Make sure to set VERSION

From 15936b9a5cbf171b12dc368935a89ef47c540d88 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Tue, 12 Jul 2022 11:54:16 +0100
Subject: [PATCH] configure.ac: Make sure to set VERSION

Plain Autoconf only defines PACKAGE_NAME, PACKAGE_VERSION and similar
substitution variables, to which Automake adds PACKAGE and VERSION.
SDL_mixer doesn't use Automake, so it doesn't have the VERSION required
by our SDL2_mixer.pc.in (and SDL2_mixer.spec.in) unless we set it
explicitly.

Resolves: https://github.com/libsdl-org/SDL_mixer/issues/421
Fixes: 52d3f2c "Rewrite CMake build script"
Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 094602d7..8c83d119 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,10 @@ AC_SUBST(MINOR_VERSION)
 AC_SUBST(MICRO_VERSION)
 AC_SUBST(INTERFACE_AGE)
 AC_SUBST(BINARY_AGE)
-AC_SUBST(VERSION)
+# Automake defines VERSION to be the same as PACKAGE_VERSION, but we're
+# not using Automake in SDL_mixer, so we need to set up the @VERSION@
+# substitution for SDL2_mixer.pc ourselves
+AC_SUBST([VERSION], [$PACKAGE_VERSION])
 
 dnl libtool versioning
 LT_INIT([win32-dll])