SDL_mixer: configury: improve fluidsynth and tremor dll detection for windows

From fd86faed302a9c6bca55467049ada54ef1e6ca15 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 18 Feb 2021 20:25:24 +0300
Subject: [PATCH] configury: improve fluidsynth and tremor dll detection for
 windows

---
 configure    | 6 ++++++
 configure.ac | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/configure b/configure
index ef66aa9..d6c9e2d 100755
--- a/configure
+++ b/configure
@@ -12099,6 +12099,9 @@ fi
                     ;;
                 *-*-cygwin* | *-*-mingw*)
                     fluidsynth_lib=`find_lib "fluidsynth*.dll"`
+                    if test x$fluidsynth_lib = x; then
+                        fluidsynth_lib=`find_lib "libfluidsynth*.dll"`
+                    fi
                     ;;
                 *)
                     fluidsynth_lib=`find_lib "libfluidsynth[0-9]*.so.*"`
@@ -12201,6 +12204,9 @@ fi
                     ;;
                 *-*-cygwin* | *-*-mingw*)
                     ogg_lib=`find_lib "vorbisidec*.dll"`
+                    if test x$ogg_lib = x; then
+                        ogg_lib=`find_lib "libvorbisidec*.dll"`
+                    fi
                     ;;
                 *)
                     ogg_lib=`find_lib "libvorbisidec[0-9]*.so.*"`
diff --git a/configure.ac b/configure.ac
index 3a5da16..7509446 100644
--- a/configure.ac
+++ b/configure.ac
@@ -389,6 +389,9 @@ AS_HELP_STRING([--enable-music-fluidsynth-shared], [dynamically load FluidSynth
                     ;;
                 *-*-cygwin* | *-*-mingw*)
                     fluidsynth_lib=[`find_lib "fluidsynth*.dll"`]
+                    if test x$fluidsynth_lib = x; then
+                        fluidsynth_lib=[`find_lib "libfluidsynth*.dll"`]
+                    fi
                     ;;
                 *)
                     fluidsynth_lib=[`find_lib "libfluidsynth[0-9]*.so.*"`]
@@ -433,6 +436,9 @@ if test x$enable_music_ogg = xyes; then
                     ;;
                 *-*-cygwin* | *-*-mingw*)
                     ogg_lib=[`find_lib "vorbisidec*.dll"`]
+                    if test x$ogg_lib = x; then
+                        ogg_lib=[`find_lib "libvorbisidec*.dll"`]
+                    fi
                     ;;
                 *)
                     ogg_lib=[`find_lib "libvorbisidec[0-9]*.so.*"`]