SDL_image: autotools: GNU sort isn't required, we just need the -V option to be supported.

From 6d53386ffd96dfeb31f71b62c30f03e1f168eba1 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 1 Jan 2023 11:11:10 +0300
Subject: [PATCH] autotools: GNU sort isn't required, we just need the -V
 option to be supported.

---
 configure    | 3 ++-
 configure.ac | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index a0b4a109..f08634b1 100755
--- a/configure
+++ b/configure
@@ -13521,7 +13521,8 @@ test -n "$SORT" || SORT="false"
 
 if ! "$SORT" -V </dev/null >/dev/null
 then :
-  as_fn_error $? "GNU sort(1) is required" "$LINENO" 5
+  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
+printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
 fi
 
 case "$host" in
diff --git a/configure.ac b/configure.ac
index 24c3d60f..584c6702 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,7 +75,7 @@ if [ test -z "$AWK" ]; then
 fi
 
 AC_CHECK_PROGS([SORT], [gsort sort], [false])
-AS_IF([! "$SORT" -V </dev/null >/dev/null], [AC_MSG_ERROR([GNU sort(1) is required])])
+AS_IF([! "$SORT" -V </dev/null >/dev/null], [AC_MSG_WARN([sort(1) that supports the -V option is required to find dynamic libraries])])
 
 case "$host" in
     *-*-beos*)